{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/569","repository_url":"https://api.github.com/repos/nextcloud/nextcloud-snap","labels_url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/569/comments","events_url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/569/events","html_url":"https://github.com/nextcloud/nextcloud-snap/issues/569","id":322315947,"number":569,"title":"Cannot renew Let's Encrypt certificate","user":{"login":"Nubzori","id":2294768,"avatar_url":"https://avatars0.githubusercontent.com/u/2294768?v=4","gravatar_id":"","url":"https://api.github.com/users/Nubzori","html_url":"https://github.com/Nubzori","followers_url":"https://api.github.com/users/Nubzori/followers","following_url":"https://api.github.com/users/Nubzori/following{/other_user}","gists_url":"https://api.github.com/users/Nubzori/gists{/gist_id}","starred_url":"https://api.github.com/users/Nubzori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nubzori/subscriptions","organizations_url":"https://api.github.com/users/Nubzori/orgs","repos_url":"https://api.github.com/users/Nubzori/repos","events_url":"https://api.github.com/users/Nubzori/events{/privacy}","received_events_url":"https://api.github.com/users/Nubzori/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-11T14:24:10Z","updated_at":"2018-05-12T17:33:34Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI am having a weird problem, my cert did not renew automatically. My ip has changed to different one during this 90 day certificate. I've changed my domain to point into my new ip.\r\nI tried:\r\n\r\n`sudo nextcloud.enable-https lets-encrypt`\r\n\r\nbut it gives me this error:\r\n\r\n`An unexpected error occurred: IOError: [Errno 13] Permission denied: '/etc/letsencrypt/cli.ini' Please see the logfile '/tmp/tmpdvL2dk' for more details.\r\n`\r\nLogfile contains same error message:\r\n\r\n`2018-05-10 23:38:30,567:DEBUG:certbot.main:certbot version: 0.14.1 2018-05-10 23:38:30,567:DEBUG:certbot.main:Arguments: ['--text', '--config-dir', '/var/snap/nextcloud/current/certs/certbot/config', '--work-dir', '/var/snap/nextcloud/current/certs/certbot/work', '--logs-dir', '/var/snap/nextcloud/current/certs/certbot/logs', '--post-hook', 'restart-apache'] 2018-05-10 23:38:30,567:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#nextcloud:webroot,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) 2018-05-10 23:38:30,572:DEBUG:certbot.log:Exiting abnormally: Traceback (most recent call last): File \"/snap/nextcloud/6916/bin/certbot\", line 11, in <module> sys.exit(main()) File \"/snap/nextcloud/6916/lib/python2.7/site-packages/certbot/main.py\", line 729, in main args = cli.prepare_and_parse_args(plugins, cli_args) File \"/snap/nextcloud/6916/lib/python2.7/site-packages/certbot/cli.py\", line 1101, in prepare_and_parse_args return helpful.parse_args() File \"/snap/nextcloud/6916/lib/python2.7/site-packages/certbot/cli.py\", line 534, in parse_args parsed_args = self.parser.parse_args(self.args) File \"/snap/nextcloud/6916/lib/python2.7/site-packages/configargparse.py\", line 373, in parse_args env_vars = env_vars) File \"/snap/nextcloud/6916/lib/python2.7/site-packages/configargparse.py\", line 472, in parse_known_args config_streams = self._open_config_files(args) File \"/snap/nextcloud/6916/lib/python2.7/site-packages/configargparse.py\", line 715, in _open_config_files for f in files] IOError: [Errno 13] Permission denied: '/etc/letsencrypt/cli.ini' ~\r\n`\r\nRunning sudo journalctl -u snap.nextcloud.renew-certs\r\ncontains this:\r\n\r\n`-- Logs begin at Tue 2018-05-08 23:37:50 EEST, end at Fri 2018-05-11 15:16:45 EEST. -- May 08 23:38:21 asuka systemd[1]: Started Service for snap application nextcloud.renew-certs. May 08 23:38:23 asuka nextcloud.renew-certs[1831]: Self-signed certificates aren't due for renewal May 08 23:38:28 asuka nextcloud.renew-certs[1831]: An unexpected error occurred: May 08 23:38:28 asuka nextcloud.renew-certs[1831]: IOError: [Errno 13] Permission denied: '/etc/letsencrypt/cli.ini' May 08 23:38:28 asuka nextcloud.renew-certs[1831]: Please see the logfile '/tmp/tmpIe8fch' for more details. May 09 23:38:28 asuka nextcloud.renew-certs[1831]: Self-signed certificates aren't due for renewal May 09 23:38:29 asuka nextcloud.renew-certs[1831]: An unexpected error occurred: May 09 23:38:29 asuka nextcloud.renew-certs[1831]: IOError: [Errno 13] Permission denied: '/etc/letsencrypt/cli.ini' May 09 23:38:29 asuka nextcloud.renew-certs[1831]: Please see the logfile '/tmp/tmpnJWLrf' for more details. May 10 23:38:29 asuka nextcloud.renew-certs[1831]: Self-signed certificates aren't due for renewal May 10 23:38:30 asuka nextcloud.renew-certs[1831]: An unexpected error occurred: May 10 23:38:30 asuka nextcloud.renew-certs[1831]: IOError: [Errno 13] Permission denied: '/etc/letsencrypt/cli.ini' May 10 23:38:30 asuka nextcloud.renew-certs[1831]: Please see the logfile '/tmp/tmp6YFSR3' for more details.`\r\n\r\nsnap version:\r\n\r\n`snap    2.32.6\r\nsnapd   2.32.6\r\nseries  16\r\nubuntu  16.04\r\nkernel  4.4.0-119-generic\r\n`\r\n\r\nAny ideas what to do?\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/comments/388570783","html_url":"https://github.com/nextcloud/nextcloud-snap/issues/569#issuecomment-388570783","issue_url":"https://api.github.com/repos/nextcloud/nextcloud-snap/issues/569","id":388570783,"user":{"login":"kyrofa","id":946674,"avatar_url":"https://avatars0.githubusercontent.com/u/946674?v=4","gravatar_id":"","url":"https://api.github.com/users/kyrofa","html_url":"https://github.com/kyrofa","followers_url":"https://api.github.com/users/kyrofa/followers","following_url":"https://api.github.com/users/kyrofa/following{/other_user}","gists_url":"https://api.github.com/users/kyrofa/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrofa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrofa/subscriptions","organizations_url":"https://api.github.com/users/kyrofa/orgs","repos_url":"https://api.github.com/users/kyrofa/repos","events_url":"https://api.github.com/users/kyrofa/events{/privacy}","received_events_url":"https://api.github.com/users/kyrofa/received_events","type":"User","site_admin":false},"created_at":"2018-05-12T17:33:34Z","updated_at":"2018-05-12T17:33:34Z","author_association":"MEMBER","body":"Ah, yep. Updating certbot won't help (although I'll be doing that anyway). I can duplicate this if I create `/etc/letsencrypt/cli.ini`. If you can move it out of the way, this will start working again. I'll try to figure out a way to stop that from happening."}}
{"actor":{"display_login":"kyrofa"}}