{"action":"created","issue":{"url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/346","repository_url":"https://api.github.com/repos/elkarbackup/elkarbackup","labels_url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/346/comments","events_url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/346/events","html_url":"https://github.com/elkarbackup/elkarbackup/issues/346","id":379064738,"node_id":"MDU6SXNzdWUzNzkwNjQ3Mzg=","number":346,"title":"Problems with permissions","user":{"login":"parreitu","id":3928521,"node_id":"MDQ6VXNlcjM5Mjg1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3928521?v=4","gravatar_id":"","url":"https://api.github.com/users/parreitu","html_url":"https://github.com/parreitu","followers_url":"https://api.github.com/users/parreitu/followers","following_url":"https://api.github.com/users/parreitu/following{/other_user}","gists_url":"https://api.github.com/users/parreitu/gists{/gist_id}","starred_url":"https://api.github.com/users/parreitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parreitu/subscriptions","organizations_url":"https://api.github.com/users/parreitu/orgs","repos_url":"https://api.github.com/users/parreitu/repos","events_url":"https://api.github.com/users/parreitu/events{/privacy}","received_events_url":"https://api.github.com/users/parreitu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-09T08:22:01Z","updated_at":"2018-11-12T10:33:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi\r\n\r\nI don't understand why, but for the last days we can't use the web interface of Elkarbackup.\r\n\r\nWhen we try to login, nothing happens, and the login page does not load. As we can see in the log, something happens with the permissions of some files\r\n\r\n`# tail -f /var/log/apache2/elkarbackup.error.log\r\n[Fri Nov 09 08:34:37.090375 2018] [:error] [pid 17839] [client 10.23.38.170:36320] PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file \"/var/log/elkarbackup/prod.log\" could not be opened: failed to open stream: Permission denied in /var/cache/elkarbackup/prod/classes.php:6013\\nStack trace:\\n#0 /var/cache/elkarbackup/prod/classes.php(5951): Monolog\\\\Handler\\\\StreamHandler->write(Array)\\n#1 /var/cache/elkarbackup/prod/classes.php(6122): Monolog\\\\Handler\\\\AbstractProcessingHandler->handle(Array)\\n#2 /var/cache/elkarbackup/prod/classes.php(6412): Monolog\\\\Handler\\\\FingersCrossedHandler->handle(Array)\\n#3 /var/cache/elkarbackup/prod/classes.php(6517): Monolog\\\\Logger->addRecord(500, 'Uncaught PHP Ex...', Array)\\n#4 /usr/share/elkarbackup/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php(89): Monolog\\\\Logger->critical('Uncaught PHP Ex...', Array)\\n#5 /usr/share/elkarbackup/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/EventListener/ExceptionListener.php(45): Symfony\\\\Component\\\\HttpKernel\\\\EventListener\\\\ExceptionListener->logException(Object(UnexpectedValueExce in /var/cache/elkarbackup/prod/classes.php on line 6013`\r\n\r\nThe question is that we have not changed nothing during the last weeks, so I don't understand which could be the reason. \r\n\r\nAlso, I'm getting cron errors\r\n\r\n`/usr/share/elkarbackup/app/console elkarbackup:tick`\r\n\r\n`PHP Warning:  rename(/usr/share/elkarbackup/app/logs/tmp-c0045j0152.log,/usr/share/elkarbackup/app/logs/jobs/c45j152_20181109055228_1.log): Permission denied in /usr/share/elkarbackup/src/Binovo/ElkarBackupBundle/Command/RunJobCommand.php on line 325\r\nPHP Warning:  rename(/usr/share/elkarbackup/app/logs/tmp-c0040j0137.log,/usr/share/elkarbackup/app/logs/jobs/c40j137_20181109073055_1.log): Permission denied in /usr/share/elkarbackup/src/Binovo/ElkarBackupBundle/Command/RunJobCommand.php on line 325`\r\n\r\nI've cleared the cache \r\n`# rm -fR /var/lib/elkarbackup/sessions/*`\r\n`# rm -fR /var/cache/elkarbackup/*`\r\n`# /usr/share/elkarbackup/app/console cache:clear --env=prod`\r\n`# /usr/share/elkarbackup/app/console assetic:dump --env=prod`\r\n\r\nbut the problem remains. Happily Elkarbackup is running and is able to make the backups\r\n\r\nAdditional info:\r\n\r\n`# /usr/share/elkarbackup/app/console --version`\r\n`Symfony version 2.8.11 - app/prod`\r\n\r\n`# cat /etc/debian_version`\r\n`9.5`\r\n\r\n`# getfacl /var/log/elkarbackup/`\r\n`getfacl: Eliminando '/' inicial en nombres de ruta absolutos`\r\n`# file: var/log/elkarbackup/`\r\n`# owner: elkarbackup`\r\n`# group: root`\r\n`user::rwx`\r\n`user:www-data:rwx`\r\n`user:_apt:rwx`\r\n`user:elkarbackup:rwx`\r\n`group::r-x`\r\n`mask::rwx`\r\n`other::r-x`\r\n`default:user::rwx`\r\n`default:user:www-data:rwx`\r\n`default:user:_apt:rwx`\r\n`default:user:elkarbackup:rwx`\r\n`default:group::r-x`\r\n`default:mask::rwx`\r\n`default:other::r-x`\r\n\r\n`# getfacl /usr/share/elkarbackup/src/Binovo/ElkarBackupBundle`\r\n`getfacl: Eliminando '/' inicial en nombres de ruta absolutos`\r\n`# file: usr/share/elkarbackup/src/Binovo/ElkarBackupBundle`\r\n`# owner: root`\r\n`# group: root`\r\n`user::rwx`\r\n`group::r-x`\r\n`other::r-x`\r\n\r\nThanks !!\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n`\r\n"},"comment":{"url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/comments/437831715","html_url":"https://github.com/elkarbackup/elkarbackup/issues/346#issuecomment-437831715","issue_url":"https://api.github.com/repos/elkarbackup/elkarbackup/issues/346","id":437831715,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzgzMTcxNQ==","user":{"login":"parreitu","id":3928521,"node_id":"MDQ6VXNlcjM5Mjg1MjE=","avatar_url":"https://avatars3.githubusercontent.com/u/3928521?v=4","gravatar_id":"","url":"https://api.github.com/users/parreitu","html_url":"https://github.com/parreitu","followers_url":"https://api.github.com/users/parreitu/followers","following_url":"https://api.github.com/users/parreitu/following{/other_user}","gists_url":"https://api.github.com/users/parreitu/gists{/gist_id}","starred_url":"https://api.github.com/users/parreitu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parreitu/subscriptions","organizations_url":"https://api.github.com/users/parreitu/orgs","repos_url":"https://api.github.com/users/parreitu/repos","events_url":"https://api.github.com/users/parreitu/events{/privacy}","received_events_url":"https://api.github.com/users/parreitu/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T10:33:42Z","updated_at":"2018-11-12T10:33:42Z","author_association":"CONTRIBUTOR","body":"Hi\r\nFinally I've solved the problem changing the permissions of BnvLog.log and prod.log from 644 to 664\r\n\r\nThe question is: Are these the default permissions ? I would like to know what has happened  ...\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"parreitu"}}