openfaas / faasd

A lightweight & portable faas engine
https://store.openfaas.com/l/serverless-for-everyone-else
MIT License
2.97k stars 213 forks source link

Additional property postgresql is not allowed #365

Closed DanieleLattaioli closed 2 months ago

DanieleLattaioli commented 2 months ago

I have been successfully using Postgresql in my faasd instance until this morning. This afternoon suddenly the machine stopped working due to strange errors, so I created a new one and followed the same configuration procedure for Postgresql. In the logs I get this error "Additional property postgresql is not allowed". so faasd no longer supports Postgresql?

ubuntu@faasd6:~$ sudo systemctl daemon-reload && sudo systemctl restart faasd
ubuntu@faasd6:~$ sudo sudo journalctl -u faasd -f
Jun 13 21:02:37 faasd6 faasd[11908]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:02:37 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:02:37 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
Jun 13 21:02:38 faasd6 systemd[1]: /usr/lib/systemd/system/faasd.service:6: Unit uses MemoryLimit=; please use MemoryMax= instead. Support for MemoryLimit= will be removed soon.
Jun 13 21:02:38 faasd6 systemd[1]: Stopped faasd.service - faasd.
Jun 13 21:02:38 faasd6 systemd[1]: Started faasd.service - faasd.
Jun 13 21:02:38 faasd6 faasd[11969]: faasd version: 0.19.0        commit: e4848cd829286c174bda45b40fc8c5ae5c571d08
Jun 13 21:02:38 faasd6 faasd[11969]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:02:38 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:02:38 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
Jun 13 21:02:48 faasd6 systemd[1]: faasd.service: Scheduled restart job, restart counter is at 7.
Jun 13 21:02:48 faasd6 systemd[1]: Started faasd.service - faasd.
Jun 13 21:02:48 faasd6 faasd[11980]: faasd version: 0.19.0        commit: e4848cd829286c174bda45b40fc8c5ae5c571d08
Jun 13 21:02:48 faasd6 faasd[11980]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:02:48 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:02:48 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
Jun 13 21:02:59 faasd6 systemd[1]: faasd.service: Scheduled restart job, restart counter is at 8.
Jun 13 21:02:59 faasd6 systemd[1]: Started faasd.service - faasd.
Jun 13 21:02:59 faasd6 faasd[11986]: faasd version: 0.19.0        commit: e4848cd829286c174bda45b40fc8c5ae5c571d08
Jun 13 21:02:59 faasd6 faasd[11986]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:02:59 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:02:59 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
Jun 13 21:03:09 faasd6 systemd[1]: faasd.service: Scheduled restart job, restart counter is at 9.
Jun 13 21:03:09 faasd6 systemd[1]: Started faasd.service - faasd.
Jun 13 21:03:09 faasd6 faasd[11992]: faasd version: 0.19.0        commit: e4848cd829286c174bda45b40fc8c5ae5c571d08
Jun 13 21:03:09 faasd6 faasd[11992]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:03:09 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:03:09 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
Jun 13 21:03:19 faasd6 systemd[1]: faasd.service: Scheduled restart job, restart counter is at 10.
Jun 13 21:03:19 faasd6 systemd[1]: Started faasd.service - faasd.
Jun 13 21:03:19 faasd6 faasd[11998]: faasd version: 0.19.0        commit: e4848cd829286c174bda45b40fc8c5ae5c571d08
Jun 13 21:03:19 faasd6 faasd[11998]: Error: (root) Additional property postgresql is not allowed
Jun 13 21:03:19 faasd6 systemd[1]: faasd.service: Main process exited, code=exited, status=1/FAILURE
Jun 13 21:03:19 faasd6 systemd[1]: faasd.service: Failed with result 'exit-code'.
rgee0 commented 2 months ago

It's a bit of a challenge to try to help people when the details required by the issue template aren't provided.

Googling your error message offers all manner of results that relate to the contents of the compose file either being incorrectly formatted, or containing typos.

I'd start there in terms of debugging.

DanieleLattaioli commented 2 months ago

I apologize, it was a typo due to haste and tiredness. I corrected the formatting and now everything works.

rgee0 commented 2 months ago

/close: resolved (non-issue)

alexellis commented 2 months ago

Thank you @rgee0