postiz-standalone

Description: One Click deployment of Popular Open Source Social media scheduling tool.

Category: Other

URL: https://railway.com/template/Rd76MM

39 Replies

baswouelle
HOBBY

a year ago

The deploy was a sucess! but I can't create a user


baswouelle

The deploy was a sucess! but I can't create a user

Sorry for that @baswouelle. Remove the Environmental variable PORT= 5000 and deploy it again.. Also you need to map it manually once deployed . Refer the doc attached

Attachments


baswouelle
HOBBY

a year ago

@tamilarasi-tech thank you for you quick answer ! the doc you attached is empty ?


baswouelle

@tamilarasi-tech thank you for you quick answer ! the doc you attached is empty ?

I'm able to see the content in file.. Pasted here for your reference.


baswouelle
HOBBY

a year ago

perfect ! this is done

sorry to bother you but I still have an error while trying to create an account

Attachments


baswouelle
HOBBY

a year ago

so I've redeployed just in case and the error changed

Attachments


@baswouelle, Just delete the networking url of postiz and make sure that 4200,3000,5000 ports are correctly displaying and then create the new custom url with port mapped to 5000. Please do deploy since build variable need to map it again for frontend and backend with the newly created url. Hope this will work

I'm suspecting either Backend is not up or frontend networking url is wrongly mapped in your case


baswouelle
HOBBY

a year ago

i've just deleted everything a created a new build and it's working. Thank you so much


tamilarasi-tech

@baswouelle, Just delete the networking url of postiz and make sure that 4200,3000,5000 ports are correctly displaying and then create the new custom url with port mapped to 5000. Please do deploy since build variable need to map it again for frontend and backend with the newly created url. Hope this will workI'm suspecting either Backend is not up or frontend networking url is wrongly mapped in your case

jay13238
PRO

10 months ago

Hi I amm getting the same error as @baswouelle was getting, I am just usure what you mean by "Just delete the networking url of postiz" clarification would be greatly appreciated


jay13238

Hi I amm getting the same error as @baswouelle was getting, I am just usure what you mean by "Just delete the networking url of postiz" clarification would be greatly appreciated

candide
HOBBY

9 months ago

I think they meant deleting this thing here, under the Docker deploy Settings > Public Networking:

I just did a fresh deploy of this template, and there was no existing public network URL to delete. I just needed to generate a new one (as pictured above).

Afterwards, I redeployed:

So far, so good!


candide
HOBBY

9 months ago

This deployment is running an old docker image... Any chance it could be updated with the official one? : https://github.com/gitroomhq/postiz-app/pkgs/container/postiz-app

I tested it on my end, and the only change I had to do was add an env variable set to PORT=3000


Updated the template to the current original image version and Thanks @candide for your input.


devalcodes
HOBBY

7 months ago

Can anyone tell me how can I edit the .env files as I got to add social accounts to the app


devalcodes

Can anyone tell me how can I edit the .env files as I got to add social accounts to the app

candide
HOBBY

7 months ago

Go to your project.

Click on the Docker service.

There should be a tab called "Variables". Go to that and add your variables.


candide

Go to your project.Click on the Docker service.There should be a tab called "Variables". Go to that and add your variables.

Thanks @candide.. attached the screen for quick reference for the benifits of all.

Attachments


Anonymous
HOBBY

7 months ago

I tried deploying and i end up getting a screen that says app is running!Pls help.

When i expose it to port 5000 it get this error when i try to register my account

<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.24.0</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->


I tried deploying and i end up getting a screen that says app is running!Pls help.When i expose it to port 5000 it get this error when i try to register my account<html> <head><title>502 Bad Gateway</title></head> <body> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx/1.24.0</center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->

candide
HOBBY

7 months ago

Can you share a screenshot? I think what you posted got redacted


candide

Can you share a screenshot? I think what you posted got redacted

Anonymous
HOBBY

7 months ago

Sure, I've tried both ports 3000 and 5000.


Anonymous
HOBBY

7 months ago

Port 3000 gives me this error

Attachments


Port 3000 gives me this error

candide
HOBBY

7 months ago


candide

Try following these steps: https://github.com/gitroomhq/postiz-app/issues/632#issuecomment-2948213688

Anonymous
HOBBY

7 months ago

Damn! Its working. Thanksss a ton!!!!! If i need to add my domain do i have to use 5000 or 3000 port
Quick question whenever i add any social media accounts into the ev, i'll have to redeploy it right?


speechless2
PRO

5 months ago

Hey guys i'm following up here. i've been able to install it successfully on railways and come to the dashboard, but when i try to login to instagram standalone i get redirect to instagram page with my app-id (the loggedIn account)
But then when i'm redirected back to my website i got a 502 to /connect and a message " cannot connect to your account"


Damn! Its working. Thanksss a ton!!!!! If i need to add my domain do i have to use 5000 or 3000 portQuick question whenever i add any social media accounts into the ev, i'll have to redeploy it right?

candide
HOBBY

5 months ago

Sorry I missed this! Not sure about the first question, but for the social media account in env: yes, a redeploy is required.


speechless2

Hey guys i'm following up here. i've been able to install it successfully on railways and come to the dashboard, but when i try to login to instagram standalone i get redirect to instagram page with my app-id (the loggedIn account) But then when i'm redirected back to my website i got a 502 to /connect and a message " cannot connect to your account"

candide
HOBBY

5 months ago

How far how have you gotten, per the docs? Which connection method are you using (Facebook Business or through a standalone flow)?


candide

How far how have you gotten, per the docs? Which connection method are you using (Facebook Business or through a standalone flow)?

speechless2
PRO

5 months ago

So i did follow the doc indeed, i'm trying to connect through Instagram standalone, but it's actually the same result for every social media ( also tried tiktok ) however i'm able to login / register on the online platform

I have also confirmed this:

1) The exact redirect_uri configured in Meta is the same as my FRONTEND_URL
2) The INSTAGRAM_APP_ID/SECRET are both valid ( it does go to instagram tab with the right account)

also if needed i have added screenshot in this github post: https://github.com/gitroomhq/postiz-app/issues/632#issuecomment-2948213688


speechless2

So i did follow the doc indeed, i'm trying to connect through Instagram standalone, but it's actually the same result for every social media ( also tried tiktok ) however i'm able to login / register on the online platformI have also confirmed this:1) The exact redirect_uri configured in Meta is the same as my FRONTEND_URL 2) The INSTAGRAM_APP_ID/SECRET are both valid ( it does go to instagram tab with the right account) also if needed i have added screenshot in this github post: https://github.com/gitroomhq/postiz-app/issues/632#issuecomment-2948213688

candide
HOBBY

5 months ago

Can you check the logs for your current Docker image deployment to see what kinds of error messages you're getting there when you try to add your channels?


candide

Can you check the logs for your current Docker image deployment to see what kinds of error messages you're getting there when you try to add your channels?

speechless2
PRO

5 months ago

Sadly it doesn't show any logs

1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG [NestApplication] Nest application successfully started +279ms

1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG Configuration check completed without any issues.

1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG rocket emoji Backend is running on: http://localhost:3000

POST /api/integrations/social/instagram-standalone/connect

Status: 502

Duration: 523 ms

GET /api/signatures/default

Status: 502

Duration: 1 ms

GET /no-channels.svg

Status: 304

Duration: 2 ms

POST /api/copilot/chat (NO API KEY SET THERE )

Status: 502

Duration: 523 ms


speechless2

Sadly it doesn't show any logs1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG [NestApplication] Nest application successfully started +279ms1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG Configuration check completed without any issues.1|backend | [Nest] 936 - 10/02/2025, 7:19:25 PM LOG Backend is running on: http://localhost:3000POST /api/integrations/social/instagram-standalone/connectStatus: 502Duration: 523 msGET /api/signatures/defaultStatus: 502Duration: 1 msGET /no-channels.svgStatus: 304Duration: 2 msPOST /api/copilot/chat (NO API KEY SET THERE )Status: 502Duration: 523 ms

candide
HOBBY

5 months ago

Yeah, I'm at a loss, sorry... I would recommend creating a brand-new issue in the GitHub repo and sharing all the details you've shared here, logs and all. That would be your best bet in terms of getting feedback from the actual dev.

I've been running into login issues with my Railway deploy, and switching browsers (from Firefox to Chromium) was the only thing that helped... Hopefully, the issues will get resolved in the next releases.


Damn! Its working. Thanksss a ton!!!!! If i need to add my domain do i have to use 5000 or 3000 portQuick question whenever i add any social media accounts into the ev, i'll have to redeploy it right?

please map only 5000... 3000 is for your backend and nginx will route it to backend port internally.


candide
HOBBY

4 months ago

@tamilarasi-tech: You might need to add the following env variable:

NOT_SECURED=false

(ref: https://github.com/gitroomhq/postiz-app/issues/1007)


candide

@tamilarasi-tech: You might need to add the following env variable:NOT_SECURED=false(ref: https://github.com/gitroomhq/postiz-app/issues/1007)

@candide - Thanks for the update! Sure, we’ll add it. Could you please share what issues will be faced without this, especially for educational purposes? If it’s not a vulnerability-related issue, feel free to share the details here.


tamilarasi-tech

@candide - Thanks for the update! Sure, we’ll add it. Could you please share what issues will be faced without this, especially for educational purposes? If it’s not a vulnerability-related issue, feel free to share the details here.

candide
HOBBY

4 months ago

It's related to a bug, which I've linked to:

https://github.com/gitroomhq/postiz-app/issues/1007

Without the variable, many users have reported not being able to log into or out of the app.

I've also linked to several other issues in that issue that mention the same problem and solution:

#967

#998

#671

#665


clintjeez
HOBBY

2 months ago

I cant sign-up after following the setup guide on the doc to use a custom port 5000. I'm getting the error on the screenshot when i try to sign-up.

Attachments


clintjeez

I cant sign-up after following the setup guide on the doc to use a custom port 5000. I'm getting the error on the screenshot when i try to sign-up.

can you try setting the custom port 5000 and validate

Attachments


tamilarasi-tech

can you try setting the custom port 5000 and validate

clintjeez
HOBBY

2 months ago

Thank you I did that already and still getting the error.


I tested the Railway template deployment myself to better understand the issue you mentioned.

Here are the exact steps I followed:

  1. I deployed the template using the Deploy Now button from the following link:
    https://railway.com/deploy/Rd76MM

  2. I waited until all three services were successfully online.

  3. I then opened the gitroomhq/postiz-app:latest service, which is unexposed by default.

  4. From that service, I generated a Railway domain. By default, Railway mapped the domain to port 3000.

  5. Using the Edit (pencil2 emoji) icon, I updated the port mapping to 5000, which is the correct public entry point for the application.

After updating the port mapping, the application became accessible as expected.

For reference, here is the demo URL I used to verify the flow:
https://gitroomhqpostiz-applatest-production-3717.up.railway.app/auth

However, after mapping the custom port, if we redeploy the gitroomhq/postiz-app:latest service, the issue can be reproduced and results in a 502 Gateway error.

I’m currently checking whether any additional or missing environment variables are involved and will update you once I identify them.


clintjeez

Thank you I did that already and still getting the error.

The Postiz team released a new version yesterday with major infrastructure changes.

Please make sure you update the Docker image version to the following explicitly:

ghcr.io/gitroomhq/postiz-app:v2.11.3

Also, ensure that auto-updates are disabled to avoid unexpected breaking changes from future releases.

Using a fixed image version is important now, as the recent infrastructure changes can cause deployment issues (such as 502 Gateway errors) when older or auto-updated images are used.

Let me know once this is updated, and I can help verify the deployment again.

it's worked and i have tested in my new depolyment and update the template as well. https://railway.com/deploy/Rd76MM

If possible delete the exiting app if you are not having any channel connected and try deploying from the Template Again

Thanks for you efforts


candide
HOBBY

a month ago

If possible delete the exiting app if you are not having any channel connected and try deploying from the Template Again

Thank you so much for your work, @tamilarasi-tech! I already have channels connected. What's the best way to go about updating the existing deployment without ripping ones hair out?


candide

If possible delete the exiting app if you are not having any channel connected and try deploying from the Template AgainThank you so much for your work, @tamilarasi-tech! I already have channels connected. What's the best way to go about updating the existing deployment without ripping ones hair out?

Im testing it and will share the documentation to follow.. for now dont make the auto update at railway and limit your version to v2.11.3.


Loading...