{"action":"created","issue":{"url":"https://api.github.com/repos/maglub/piLogger/issues/144","labels_url":"https://api.github.com/repos/maglub/piLogger/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/maglub/piLogger/issues/144/comments","events_url":"https://api.github.com/repos/maglub/piLogger/issues/144/events","html_url":"https://github.com/maglub/piLogger/issues/144","id":116650295,"number":144,"title":"Bug: piLogger-cloud process spool dir fails when input file is 0 bytes","user":{"login":"maglub","id":2961018,"avatar_url":"https://avatars.githubusercontent.com/u/2961018?v=3","gravatar_id":"","url":"https://api.github.com/users/maglub","html_url":"https://github.com/maglub","followers_url":"https://api.github.com/users/maglub/followers","following_url":"https://api.github.com/users/maglub/following{/other_user}","gists_url":"https://api.github.com/users/maglub/gists{/gist_id}","starred_url":"https://api.github.com/users/maglub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maglub/subscriptions","organizations_url":"https://api.github.com/users/maglub/orgs","repos_url":"https://api.github.com/users/maglub/repos","events_url":"https://api.github.com/users/maglub/events{/privacy}","received_events_url":"https://api.github.com/users/maglub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/maglub/piLogger/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T21:59:03Z","updated_at":"2015-11-14T09:28:45Z","closed_at":null,"body":"The script dies with the cryptic message:\r\n\r\n```\r\n20151112_214849;piLogger-cloud;Error: could not connect to api.pilogger.net to send file /var/spool/piLogger/piLogger-cloud_30457_1447344324\r\n```\r\n\r\nWhen the 0 byte input file is removed, the remaining files are sent to pilogger.net\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/maglub/piLogger/issues/comments/156676463","html_url":"https://github.com/maglub/piLogger/issues/144#issuecomment-156676463","issue_url":"https://api.github.com/repos/maglub/piLogger/issues/144","id":156676463,"user":{"login":"maglub","id":2961018,"avatar_url":"https://avatars.githubusercontent.com/u/2961018?v=3","gravatar_id":"","url":"https://api.github.com/users/maglub","html_url":"https://github.com/maglub","followers_url":"https://api.github.com/users/maglub/followers","following_url":"https://api.github.com/users/maglub/following{/other_user}","gists_url":"https://api.github.com/users/maglub/gists{/gist_id}","starred_url":"https://api.github.com/users/maglub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maglub/subscriptions","organizations_url":"https://api.github.com/users/maglub/orgs","repos_url":"https://api.github.com/users/maglub/repos","events_url":"https://api.github.com/users/maglub/events{/privacy}","received_events_url":"https://api.github.com/users/maglub/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T09:28:45Z","updated_at":"2015-11-14T09:28:45Z","body":"The question is valid (why are there zero bytes files), but the case still has to be dealt with. There can be many different reasons, not mutually exclusive, to why there are zero bytes files.\n\nSent from my iPhone\n\n> On Nov 13, 2015, at 19:05, do3meli <notifications@github.com> wrote:\n> \n> so the question is: why are there files with 0 byte? \n> further i am wondering if they get generated with 0 bytes or if they get sent and the deletion is not working properly. i could have imagined that if 2 process try to send it that there is a situation where a 0 byte file could be left over. but we always check if spoolDir process runs or not before calling it...\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}