Error 500 for /admin/server/ after update from 2.14 pro to 2.18 pro

Issue #484 resolved
Former user created an issue

After updating from 2.14pro to 2.18pro I get a "500 Internal Server Error" error when trying to access when accessing the server status page. Thanks for your help :-)

Comments (8)

  1. Alexander

    After updating from 2.14pro to 2.18pro I get a "500 Internal Server Error" error when trying to access when accessing the server status page. Thanks for your help :-)

  2. Alexander

    This is my log (hope it's the correct one ;-)

    [2018-10-29 21:13:22] request.INFO: Matched route "status". {"route":"status","route_parameters":{"_controller":"AppBundle\Controller\StatusController::statusAction","_route":"status"},"request_uri":"http://xxx.xxxxx.xx/admin/server/","method":"GET"} [] [2018-10-29 21:13:22] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2018-10-29 21:13:22] php.INFO: User Deprecated: Doctrine\Common\ClassLoader is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\Common\ClassLoader is deprecated. at /opt/admin/vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php:7)"} [] [2018-10-29 21:13:22] security.DEBUG: User was reloaded from a user provider. {"provider":"AppBundle\Entity\BoxRepository","username":"xxxxx@xxxxx.xx"} [] [2018-10-29 21:13:22] request.CRITICAL: Uncaught PHP Exception Exception: "/proc/meminfo doesn't contain MemAvailable" at /opt/admin/src/AppBundle/Server/System.php line 47 {"exception":"[object] (Exception(code: 0): /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47)"} [] [2018-10-29 21:13:22] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} [] [2018-10-29 21:13:26] request.INFO: Matched route "status". {"route":"status","route_parameters":{"_controller":"AppBundle\Controller\StatusController::statusAction","_route":"status"},"request_uri":"http://xxx.xxxxx.xx/admin/server/","method":"GET"} [] [2018-10-29 21:13:26] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2018-10-29 21:13:26] php.INFO: User Deprecated: Doctrine\Common\ClassLoader is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\Common\ClassLoader is deprecated. at /opt/admin/vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php:7)"} [] [2018-10-29 21:13:26] security.DEBUG: User was reloaded from a user provider. {"provider":"AppBundle\Entity\BoxRepository","username":"xxxxx@xxxxx.xx"} [] [2018-10-29 21:13:26] request.CRITICAL: Uncaught PHP Exception Exception: "/proc/meminfo doesn't contain MemAvailable" at /opt/admin/src/AppBundle/Server/System.php line 47 {"exception":"[object] (Exception(code: 0): /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47)"} [] [2018-10-29 21:13:26] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} [] [2018-10-29 21:13:30] request.INFO: Matched route "status". {"route":"status","route_parameters":{"_controller":"AppBundle\Controller\StatusController::statusAction","_route":"status"},"request_uri":"http://xxx.xxxxx.xx/admin/server/","method":"GET"} [] [2018-10-29 21:13:30] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2018-10-29 21:13:30] php.INFO: User Deprecated: Doctrine\Common\ClassLoader is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\Common\ClassLoader is deprecated. at /opt/admin/vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php:7)"} [] [2018-10-29 21:13:30] security.DEBUG: User was reloaded from a user provider. {"provider":"AppBundle\Entity\BoxRepository","username":"xxxxx@xxxxx.xx"} [] [2018-10-29 21:13:31] request.CRITICAL: Uncaught PHP Exception Exception: "/proc/meminfo doesn't contain MemAvailable" at /opt/admin/src/AppBundle/Server/System.php line 47 {"exception":"[object] (Exception(code: 0): /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47)"} [] [2018-10-29 21:13:31] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} [] [2018-10-29 21:13:52] request.INFO: Matched route "status". {"route":"status","route_parameters":{"_controller":"AppBundle\Controller\StatusController::statusAction","_route":"status"},"request_uri":"http://xxx.xxxxx.xx/admin/server/","method":"GET"} [] [2018-10-29 21:13:52] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2018-10-29 21:13:52] php.INFO: User Deprecated: Doctrine\Common\ClassLoader is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\Common\ClassLoader is deprecated. at /opt/admin/vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php:7)"} [] [2018-10-29 21:13:52] security.DEBUG: User was reloaded from a user provider. {"provider":"AppBundle\Entity\BoxRepository","username":"xxxxx@xxxxx.xx"} [] [2018-10-29 21:13:52] request.CRITICAL: Uncaught PHP Exception Exception: "/proc/meminfo doesn't contain MemAvailable" at /opt/admin/src/AppBundle/Server/System.php line 47 {"exception":"[object] (Exception(code: 0): /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47)"} [] [2018-10-29 21:13:52] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} [] [2018-10-29 21:14:35] request.INFO: Matched route "status". {"route":"status","route_parameters":{"_controller":"AppBundle\Controller\StatusController::statusAction","_route":"status"},"request_uri":"http://xxx.xxxxx.xx/admin/server/","method":"GET"} [] [2018-10-29 21:14:35] security.DEBUG: Read existing security token from the session. {"key":"_security_secured_area","token_class":"Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken"} [] [2018-10-29 21:14:35] php.INFO: User Deprecated: Doctrine\Common\ClassLoader is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\Common\ClassLoader is deprecated. at /opt/admin/vendor/doctrine/common/lib/Doctrine/Common/ClassLoader.php:7)"} [] [2018-10-29 21:14:35] security.DEBUG: User was reloaded from a user provider. {"provider":"AppBundle\Entity\BoxRepository","username":"xxxxx@xxxxx.xx"} [] [2018-10-29 21:14:36] request.CRITICAL: Uncaught PHP Exception Exception: "/proc/meminfo doesn't contain MemAvailable" at /opt/admin/src/AppBundle/Server/System.php line 47 {"exception":"[object] (Exception(code: 0): /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47)"} [] [2018-10-29 21:14:36] security.DEBUG: Stored the security token in the session. {"key":"_security_secured_area"} []

  3. Alexander

    I found the issue: /proc/meminfo doesn't contain MemAvailable at /opt/admin/src/AppBundle/Server/System.php:47

    MemAvailable is indeed not in /proc/meminfo. As a workaround I replaced

    'available' => _parseVal('MemAvailable', $contents) with 'available' => _parseVal('MemFree', $contents).

    Maybe the issue is also with my docker version as I updated that before updating to poste 2.18 pro

  4. Log in to comment