{"action":"created","issue":{"url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/330","labels_url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/330/comments","events_url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/330/events","html_url":"https://github.com/galterlibrary/digital-repository/issues/330","id":123357777,"number":330,"title":"soffice docx to jpeg converter crashes when creating derivatives","user":{"login":"phebal","id":3236815,"avatar_url":"https://avatars.githubusercontent.com/u/3236815?v=3","gravatar_id":"","url":"https://api.github.com/users/phebal","html_url":"https://github.com/phebal","followers_url":"https://api.github.com/users/phebal/followers","following_url":"https://api.github.com/users/phebal/following{/other_user}","gists_url":"https://api.github.com/users/phebal/gists{/gist_id}","starred_url":"https://api.github.com/users/phebal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phebal/subscriptions","organizations_url":"https://api.github.com/users/phebal/orgs","repos_url":"https://api.github.com/users/phebal/repos","events_url":"https://api.github.com/users/phebal/events{/privacy}","received_events_url":"https://api.github.com/users/phebal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/galterlibrary/digital-repository/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"phebal","id":3236815,"avatar_url":"https://avatars.githubusercontent.com/u/3236815?v=3","gravatar_id":"","url":"https://api.github.com/users/phebal","html_url":"https://github.com/phebal","followers_url":"https://api.github.com/users/phebal/followers","following_url":"https://api.github.com/users/phebal/following{/other_user}","gists_url":"https://api.github.com/users/phebal/gists{/gist_id}","starred_url":"https://api.github.com/users/phebal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phebal/subscriptions","organizations_url":"https://api.github.com/users/phebal/orgs","repos_url":"https://api.github.com/users/phebal/repos","events_url":"https://api.github.com/users/phebal/events{/privacy}","received_events_url":"https://api.github.com/users/phebal/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-21T21:02:55Z","updated_at":"2015-12-21T21:29:14Z","closed_at":null,"body":"Prevents this files from generating a thumbnail:\r\nhttps://digitalhub.northwestern.edu/files/mp48sc763\r\n\r\nGives this error:\r\n```\r\nRuntimeError: Unable to execute command \"soffice --invisible --headless --convert-to jpg --outdir /tmp /tmp/content-120151221-6289-e30f71.docx\"\r\nfrom /var/www/apps/galter_digital_repo/shared/gems/ruby/2.2.0/gems/hydra-derivatives-1.1.0/lib/hydra/derivatives/shell_based_processor.rb:75:in `execute_without_timeout'\r\n```\r\n\r\nIn the system logs soffice.bin shows up segfaulting with this error:\r\n```\r\nsoffice.bin[9869]: segfault at 18 ip 00007ff24113b070 sp 00007fff938accf8 error 4 in libbasebmplo.so[7ff241129000+1a2000]\r\n```\r\n\r\nMaybe upgrade would help? On my workstation, the conversion works fine with libreoffice 5.0.3.2-11"},"comment":{"url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/comments/166429954","html_url":"https://github.com/galterlibrary/digital-repository/issues/330#issuecomment-166429954","issue_url":"https://api.github.com/repos/galterlibrary/digital-repository/issues/330","id":166429954,"user":{"login":"phebal","id":3236815,"avatar_url":"https://avatars.githubusercontent.com/u/3236815?v=3","gravatar_id":"","url":"https://api.github.com/users/phebal","html_url":"https://github.com/phebal","followers_url":"https://api.github.com/users/phebal/followers","following_url":"https://api.github.com/users/phebal/following{/other_user}","gists_url":"https://api.github.com/users/phebal/gists{/gist_id}","starred_url":"https://api.github.com/users/phebal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phebal/subscriptions","organizations_url":"https://api.github.com/users/phebal/orgs","repos_url":"https://api.github.com/users/phebal/repos","events_url":"https://api.github.com/users/phebal/events{/privacy}","received_events_url":"https://api.github.com/users/phebal/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T21:29:14Z","updated_at":"2015-12-21T21:29:14Z","body":"For future reference, I added the thumbnail manually, like this:\r\n```ruby\r\nout_file = File.open('/home/deploy/thumbnail.jpg')\r\ngf = GenericFile.find('gf_id')\r\ngf = add_file(out_file.read, path: :thumbnail, mime_type: 'image/jpeg')\r\ngf.save\r\n```"}}