{"action":"created","issue":{"url":"https://api.github.com/repos/area515/Photonic3D/issues/279","repository_url":"https://api.github.com/repos/area515/Photonic3D","labels_url":"https://api.github.com/repos/area515/Photonic3D/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/area515/Photonic3D/issues/279/comments","events_url":"https://api.github.com/repos/area515/Photonic3D/issues/279/events","html_url":"https://github.com/area515/Photonic3D/issues/279","id":185875787,"number":279,"title":".Zip of images failing on repeat of a print","user":{"login":"WGAndrew","id":22215343,"avatar_url":"https://avatars.githubusercontent.com/u/22215343?v=3","gravatar_id":"","url":"https://api.github.com/users/WGAndrew","html_url":"https://github.com/WGAndrew","followers_url":"https://api.github.com/users/WGAndrew/followers","following_url":"https://api.github.com/users/WGAndrew/following{/other_user}","gists_url":"https://api.github.com/users/WGAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/WGAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGAndrew/subscriptions","organizations_url":"https://api.github.com/users/WGAndrew/orgs","repos_url":"https://api.github.com/users/WGAndrew/repos","events_url":"https://api.github.com/users/WGAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/WGAndrew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-28T09:16:41Z","updated_at":"2016-11-01T13:02:35Z","closed_at":"2016-11-01T10:02:30Z","body":"**Failed Unable to delete directory /tmp/printdir/charmander_starter_1gen_flowalistik.STL.zipextract/slices.Zip of Slice Images**\n(can post the full log if needed but seems pretty straightfoward)\n\nI'm guessing this is just a quick case of needing to delete the old dir on either cancel, print fail or print success? \n"},"comment":{"url":"https://api.github.com/repos/area515/Photonic3D/issues/comments/257560897","html_url":"https://github.com/area515/Photonic3D/issues/279#issuecomment-257560897","issue_url":"https://api.github.com/repos/area515/Photonic3D/issues/279","id":257560897,"user":{"login":"WesGilster","id":2424628,"avatar_url":"https://avatars.githubusercontent.com/u/2424628?v=3","gravatar_id":"","url":"https://api.github.com/users/WesGilster","html_url":"https://github.com/WesGilster","followers_url":"https://api.github.com/users/WesGilster/followers","following_url":"https://api.github.com/users/WesGilster/following{/other_user}","gists_url":"https://api.github.com/users/WesGilster/gists{/gist_id}","starred_url":"https://api.github.com/users/WesGilster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WesGilster/subscriptions","organizations_url":"https://api.github.com/users/WesGilster/orgs","repos_url":"https://api.github.com/users/WesGilster/repos","events_url":"https://api.github.com/users/WesGilster/events{/privacy}","received_events_url":"https://api.github.com/users/WesGilster/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T13:02:35Z","updated_at":"2016-11-01T13:02:35Z","body":"I assume you didn't mean to close this bug. I believe this to be an issue with permissions, so let me know if you think this could have happened.\r\n\r\nAt some point in the past the following directory structure was created with root:\r\n`/tmp/printdir/charmander_starter_1gen_flowalistik.STL.zipextract`\r\n\r\nPhotonic3D was reinstalled and executed as a \"non-root\" user(pi perhaps) and an image preview was executed which eventually tried to clean up the environment:\r\n\r\n`at org.area515.resinprinter.job.CreationWorkshopSceneFileProcessor.prepareEnvironment(CreationWorkshopSceneFileProcessor.java:246)`\r\n\r\nAt that point, Apache file utils started traversing the directories and found a directory it couldn't delete which was:\r\n`/tmp/printdir/charmander_starter_1gen_flowalistik.STL.zipextract/slices`\r\n\r\nI know you guys made some fixes to start.sh to ensure the application was run as root which will fix this problem in the future. It also reinforces the idea that Photonic3d may have been accidentally executed with non-root privileges. We don't have that information now, but when you do a log dump, I'm able to tell which user you were running Photonic3d at the time and that could be helpful information. The problem is that I won't have file permissions for all of the files on the OS so you might have to help me out there. The only other reason that it couldn't clean the directories might be that the OS already wiped it out right as it's about to clean. That seems unlikely though."}}
{"actor":{"display_login":"WesGilster"}}