{"action":"created","issue":{"url":"https://api.github.com/repos/humhub/humhub/issues/2984","repository_url":"https://api.github.com/repos/humhub/humhub","labels_url":"https://api.github.com/repos/humhub/humhub/issues/2984/labels{/name}","comments_url":"https://api.github.com/repos/humhub/humhub/issues/2984/comments","events_url":"https://api.github.com/repos/humhub/humhub/issues/2984/events","html_url":"https://github.com/humhub/humhub/issues/2984","id":294444829,"number":2984,"title":"Internal server errors","user":{"login":"ellingen","id":105404,"avatar_url":"https://avatars2.githubusercontent.com/u/105404?v=4","gravatar_id":"","url":"https://api.github.com/users/ellingen","html_url":"https://github.com/ellingen","followers_url":"https://api.github.com/users/ellingen/followers","following_url":"https://api.github.com/users/ellingen/following{/other_user}","gists_url":"https://api.github.com/users/ellingen/gists{/gist_id}","starred_url":"https://api.github.com/users/ellingen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellingen/subscriptions","organizations_url":"https://api.github.com/users/ellingen/orgs","repos_url":"https://api.github.com/users/ellingen/repos","events_url":"https://api.github.com/users/ellingen/events{/privacy}","received_events_url":"https://api.github.com/users/ellingen/received_events","type":"User","site_admin":false},"labels":[{"id":79663038,"url":"https://api.github.com/repos/humhub/humhub/labels/Type:Question","name":"Type:Question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-02-05T15:59:36Z","updated_at":"2018-02-06T16:12:41Z","closed_at":null,"author_association":"NONE","body":"### What steps will reproduce the problem?\r\n\r\nWith a fresh install, as soon as I’m registering a second user, HumHub is intermittently causing Internal Server errors.\r\n\r\n### What is the expected result?\r\n\r\nNo errors.\r\n\r\n### What do you get instead?\r\n\r\nFrom PHP error logs:\r\n\r\n```\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"NOTICE: PHP message: An Error occurred while handling another error:\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"PDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php:646\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"Stack trace:\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#0 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(646): PDO->__construct('mysql:host=loca...', 'linden90', 'xxxxxxxx...', NULL)\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#1 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(579): yii\\db\\Connection->createPdoInstance()\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#2 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(928): yii\\db\\Connection->open()\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#3 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(915): yii\\db\\Connection->getMasterPdo()\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#4 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Schema.php(483): yii\\db\\Connection->getSlavePdo()\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#5 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(824): yii\\db\\Schema->quoteValue('TopMenuWidget')\"\r\n[05-Feb-2018 16:46:31] WARNING: [pool www] child 4187 said into stderr: \"#6 /var/www/virtua...\"\r\n````\r\n\r\nFrom Apache error logs:\r\n```\r\n[Mon Feb 05 16:46:31 2018] [error] [pid 18987] mod_proxy_fcgi.c(834): [client 91.65.0.0] AH01071: Got error 'PHP message: An Error occurred while handling another error:\\nPDOException: SQLSTATE[HY000] [2002] Connection refused in /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php:646\\nStack trace:\\n#0 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(646): PDO->__construct('mysql:host=loca...', 'linden90', 'XXXXXXXXXX...', NULL)\\n#1 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(579): yii\\\\db\\\\Connection->createPdoInstance()\\n#2 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(928): yii\\\\db\\\\Connection->open()\\n#3 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(915): yii\\\\db\\\\Connection->getMasterPdo()\\n#4 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Schema.php(483): yii\\\\db\\\\Connection->getSlavePdo()\\n#5 /var/www/virtual/linden90/html/protected/vendor/yiisoft/yii2/db/Connection.php(824): yii\\\\db\\\\Schema->quoteValue('TopMenuWidget')\\n#6 /var/www/virtual/linden...\\n'\r\n```\r\n\r\nFWIW, when reloading the page, it almost always works again. But the error still occurs far too frequently in order for HumHub to still be usable.\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| HumHub version   | 1.2.4\r\n| Maria DB | 10.1.30\r\n| PHP version      | 7.1.13\r\n| Operating system | CentOS 7\r\n\r\n> Note: Please use the [community](https://community.humhub.com) site for any questions on customizing HumHub.\r\n> Note: Also provide the full error stacks from `Administration --> Information --> Logging` and errors from your browser console if possible.\r\n"},"comment":{"url":"https://api.github.com/repos/humhub/humhub/issues/comments/363473514","html_url":"https://github.com/humhub/humhub/issues/2984#issuecomment-363473514","issue_url":"https://api.github.com/repos/humhub/humhub/issues/2984","id":363473514,"user":{"login":"danielkesselberg","id":3902676,"avatar_url":"https://avatars3.githubusercontent.com/u/3902676?v=4","gravatar_id":"","url":"https://api.github.com/users/danielkesselberg","html_url":"https://github.com/danielkesselberg","followers_url":"https://api.github.com/users/danielkesselberg/followers","following_url":"https://api.github.com/users/danielkesselberg/following{/other_user}","gists_url":"https://api.github.com/users/danielkesselberg/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkesselberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkesselberg/subscriptions","organizations_url":"https://api.github.com/users/danielkesselberg/orgs","repos_url":"https://api.github.com/users/danielkesselberg/repos","events_url":"https://api.github.com/users/danielkesselberg/events{/privacy}","received_events_url":"https://api.github.com/users/danielkesselberg/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T16:12:41Z","updated_at":"2018-02-06T16:12:41Z","author_association":"CONTRIBUTOR","body":"I dont think so. The real problem is hidden behind another problem ;-) While rendering the error view the layout tries to render the TopMenuWidget. If the previous error (the real one :D) has something todo with an sql connection it fails again while rendering the TopMenuWidget. In fact is a bit trickier to find the problem. \r\n\r\n@luke- i guess we need a reduced layout/view for cases like this. "}}
{"actor":{"display_login":"danielkesselberg"}}