• Suporte
  • Erro ao logar no novosga 2.0.8

Instalei o novosga sem ser pelo docker
Ao logar aparece o erro:

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Já desinstalei, instalei. Verifiquei o banco de dados, está com o nome correto e etc;

Debian

Veja o conteúdo do arquivo var/log/prod.log (diretório var dentro da aplicação)

@rogeriolino Ola!
Aqui o conteúdo do prod.log depois que tenta logar:

request.INFO: Matched route "app_login". {"route":"app_login","route_parameters":{"_route":"app_login","_controller":"App\\Controller\\SecurityController::login"},"request_uri":"http://(aqui é o ip)/login","method":"Pod":"POST"} []
 security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"main","authenticators":1} []
 security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} []
 security.DEBUG: Calling getCredentials() on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} []
 security.DEBUG: Passing guard token information to the GuardAuthenticationProvider {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} []
 request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occurred in driver: could not find driver" at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Abstnot find driver at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)"} []

    Estou passando exatamente pelo mesmo problema!

    1 [2019-09-04 13:50:26] request.INFO: Matched route "app_login".
    {"route":"app_login","route_parameters":{"_route":"app_login","_controller":"App\\Controller\\SecurityController::login"},"request_uri":"http://192.168.0.175/login","method":"POST"}
    [] [2019-09-04 13:50:26] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"main","authenticators":1} []
    [2019-09-04 13:50:26] security.DEBUG: Checking support on guard authenticator.
    {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:26] security.DEBUG: Calling getCredentials()
    on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:26] security.DEBUG:
    Passing guard token information to the GuardAuthenticationProvider
    {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:26] request.CRITICAL: Uncaught PHP Exception
    Doctrine\DBAL\Exception\ConnectionException: "An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory" at
    /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 93 {"exception":"[object]
    (Doctrine\\DBAL\\Exception\\ConnectionException(code: 0): An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory
    at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\\DBAL\\Driver\\PDOException(code:
    2002): SQLSTATE[HY000] [2002] No such file or directory at
    /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 2002): SQLSTATE[HY000] [2002] No
    such file or directory at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)"} [] [2019-09-04
    13:50:33] request.INFO: Matched route "app_login".
    {"route":"app_login","route_parameters":{"_route":"app_login","_controller":"App\\Controller\\SecurityController::login"},"request_uri":"http://192.168.0.175/login","method":"POST"}
    [] [2019-09-04 13:50:33] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"main","authenticators":1} []
    [2019-09-04 13:50:33] security.DEBUG: Checking support on guard authenticator.
    {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:33] security.DEBUG: Calling getCredentials()
    on guard authenticator. {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:33] security.DEBUG:
    Passing guard token information to the GuardAuthenticationProvider
    {"firewall_key":"main","authenticator":"App\\Security\\LoginAuthenticator"} [] [2019-09-04 13:50:33] request.CRITICAL: Uncaught PHP Exception
    Doctrine\DBAL\Exception\ConnectionException: "An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory" at
    /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 93 {"exception":"[object]
    (Doctrine\\DBAL\\Exception\\ConnectionException(code: 0): An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory
    at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\\DBAL\\Driver\\PDOException(code:
    2002): SQLSTATE[HY000] [2002] No such file or directory at
    /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 2002): SQLSTATE[HY000] [2002] No
    such file or directory at /var/www/html/novosga/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)"} []
      8 dias depois

      Estou realmente precisando de uma resposta! Já tentei varias coisas aqui e não estar dando;

      2 meses depois

      SabrinaRT

      Conforme escrito na mensagem de erro:

      An exception occurred in driver: could not find driver

      Não tem instalado o drive de conexão com o banco de dados que você está usando (o padrão é MySQL).

      edubbastos

      No seu caso parece que não configurou a conexão com o banco de dados direito.

        5 anos depois

        rogeriolino O meu deu o seguinte erro apos instalação:

        Oops! An Error Occurred
        The server returned a "500 Internal Server Error".
        Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
        Novo SGA CE v2.1.2

          5 meses depois

          Isso me dá esse registro NOVOSGA2 v2.1.4

          Environment variable not found: "LANGUAGE".
          Symfony\Component\DependencyInjection\Exception\EnvNotFoundException 

          HTTP 500 Internal Server Error

          log

          [2024-10-30T02:31:58.407852+01:00] php.INFO: User Deprecated: Since symfony/security-core 5.3: The "Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface" interface is deprecated, use the new authenticator system instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-core 5.3: The \"Symfony\\Component\\Security\\Core\\Authentication\\Provider\\AuthenticationProviderInterface\" interface is deprecated, use the new authenticator system instead. at C:\\xampp\\htdocs\\novosga\\vendor\\symfony\\security-core\\Authentication\\Provider\\AuthenticationProviderInterface.php:17)"} []
          [2024-10-30T02:31:58.409012+01:00] php.INFO: User Deprecated: The "FOS\OAuthServerBundle\Security\Authentication\Provider\OAuthProvider" class implements "Symfony\Component\Security\Core\Authentication\Provider\AuthenticationProviderInterface" that is deprecated since Symfony 5.3, use the new authenticator system instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: The \"FOS\\OAuthServerBundle\\Security\\Authentication\\Provider\\OAuthProvider\" class implements \"Symfony\\Component\\Security\\Core\\Authentication\\Provider\\AuthenticationProviderInterface\" that is deprecated since Symfony 5.3, use the new authenticator system instead. at C:\\xampp\\htdocs\\novosga\\vendor\\symfony\\error-handler\\DebugClassLoader.php:331)"} []

            was0564
            A falta ou configuração errada desse arquivo ".htaccess" provoca esse erro
            Dentro da pasta public

            tonyferreira

            A falta ou configuração errada desse arquivo ".htaccess" provoca esse erro
            Dentro da pasta public
            Principalmente do banco de dados, nome do banco, usuário e senha do banco de dados