P
Postiz2mo ago
Support

Ticket: 502 Error During Coolify Registration

@Thibault Chausson Just created a ticket
Question: During the installation with Coolify, using the features provided for this purpose in Coolify, I encountered a 502 error during registration.
Attempted: All the instructions in https://docs.postiz.com/installation/coolify
Working On: Self-hosted with Coolify
Using Postiz On: Coolify
Take it from here @Postiz
Postiz Documentation
Coolify – Postiz Docs
How to install Postiz on Coolify
22 Replies
Thibault Chausson
my docker compose
Thibault Chausson
My .env
SERVICE_BEEHIIVE_KEY=
SERVICE_BEEHIIVE_PUBID=
SERVICE_DISCORD_ID=
SERVICE_DISCORD_SECRET=
SERVICE_DISCORD_TOKEN=
SERVICE_DRIBBLE_ID=
SERVICE_DRIBBLE_SECRET=
SERVICE_FACEBOOK_ID=
SERVICE_FACEBOOK_SECRET=
SERVICE_FQDN_POSTIZ=https://AAAAAAAAAAAA.fr
SERVICE_GITHUB_ID=
SERVICE_GITHUB_SECRET=
SERVICE_INSTAGRAM_ID=
SERVICE_INSTAGRAM_SECRET=
SERVICE_LINKEDIN_ID=
SERVICE_LINKEDIN_SECRET=
SERVICE_MASTODON_ID=
SERVICE_MASTODON_SECRET=
SERVICE_OPENAI_KEY=
SERVICE_PASSWORD_JWTSECRET=VzLPlNP0LIFPE7T9lZZ9QKbIGFrXR9TA
SERVICE_PASSWORD_POSTGRESQL=XAbgI82Ceo9CRZFjLR12bPEnPx7QGoAJ
SERVICE_PASSWORD_REDIS=ygaSgqhkDo2OWcsfwU2KTwW8fMV482Sh
SERVICE_PINTEREST_ID=
SERVICE_PINTEREST_SECRET=
SERVICE_REDDIT_API=
SERVICE_REDDIT_SECRET=
SERVICE_SLACK_ID=
SERVICE_SLACK_SECRET=
SERVICE_THREADS_ID=
SERVICE_THREADS_SECRET=
SERVICE_TIKTOK_ID=
SERVICE_TIKTOK_SECRET=
SERVICE_USER_POSTGRESQL=LYNT8ILLPq2QCDlk
SERVICE_USER_REDIS=OZXdIv4asAILBi74
SERVICE_X_API=
SERVICE_X_SECRET=
SERVICE_YOUTUBE_ID=
SERVICE_YOUTUBE_SECRET=
POSTGRESQL_DATABASE=postiz-db
SERVICE_BEEHIIVE_KEY=
SERVICE_BEEHIIVE_PUBID=
SERVICE_DISCORD_ID=
SERVICE_DISCORD_SECRET=
SERVICE_DISCORD_TOKEN=
SERVICE_DRIBBLE_ID=
SERVICE_DRIBBLE_SECRET=
SERVICE_FACEBOOK_ID=
SERVICE_FACEBOOK_SECRET=
SERVICE_FQDN_POSTIZ=https://AAAAAAAAAAAA.fr
SERVICE_GITHUB_ID=
SERVICE_GITHUB_SECRET=
SERVICE_INSTAGRAM_ID=
SERVICE_INSTAGRAM_SECRET=
SERVICE_LINKEDIN_ID=
SERVICE_LINKEDIN_SECRET=
SERVICE_MASTODON_ID=
SERVICE_MASTODON_SECRET=
SERVICE_OPENAI_KEY=
SERVICE_PASSWORD_JWTSECRET=VzLPlNP0LIFPE7T9lZZ9QKbIGFrXR9TA
SERVICE_PASSWORD_POSTGRESQL=XAbgI82Ceo9CRZFjLR12bPEnPx7QGoAJ
SERVICE_PASSWORD_REDIS=ygaSgqhkDo2OWcsfwU2KTwW8fMV482Sh
SERVICE_PINTEREST_ID=
SERVICE_PINTEREST_SECRET=
SERVICE_REDDIT_API=
SERVICE_REDDIT_SECRET=
SERVICE_SLACK_ID=
SERVICE_SLACK_SECRET=
SERVICE_THREADS_ID=
SERVICE_THREADS_SECRET=
SERVICE_TIKTOK_ID=
SERVICE_TIKTOK_SECRET=
SERVICE_USER_POSTGRESQL=LYNT8ILLPq2QCDlk
SERVICE_USER_REDIS=OZXdIv4asAILBi74
SERVICE_X_API=
SERVICE_X_SECRET=
SERVICE_YOUTUBE_ID=
SERVICE_YOUTUBE_SECRET=
POSTGRESQL_DATABASE=postiz-db
And my error log (postiz service)
2024-11-17T16:40:19.422064098Z at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)
2024-11-17T16:40:20.012724361Z {"level":"error","ts":1731861620.010837,"logger":"http.log.error","msg":"dial tcp [::1]:3000: connect: connection refused","request":{"remote_ip":"172.18.0.6","remote_port":"59660","client_ip":"172.18.0.6","proto":"HTTP/1.1","method":"POST","host":"postiz.coolify.aaaaaa.fr","uri":"/api/auth/register","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15"],"Accept":["application/json"],"Pragma":["no-cache"],"X-Forwarded-Proto":["https"],"X-Real-Ip":["31.38.184.195"],"Accept-Language":["en-GB,en;q=0.9"],"Cache-Control":["no-cache"],"Referer":["https://postiz.coolify.aaaaaaaaa.fr/auth"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Host":["postiz.coolify.aaaaaaaaaa.fr"],"Content-Length":["120"],"Accept-Encoding":["gzip, deflate, br"],"Origin":["https://postiz.coolify.aaaaaaaaa.fr"],"X-Forwarded-Port":["443"],"Content-Type":["application/json"],"Priority":["u=3, i"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"X-Forwarded-For":["31.38.184.195"],"X-Forwarded-Server":["e177e46bf340"]}},"duration":0.004041005,"status":502,"err_id":"mniuqpx59","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}
2024-11-17T16:40:21.429397409Z [ioredis] Unhandled error event: ReplyError: WRONGPASS invalid username-password pair or user is disabled.
2024-11-17T16:40:21.429575346Z at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)
2024-11-17T16:40:21.429589843Z at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)
2024-11-17T16:40:19.422064098Z at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)
2024-11-17T16:40:20.012724361Z {"level":"error","ts":1731861620.010837,"logger":"http.log.error","msg":"dial tcp [::1]:3000: connect: connection refused","request":{"remote_ip":"172.18.0.6","remote_port":"59660","client_ip":"172.18.0.6","proto":"HTTP/1.1","method":"POST","host":"postiz.coolify.aaaaaa.fr","uri":"/api/auth/register","headers":{"User-Agent":["Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Safari/605.1.15"],"Accept":["application/json"],"Pragma":["no-cache"],"X-Forwarded-Proto":["https"],"X-Real-Ip":["31.38.184.195"],"Accept-Language":["en-GB,en;q=0.9"],"Cache-Control":["no-cache"],"Referer":["https://postiz.coolify.aaaaaaaaa.fr/auth"],"Sec-Fetch-Site":["same-origin"],"X-Forwarded-Host":["postiz.coolify.aaaaaaaaaa.fr"],"Content-Length":["120"],"Accept-Encoding":["gzip, deflate, br"],"Origin":["https://postiz.coolify.aaaaaaaaa.fr"],"X-Forwarded-Port":["443"],"Content-Type":["application/json"],"Priority":["u=3, i"],"Sec-Fetch-Dest":["empty"],"Sec-Fetch-Mode":["cors"],"X-Forwarded-For":["31.38.184.195"],"X-Forwarded-Server":["e177e46bf340"]}},"duration":0.004041005,"status":502,"err_id":"mniuqpx59","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}
2024-11-17T16:40:21.429397409Z [ioredis] Unhandled error event: ReplyError: WRONGPASS invalid username-password pair or user is disabled.
2024-11-17T16:40:21.429575346Z at parseError (/app/node_modules/redis-parser/lib/parser.js:179:12)
2024-11-17T16:40:21.429589843Z at parseType (/app/node_modules/redis-parser/lib/parser.js:302:14)
I will change the .env files at the end of the bug resolution. To provide some context, here’s what I did: 1. Created a production environment on Coolify.
2. Went to "Add Service" and searched for Postiz.
3. Checked the "Connect To Predefined Network" option.
4. Changed the URL in the service to have a more user-friendly URL for Postiz.
5. Named the three services as suggested in the documentation to make it more readable.
P.S.: The URLs and .env were changed at the end to avoid sharing them on Discord.
JohnLr
JohnLr2mo ago
Have the same issue with Coolify
Support
SupportOP2mo ago
@Postiz please help @Thibault Chausson
Giovann1
Giovann12mo ago
I had the same issue, I asked Claude to fix my compose file, it did something and it worked, not sure if it will help to share my compose file?
Thibault Chausson
yes I would like your file thanks
Dr. Eggbert
Dr. Eggbert5w ago
can you poste your compose file ?
drdiffie
drdiffie5w ago
Would also be interested. Still having issues with Coolify.
Flowl (The Beater#EUW)
Same here
drdiffie
drdiffie5w ago
Are you able to actually log in with this Config? I used your exact compose file which works but only if I use the pre created sslip.io domain (which is not SSL secured) and even here I am not able to log in after I created an account.
Giovann1
Giovann15w ago
Did you singup first? I did signup with email/pass and I do host my Postiz instance at a custom subdomain of my coolify machine
drdiffie
drdiffie5w ago
Got it to work. Your docker-compose however just threw me a Redis auth error constantly. I got a fix for it, but not a good one. Could you check the Postiz Logs to see if you also have Redis connection errors with your config? Alright got everything working with all features. Cleaning up the docker file now and also make a pull request to updated the Postiz Docs. Also will create a pull request to directly add Postiz as One click service to Coolify.
egelhaus
egelhaus5w ago
Thanks! And can I close this?
Giovann1
Giovann15w ago
No errors on my side
drdiffie
drdiffie5w ago
Thats the config which worked for me and is final. https://paste2.org/e05PCecG I also added the option to actually use the R2 Cloudflare bucket.
Support
SupportOP5w ago
This thread is now closed! Feel free to open a new one if you need help
Want results from more Discord servers?
Add your server