Sang Dang
Sang Dang
Explore posts from servers
RRailway
Created by Sang Dang on 4/22/2024 in #✋|help
What is the best way to archive the E2E tests
Hi, after many months, I still can not figure out how to run E2E tests against PR environment build. My requirement is quite simple: Create PR => trigger the PR environment build, if is OK => trigger the E2E test. If I turn on the auto PR envrionment feature from Railway, I have no way to trigger the GitHub actions after the build completed because Railway never expose a way to do it. (I already spent days to confirm this and not sure if it still true until this time.) If I manually create PR environment from github actions, and do I understand correctly, it is impossible through using railway CLI, and the only way is using GraphQL query? And please give me constructive support and don't troll me. Thank you.
7 replies
RRailway
Created by Sang Dang on 3/23/2024 in #✋|help
How to trigger the Github Actions after the PR environment deployed
Hi, currently we want to trigger the Playwright E2E test against the PR environment URL, mean we have to wait for the PR environment deployment finished, then trigger that test on Github Actions. I tried to use the Webhook but face another issue, our Github repo is private and the workflow_dispatch requires the header, which Railway webhook does not support at this moment. Is there any way to archive this?
10 replies
RRailway
Created by Sang Dang on 3/8/2024 in #✋|help
Railway does not delete old PR environment after merged
No description
4 replies
RRailway
Created by Sang Dang on 2/15/2024 in #✋|help
My PR environment suddenly failed a lot
I don't know why. I tried: - pressing redeploy, still crash - checking the postgres service for example, the logs are No build logs associated with this deployment., No deployment logs. All output sent to stdout will be displayed here - on the production environment, all of my services are in EU, but in this PR env, the postgres region is US West I still not try the delete the PR env and recreate the PR to trigger the new one. But if we can not find the issue, I could try it. This is real business so it's quite critical to me, please help.
11 replies
RRailway
Created by Sang Dang on 2/14/2024 in #✋|help
Help deploy with Dockerfile
I'm trying to dockerize my app, voi, and after adding Dockerfile into my git repo, Railway automatically pick it as main builder. I don't know why now it can not "see" the environment variables I have set in Railway project. It works well before when I build from github repo. The Dockerfile: https://github.com/getsieutoc/voi/blob/master/Dockerfile
26 replies
RRailway
Created by Sang Dang on 2/7/2024 in #✋|help
My estimated cost look scary
No description
14 replies
RRailway
Created by Sang Dang on 1/8/2024 in #✋|help
Mount a volume into current Jupyter lab service, now I got Permission deny
No description
37 replies
RRailway
Created by Sang Dang on 1/3/2024 in #✋|help
Can not install jupyter lab
I got error on deployment:
Could not find root directory: /base-notebook
Could not find root directory: /base-notebook
I use this template https://railway.app/template/WpjhAn
9 replies
RRailway
Created by Sang Dang on 12/29/2023 in #✋|help
listmonk fresh install failed
> [4/4] RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade:
0.311 2023/12/29 07:40:55 init.go:145: reading config: config.toml
0.311 2023/12/29 07:40:55 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
1.338 2023/12/29 07:40:56 main.go:142: the database does not appear to be setup. Run --install.
1.349 2023/12/29 07:40:56 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
1.349 2023/12/29 07:40:56 init.go:145: reading config: config.toml
1.350 2023/12/29 07:40:56 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
2.097
2.097 ** first time installation **
2.097 ** IMPORTANT: This will wipe existing listmonk tables and types in the DB 'railway' **
10.76 2023/12/29 07:41:06 init.go:327: error preparing SQL queries: Error preparing query 'register-link-click': read tcp 172.17.0.3:46992->35.214.223.194:38401: read: connection reset by peer
-----
Dockerfile:5
-------------------
3 | COPY config.sh ./config.sh
4 | RUN chmod +x ./config.sh && ./config.sh
5 | >>> RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade
6 |
-------------------
ERROR: failed to solve: process "/bin/sh -c ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade" did not complete successfully: exit code: 1
> [4/4] RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade:
0.311 2023/12/29 07:40:55 init.go:145: reading config: config.toml
0.311 2023/12/29 07:40:55 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
1.338 2023/12/29 07:40:56 main.go:142: the database does not appear to be setup. Run --install.
1.349 2023/12/29 07:40:56 main.go:102: v2.5.1 (a6a2b69 2023-08-15T15:49:28Z, linux/amd64)
1.349 2023/12/29 07:40:56 init.go:145: reading config: config.toml
1.350 2023/12/29 07:40:56 init.go:273: connecting to db: monorail.proxy.rlwy.net:38401/railway
2.097
2.097 ** first time installation **
2.097 ** IMPORTANT: This will wipe existing listmonk tables and types in the DB 'railway' **
10.76 2023/12/29 07:41:06 init.go:327: error preparing SQL queries: Error preparing query 'register-link-click': read tcp 172.17.0.3:46992->35.214.223.194:38401: read: connection reset by peer
-----
Dockerfile:5
-------------------
3 | COPY config.sh ./config.sh
4 | RUN chmod +x ./config.sh && ./config.sh
5 | >>> RUN ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade
6 |
-------------------
ERROR: failed to solve: process "/bin/sh -c ./listmonk --idempotent --yes --upgrade || ./listmonk --install --yes --upgrade" did not complete successfully: exit code: 1
Look like the database setup failed, it has 0 tables.
8 replies
RRailway
Created by Sang Dang on 12/27/2023 in #✋|help
I can not create new project
It keep asking to config, but after I choosing my organization, saved, the Github popup closed, and it goes back to this view.
14 replies
RRailway
Created by Sang Dang on 12/20/2023 in #✋|help
Is it normal when pgvector does not copy the POSTGRES_PASSWORD env vars from production environment?
I have a pgvector service, but whenever I make new PR, it crashes on the PR environment, the error is something like:
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD to a non-empty value for the
Which I find it's quite strange, because all other services like my nextjs app or nestjs backend just copy their env vars just fine. Do I miss something here?
21 replies
RRailway
Created by Sang Dang on 11/29/2023 in #✋|help
My Chatwoot instance keep crashing
If I remember correctly, after a failed upgrade, my Chatwoot instance keep crashing. I tried to redeploy multiple times but it still does not work.
33 replies
RRailway
Created by Sang Dang on 11/14/2023 in #✋|help
My server failed to response after migrating to new database
No description
102 replies
RRailway
Created by Sang Dang on 11/10/2023 in #✋|help
Error in Plausible service
I installed Plausible but it can not run. This is the error messages:
** (MatchError) no match of right hand side value: {:error, %Mint.TransportError{reason: :nxdomain}}
(plausible 0.0.1) lib/plausible_release.ex:40: anonymous fn/2 in Plausible.Release.createdb/0
(elixir 1.14.3) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(plausible 0.0.1) lib/plausible_release.ex:39: Plausible.Release.createdb/0
nofile:1: (file)
(stdlib 4.2) erl_eval.erl:748: :erl_eval.do_apply/7
** (MatchError) no match of right hand side value: {:error, %Mint.TransportError{reason: :nxdomain}}
(plausible 0.0.1) lib/plausible_release.ex:40: anonymous fn/2 in Plausible.Release.createdb/0
(elixir 1.14.3) lib/enum.ex:2468: Enum."-reduce/3-lists^foldl/2-0-"/3
(plausible 0.0.1) lib/plausible_release.ex:39: Plausible.Release.createdb/0
nofile:1: (file)
(stdlib 4.2) erl_eval.erl:748: :erl_eval.do_apply/7
16 replies
RRailway
Created by Sang Dang on 11/9/2023 in #✋|help
How to add Railway custom domain into trusted_domains of NextCloud?
No description
124 replies
RRailway
Created by Sang Dang on 10/28/2023 in #✋|help
Environment variables were not copied on environment PR
No description
6 replies
RRailway
Created by Sang Dang on 10/26/2023 in #✋|help
How to "login to rail console"?
After install Chatwoot template, I need to do this step: Enable channel_email (Login to rails console and execute the following) https://www.chatwoot.com/docs/self-hosted/configuration/features/email-channel/setup I'm not really expert in Rails, not sure how to do it in Railway, can someone help?
68 replies
RRailway
Created by Sang Dang on 10/18/2023 in #✋|help
Backup cron template is not working
I follow this blog post https://blog.railway.app/p/automated-postgresql-backups but it does not moving forward. I can be sure I add correct secrets and bucket values.
8 replies
RRailway
Created by Sang Dang on 10/1/2023 in #✋|help
I can't find DATABASE_URL in Vercel intergration
No description
7 replies
RRailway
Created by Sang Dang on 8/24/2023 in #✋|help
About Private networking
Hi, I saw Railway has https://docs.railway.app/reference/private-networking Private network domain, do I understand correctly, that with this feature, I can use it to call between services as long as they are hosted on Railway? For example from the frontend service, I can call http://backend.railway.internal/api/posts to get the posts from backend?
9 replies