{"action":"created","issue":{"url":"https://api.github.com/repos/smira/aptly/issues/583","repository_url":"https://api.github.com/repos/smira/aptly","labels_url":"https://api.github.com/repos/smira/aptly/issues/583/labels{/name}","comments_url":"https://api.github.com/repos/smira/aptly/issues/583/comments","events_url":"https://api.github.com/repos/smira/aptly/issues/583/events","html_url":"https://github.com/smira/aptly/issues/583","id":234810364,"number":583,"title":"Missing files in global pool","user":{"login":"lazyfrosch","id":121874,"avatar_url":"https://avatars1.githubusercontent.com/u/121874?v=3","gravatar_id":"","url":"https://api.github.com/users/lazyfrosch","html_url":"https://github.com/lazyfrosch","followers_url":"https://api.github.com/users/lazyfrosch/followers","following_url":"https://api.github.com/users/lazyfrosch/following{/other_user}","gists_url":"https://api.github.com/users/lazyfrosch/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyfrosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyfrosch/subscriptions","organizations_url":"https://api.github.com/users/lazyfrosch/orgs","repos_url":"https://api.github.com/users/lazyfrosch/repos","events_url":"https://api.github.com/users/lazyfrosch/events{/privacy}","received_events_url":"https://api.github.com/users/lazyfrosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-09T12:21:44Z","updated_at":"2017-06-09T15:00:47Z","closed_at":null,"body":"I noticed today that some files in the hashed pools are missing.\r\n\r\n**Disclaimer:** Might be caused by some cleanup scripts (that use the aptly CLI)\r\n\r\n**2nd Disclaimer:** We switched between nightly and 1.0.1 back and forth\r\n\r\n## Detailed Description\r\n\r\nCausing errors publishing such repositories, the files themselves still exists in the published pool.\r\n\r\nWhen trying to publish a repository the following error appears.\r\n\r\nI'm just wondering what could have cause aptly to purge the files? Differences in the database?\r\n\r\n```\r\nJun  9 11:18:25 icinga-aptly aptly[3572]: Error #01: unable to update: unable to process packages: link /var/www/html/aptly/pool/fd/7c\r\n/icinga2-dbg_2.6.3+t346.g2dc82138e.2017.06.08+1.stretch-0_amd64.deb /var/www/html/aptly/public/debian/pool/main/i/icinga2/icinga2-dbg_\r\n2.6.3+t346.g2dc82138e.2017.06.08+1.stretch-0_amd64.deb: no such file or directory\r\n```\r\n\r\n## Possible Implementation\r\n\r\nI wrote a repair script in Ruby that cleans it up:\r\n\r\n```\r\nFile is missing: /var/www/html/aptly/pool/17/02/icinga2-studio_2.6.3+t346.g2dc82138e.2017.06.08+1.zesty-0_i386.deb\r\nFound file at /var/www/html/aptly/public/ubuntu/pool/main/i/icinga2/icinga2-studio_2.6.3+t346.g2dc82138e.2017.06.08+1.zesty-0_i386.deb\r\nReparing hardlink to /var/www/html/aptly/pool/17/02/icinga2-studio_2.6.3+t346.g2dc82138e.2017.06.08+1.zesty-0_i386.deb\r\n```\r\n\r\n## Your Environment\r\n\r\n* OS: Debian 8.8\r\n* Aptly: 1.0.1 / 1.0.0+95+g0d04189"},"comment":{"url":"https://api.github.com/repos/smira/aptly/issues/comments/307412893","html_url":"https://github.com/smira/aptly/issues/583#issuecomment-307412893","issue_url":"https://api.github.com/repos/smira/aptly/issues/583","id":307412893,"user":{"login":"lazyfrosch","id":121874,"avatar_url":"https://avatars1.githubusercontent.com/u/121874?v=3","gravatar_id":"","url":"https://api.github.com/users/lazyfrosch","html_url":"https://github.com/lazyfrosch","followers_url":"https://api.github.com/users/lazyfrosch/followers","following_url":"https://api.github.com/users/lazyfrosch/following{/other_user}","gists_url":"https://api.github.com/users/lazyfrosch/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyfrosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyfrosch/subscriptions","organizations_url":"https://api.github.com/users/lazyfrosch/orgs","repos_url":"https://api.github.com/users/lazyfrosch/repos","events_url":"https://api.github.com/users/lazyfrosch/events{/privacy}","received_events_url":"https://api.github.com/users/lazyfrosch/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T15:00:47Z","updated_at":"2017-06-09T15:00:47Z","body":"I think it was caused by the checksum. I tried to repair all the links and it looks fine now"}}
{"actor":{"display_login":"lazyfrosch"}}