Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when testing email #112

Closed
jon2100 opened this issue Feb 15, 2024 · 4 comments
Closed

Error when testing email #112

jon2100 opened this issue Feb 15, 2024 · 4 comments

Comments

@jon2100
Copy link

jon2100 commented Feb 15, 2024

When setting up the email config and trying to verify, clicking on the "Send Test Email" returns "Internal Server Error", looking at the logs from the container labca-gui1.

2024/02/15 18:25:00 POST /manage
2024/02/15 18:25:00 ERROR: Message from server: '2024-02-15T18:25:00.813669+00:00Z mail-tester[898]: 6 mail-tester mr-umAU Debug server listening on :8008
2024-02-15T18:25:00.814024+00:00Z mail-tester[898]: 6 mail-tester j-K1-Q0 Versions: mail-tester=(Unspecified Unspecified) Golang=(go1.21.5) BuildHost=(Unspecified)
2024-02-15T18:25:00.816475+00:00Z mail-tester[898]: 3 mail-tester 8Izp5QI [AUDIT] unable to boot debug server on :8008: listen tcp :8008: bind: address already in use
ERROR! On line 170 in commander script
'
2024/02/15 18:25:00 errorHandler: err=2024-02-15T18:25:00.813669+00:00Z mail-tester[898]: 6 mail-tester mr-umAU Debug server listening on :8008
2024-02-15T18:25:00.814024+00:00Z mail-tester[898]: 6 mail-tester j-K1-Q0 Versions: mail-tester=(Unspecified Unspecified) Golang=(go1.21.5) BuildHost=(Unspecified)
2024-02-15T18:25:00.816475+00:00Z mail-tester[898]: 3 mail-tester 8Izp5QI [AUDIT] unable to boot debug server on :8008: listen tcp :8008: bind: address already in use
ERROR! On line 170 in commander script

main._hostCommand({0x1398458, 0xc00014a2a0}, 0xc000230c01?, {0xe4f481, 0xa}, {0xc0004b54d8, 0x1, 0xc0004b55c0?})
/go/src/labca/main.go:2264 +0x67a
main._emailSendHandler({0x1398458, 0xc00014a2a0}, 0x0?)
/go/src/labca/main.go:965 +0xac
main._managePostDispatch({0x1398458, 0xc00014a2a0}, 0xe478b6?, {0xc00003b96f, 0xa})
/go/src/labca/main.go:1294 +0x2b2
main._managePost({0x1398458, 0xc00014a2a0}, 0xc000457600)
/go/src/labca/main.go:1393 +0x22b
main.manageHandler({0x1398458, 0xc00014a2a0}, 0xc000457600)
/go/src/labca/main.go:1634 +0x6a
net/http.HandlerFunc.ServeHTTP(0xd2cc40?, {0x1398458?, 0xc00014a2a0?}, 0xc00014a2a0?)
/usr/local/go/src/net/http/server.go:2136 +0x29
main.authorized.func1({0x1398458, 0xc00014a2a0}, 0xc000457600)
/go/src/labca/main.go:3289 +0x337
net/http.HandlerFunc.ServeHTTP(0xc000457500?, {0x1398458?, 0xc00014a2a0?}, 0x1?)
/usr/local/go/src/net/http/server.go:2136 +0x29
github.com/gorilla/mux.(*Router).ServeHTTP(0xc0001686c0, {0x1398458, 0xc00014a2a0}, 0xc000457200)
/root/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1c5
net/http.serverHandler.ServeHTTP({0x1395d90?}, {0x1398458?, 0xc00014a2a0?}, 0x6?)
/usr/local/go/src/net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc00058cf30, {0x139b0f8, 0xc0004867e0})
/usr/local/go/src/net/http/server.go:2009 +0x5f4
created by net/http.(*Server).Serve in goroutine 1
/usr/local/go/src/net/http/server.go:3086 +0x5cb

@hakwerk
Copy link
Owner

hakwerk commented Feb 15, 2024

I have no idea what is running on port 8008 inside your labca-boulder-1 docker container, but you can change the port for the expiration-mailer / mail-tester in /home/labca/boulder_labca/config/expiration-mailer.json. Just change port 8008 to 9009 or so there

@jon2100
Copy link
Author

jon2100 commented Feb 15, 2024 via email

@jon2100
Copy link
Author

jon2100 commented Feb 15, 2024

I have no idea what is running on port 8008 inside your labca-boulder-1 docker container, but you can change the port for the expiration-mailer / mail-tester in /home/labca/boulder_labca/config/expiration-mailer.json. Just change port 8008 to 9009 or so there.

so the 9009 stopped getting that error. I tried 8009, which did not work, but. No, I am getting a failed-to-connect, which is interesting. I can, from the OS, make connections and send test emails through my open relay, and when I set it to send to gmail using the same info in my relay, I get the same errors about " mail-tester failed to connect: 534 5.7.9 Application-specific password required." gsmtp
ERROR! On line 170 in commander script" and again from the command line on my host, I can send emails all-day

@hakwerk
Copy link
Owner

hakwerk commented Feb 16, 2024

The output of your netstat command shows what is running on the host machine, the conflict is inside the docker container.

The command docker exec labca-boulder-1 ps -ef shows all the processes running inside that container and will show that the boulder-publisher process is using port 8009.
Unfortunately the netstat command is not available to determine what is running currently on port 8008 inside.

Also your connectivity issue is from inside the container, not from the host.

@hakwerk hakwerk closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants