postal icon indicating copy to clipboard operation
postal copied to clipboard

After upgrade to V3 no mails are sent

Open uhlhosting opened this issue 10 months ago • 16 comments

Describe the bug

TypeError: no implicit conversion of Array into String

To Reproduce

Follow official upgrade path from latest 2 to 3.

Expected behaviour

A working postal v3.

Screenshots

image

Environment details

  • OS: ubuntu
  • Browser safari, chrome
  • Version latest
  • Type desktop

Additional information/context

Add any other context about the problem here. It is particularily useful to include log extracts (after removing private information).

uhlhosting avatar Apr 21 '24 15:04 uhlhosting

Are you able to find the full stack trace from within the logs? Probably somewhere in the postal logs worker output.

willpower232 avatar Apr 22 '24 08:04 willpower232

@willpower232 Will have to redo that. Since i was forced to restore a backup.

uhlhosting avatar Apr 23 '24 00:04 uhlhosting

Can you confirm the exact version you’re running?

adamcooke avatar Apr 25 '24 05:04 adamcooke

@adamcooke

CONTAINER ID   IMAGE                               COMMAND                  CREATED       STATUS        PORTS                                                                      NAMES
a34297612656   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-smtp-1
6ec9940805e8   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-worker-1
a4b242436d9c   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-cron-1
e699c9930eac   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-web-1
2ec30e60fbfc   ghcr.io/postalserver/postal:2.2.2   "/docker-entrypoint.…"   5 weeks ago   Up 28 hours                                                                              postal-requeuer-1
ac18cbbb80ab   rabbitmq:3.8                        "docker-entrypoint.s…"   2 years ago   Up 28 hours   4369/tcp, 5671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:5672->5672/tcp   postal-rabbitmq
dd8d1f2d5478   mariadb                             "docker-entrypoint.s…"   2 years ago   Up 28 hours   127.0.0.1:3306->3306/tcp                                                   postal-mariadb
e3b3c5365e01   439af64db489                        "caddy run --config …"   2 years ago   Up 28 hours  

this is aftter the restore, before was latest 2.2.x release before the major v3.

uhlhosting avatar Apr 25 '24 21:04 uhlhosting

I have the same issue, I installed postal at version 3, so there was no upgrade I can send emails using the SMTP connector with an API key, but when I try to reply to an email that try to use a route and an address endpoint TypeError: no implicit conversion of Array into String image image

Reftek85 avatar May 24 '24 15:05 Reftek85

So, its related to ClamAV, I turned off rspamd and retried, still not working. i turned off clamav and retried and it was now working! I enabled rspamd and it still is working. turned back on clamav in postal.yml, and I now get this error again.

so its a good news overall, other than I wont be able to scan viruses.

Reftek85 avatar May 24 '24 16:05 Reftek85

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jun 24 '24 01:06 github-actions[bot]

@willpower232 any news on this matter? Other what community discussed?

uhlhosting avatar Jun 25 '24 11:06 uhlhosting

I was waiting for @adamcooke to continue now he has your answer about which version, I just removed the stale tag to keep it open until he is able to reply

willpower232 avatar Jun 25 '24 13:06 willpower232

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 26 '24 01:07 github-actions[bot]

Tried upgrading again. Got same: TypeError: no implicit conversion of Array into String

uhlhosting avatar Jul 31 '24 11:07 uhlhosting

@adamcooke hi, any updates on this matter?

uhlhosting avatar Jul 31 '24 12:07 uhlhosting

Hi All, maybe not applicable, but I had the same issue just now after updating v2 to v3 (latest) and the same issues started coming up.

I debugged the logs and this drew my attention:

...
worker_1  | 2024-08-19 22:15:05 +0000 ERROR  Error talking to spamd: Errno::ECONNREFUSED (Connection refused - connect(2) for "127.0.0.1" port 783) component=worker thread=work0 original_queued_message=22521 queued_message=22521
worker_1  | 2024-08-19 22:15:05 +0000 INFO   internal error: TypeError: no implicit conversion of Array into String component=worker thread=work0 original_queued_message=22521 queued_message=22521
...

Seemed unlikely, but still weird that the one error before this was issue where Postal could not connect to SpamAssassin.

So I checked SpamAssassin service status and indeed, it was inactive:

image

As soon as I started it and re-tried delivering the failed emails... Boom, all worked fine.

Just leaving here in case it could help anyone.

grrinch avatar Aug 19 '24 22:08 grrinch

@grrinch did you hit the same errors as me above in postal UI?

uhlhosting avatar Aug 22 '24 18:08 uhlhosting

The exact same, also on Ubuntu.

grrinch avatar Aug 22 '24 20:08 grrinch

@grrinch Thanks, will retry the upgrade. Have done this already twice always failed same way. And decided to wait for a fix. Yet that did not arrived yet. So will check your solution when at pc.

uhlhosting avatar Aug 24 '24 05:08 uhlhosting

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 24 '24 02:09 github-actions[bot]