{"action":"created","issue":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/312","repository_url":"https://api.github.com/repos/jsreport/jsreport","labels_url":"https://api.github.com/repos/jsreport/jsreport/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/jsreport/jsreport/issues/312/comments","events_url":"https://api.github.com/repos/jsreport/jsreport/issues/312/events","html_url":"https://github.com/jsreport/jsreport/issues/312","id":244646596,"number":312,"title":"XLSX download via Docker jsreport/jsreport:1.7.0-full results in corrupt file","user":{"login":"drmikecrowe","id":90312,"avatar_url":"https://avatars1.githubusercontent.com/u/90312?v=4","gravatar_id":"","url":"https://api.github.com/users/drmikecrowe","html_url":"https://github.com/drmikecrowe","followers_url":"https://api.github.com/users/drmikecrowe/followers","following_url":"https://api.github.com/users/drmikecrowe/following{/other_user}","gists_url":"https://api.github.com/users/drmikecrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/drmikecrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmikecrowe/subscriptions","organizations_url":"https://api.github.com/users/drmikecrowe/orgs","repos_url":"https://api.github.com/users/drmikecrowe/repos","events_url":"https://api.github.com/users/drmikecrowe/events{/privacy}","received_events_url":"https://api.github.com/users/drmikecrowe/received_events","type":"User","site_admin":false},"labels":[{"id":33974106,"url":"https://api.github.com/repos/jsreport/jsreport/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-21T11:51:31Z","updated_at":"2017-07-21T18:09:18Z","closed_at":null,"body":"It started with [my forum post](https://forum.jsreport.net/topic/191/converting-0-13-2-xlsx-template-to-1-x/11), and since this appears to a docker issue, opening an issue.\r\n\r\nUsing [this playground example](https://playground.jsreport.net/studio/workspace/Hy7m2WABZ/12), the file downloaded is corrupt if you are running jsreport via a Docker container.\r\n\r\nIf I install/run jsreport locally using the same configuration, same application API calls (or using the studio), download works fine w/o an issue (npm install, jsreport init, jsreport start).\r\n\r\n\r\n\r\n\r\n#### LibreOffice Errors\r\n\r\n![Error #1](https://ibin.co/3U12esgwtbm4.png)\r\n\r\n![Error #1](https://ibin.co/3U12xImkjCRk.png)\r\n\r\n\r\n#### Setup\r\nStarting the docker image using composer file:\r\n\r\n    jsreport:\r\n      hostname: jsreport\r\n      image: jsreport/jsreport:1.7.0-full\r\n      restart: always\r\n      ports:\r\n        - \"2945:2945\"\r\n      volumes:\r\n        - ./new-containers/jsreport-home:/jsreport\r\n      dns:\r\n        - 8.8.8.8\r\n\r\nConfiguration:\r\n\r\n    {\r\n      \"certificate\": {\r\n        \"key\": \"certificates/jsreport.net.key\",\r\n        \"cert\": \"certificates/jsreport.net.cert\"\r\n      },\r\n      \"connectionString\": { \"name\": \"fs\" },\r\n      \"httpsPort\": 2945,\r\n      \"logger\": {\r\n        \"console\": {\r\n          \"transport\": \"console\",\r\n          \"level\": \"debug\"\r\n        }\r\n      },\r\n      \"express.inputRequestLimit\": \"50mb\",\r\n      \"blobStorage\": \"fileSystem\",\r\n      \"phantom\": {\r\n        \"strategy\": \"dedicated-process\",\r\n        \"timeout\": 60000\r\n      },\r\n      \"tasks\": {\r\n        \"strategy\": \"dedicated-process\",\r\n        \"timeout\": 10000,\r\n        \"allowedModules\": []\r\n      },\r\n      \"scripts\": {\r\n        \"allowedModules\": [],\r\n        \"timeout\": 60000\r\n      }\r\n    }"},"comment":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/comments/317073067","html_url":"https://github.com/jsreport/jsreport/issues/312#issuecomment-317073067","issue_url":"https://api.github.com/repos/jsreport/jsreport/issues/312","id":317073067,"user":{"login":"drmikecrowe","id":90312,"avatar_url":"https://avatars1.githubusercontent.com/u/90312?v=4","gravatar_id":"","url":"https://api.github.com/users/drmikecrowe","html_url":"https://github.com/drmikecrowe","followers_url":"https://api.github.com/users/drmikecrowe/followers","following_url":"https://api.github.com/users/drmikecrowe/following{/other_user}","gists_url":"https://api.github.com/users/drmikecrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/drmikecrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drmikecrowe/subscriptions","organizations_url":"https://api.github.com/users/drmikecrowe/orgs","repos_url":"https://api.github.com/users/drmikecrowe/repos","events_url":"https://api.github.com/users/drmikecrowe/events{/privacy}","received_events_url":"https://api.github.com/users/drmikecrowe/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T18:09:18Z","updated_at":"2017-07-21T18:09:18Z","body":"Yep, I even did a hexdiff between the online working version and the failing one from docker.  It didn't give me any clues.\r\n\r\nI thought it might be an internal file system issue too, so I tried mapping a local directory to /tmp in the container, and that didn't affect it either."}}
{"actor":{"display_login":"drmikecrowe"}}