Open andrerkn opened 1 year ago
I see in the logs that it is mentioned that your mailer is configured to send mail to mailhog:1025, do you use docker for your local installation? And if yes the mailhog service is started? If you don't use docker or you don't want to use mailhog to catch mails, you have to modify your .env.local to customize the smtp you want to use :)
Hello. I deployed my self-hosted repman yesterday and I am starting to use.
I am trying to invite a member to my organization, but I am getting a 500 error on POST function.
repman_access.log:
10.0.142.25 - - [28/Oct/2022:19:18:34 +0000] "POST /organization/xxxxxxxx/member/invite HTTP/1.1" 500 5343 "https://xxxxxx.com.br/organization/xxxxxxxxx/member/invite" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0" "177.92.89.182" 0.352
Prod.log:
![Screenshot from 2022-10-28 16-15-51](https://user-images.githubusercontent.com/55511334/198716146-412a27b5-5ca9-435b-a4f1-fd09d4571da7.png)
[2022-10-28T19:18:34.068853+00:00] request.INFO: Matched route "organization_invite_member". {"route":"organization_invite_member","route_parameters":{"_route":"organization_invite_member","_controller":"Buddy\\Repman\\Controller\\Organization\\MembersController::invite","organization":"xxxxxxxx"},"request_uri":"https://xxxxxxxxxx.com.br/organization/xxxxxxxxxxx/member/invite","method":"POST"} [] [2022-10-28T19:18:34.087226+00:00] security.DEBUG: Read existing security token from the session. {"key":"_security_main","token_class":"Symfony\\Component\\Security\\Guard\\Token\\PostAuthenticationGuardToken"} [] [2022-10-28T19:18:34.129149+00:00] security.DEBUG: User was reloaded from a user provider. {"provider":"Buddy\\Repman\\Security\\UserProvider","username":"andre.villar@xxxxx.com.br"} [] [2022-10-28T19:18:34.129181+00:00] security.DEBUG: Checking for guard authentication credentials. {"firewall_key":"main","authenticators":5} [] [2022-10-28T19:18:34.129191+00:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\LoginFormAuthenticator"} [] [2022-10-28T19:18:34.129201+00:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\LoginFormAuthenticator"} [] [2022-10-28T19:18:34.144075+00:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\GitHubAuthenticator"} [] [2022-10-28T19:18:34.144092+00:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\GitHubAuthenticator"} [] [2022-10-28T19:18:34.144248+00:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\GitLabAuthenticator"} [] [2022-10-28T19:18:34.144254+00:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\GitLabAuthenticator"} [] [2022-10-28T19:18:34.146141+00:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\BitbucketAuthenticator"} [] [2022-10-28T19:18:34.146157+00:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\BitbucketAuthenticator"} [] [2022-10-28T19:18:34.153410+00:00] security.DEBUG: Checking support on guard authenticator. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\BuddyAuthenticator"} [] [2022-10-28T19:18:34.153429+00:00] security.DEBUG: Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"Buddy\\Repman\\Security\\BuddyAuthenticator"} [] [2022-10-28T19:18:34.223658+00:00] php.INFO: User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/http-foundation 5.3: \"Symfony\\Component\\HttpFoundation\\RequestStack::getMasterRequest()\" is deprecated, use \"getMainRequest()\" instead. at /app/vendor/symfony/http-foundation/RequestStack.php:92)"} [] [2022-10-28T19:18:34.310722+00:00] app.DEBUG: Email transport "Symfony\Component\Mailer\Transport\Smtp\SmtpTransport" starting [] [] [2022-10-28T19:18:34.332182+00:00] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Messenger\Exception\HandlerFailedException: "Connection could not be established with host "mailhog:1025": stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve" at /app/vendor/symfony/doctrine-bridge/Messenger/DoctrineTransactionMiddleware.php line 42 {"exception":"[object] (Symfony\\Component\\Messenger\\Exception\\HandlerFailedException(code: 0): Connection could not be established with host \"mailhog:1025\": stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve at /app/vendor/symfony/doctrine-bridge/Messenger/DoctrineTransactionMiddleware.php:42)\n[previous exception] [object] (Symfony\\Component\\Messenger\\Exception\\HandlerFailedException(code: 0): Connection could not be established with host \"mailhog:1025\": stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve at /app/vendor/symfony/doctrine-bridge/Messenger/DoctrineTransactionMiddleware.php:42)\n[previous exception] [object] (Symfony\\Component\\Mailer\\Exception\\TransportException(code: 0): Connection could not be established with host \"mailhog:1025\": stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve at /app/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:139)"} [] [2022-10-28T19:18:34.340752+00:00] php.INFO: User Deprecated: Since symfony/http-foundation 5.3: "Symfony\Component\HttpFoundation\RequestStack::getMasterRequest()" is deprecated, use "getMainRequest()" instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/http-foundation 5.3: \"Symfony\\Component\\HttpFoundation\\RequestStack::getMasterRequest()\" is deprecated, use \"getMainRequest()\" instead. at /app/vendor/symfony/http-foundation/RequestStack.php:92)"} []
Someone can help?
Thanks!