12 days ago
We run Chromium for server-side PDF generation and require Chromium sandboxing to remain enabled.
We reproduced the failure in an isolated Railway canary using the same application candidate and the same production region.
Runtime details:
- Railpack V3 / Runtime V2
- Region: us-east4-eqdc4a
- Runtime UID/GID: 65534
- Chromium sandbox helper: root:root, mode 4755
Exact Chromium error:
credentials.cc:137 — Permission denied (13)
We also verified that unprivileged namespace creation in the same Railway runtime returns Permission denied.
The same Chromium candidate previously succeeded in our Railway staging deployment in another region.
We have already ruled out:
- missing Chromium binary
- incorrect sandbox-helper ownership
- incorrect sandbox-helper mode
We do NOT want to use:
- --no-sandbox
- running the application as root
- privileged containers
- chmod 777
- weakened sandbox permissions
Could you please confirm:
-
Is non-root Chromium sandboxing / user namespace support expected to work in standard Railway services?
-
Can runtime security policy differ by Railway region?
-
Could us-east4-eqdc4a restrict namespace operations required by Chromium?
-
Is there a supported Railway configuration for running Chromium with its sandbox enabled?
-
If this region cannot support it, would moving the service to the same region where our staging deployment succeeds be a supported solution?
We reproduced the same failure in a temporary isolated canary and removed the canary after collecting evidence.
Production is currently rolled back to the previous healthy release and remains stable.
4 Replies
12 days ago
We checked our documentation and it does not cover this yet, so the Railway community is the best place to get a real answer: people who have already worked this out on their own projects and can tell you what actually worked.
So we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who answers it, and threads like this usually get picked up quickly.
Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.
- Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
- Keep it private and close the thread - Nothing becomes public and the thread closes.
Status changed to Awaiting User Response Railway • 12 days ago
Railway
We checked our documentation and it does not cover this yet, so the Railway community is the best place to get a real answer: people who have already worked this out on their own projects and can tell you what actually worked. So we'd like to open your thread as a community [bounty](https://docs.railway.com/community/bounties). Railway pays a bounty to the community member who answers it, and threads like this usually get picked up quickly. **Opening it makes this entire thread public**, including everything already posted. Nothing becomes public until you decide. Use the buttons below. - **Open to the community** - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away. - **Keep it private and close the thread** - Nothing becomes public and the thread closes.
12 days ago
I still need Railway staff help with this.
To clarify, I am not asking Railway to debug my application code.
This is a Railway runtime/platform-policy question.
We reproduced the exact Chromium sandbox failure in a temporary isolated
Railway canary in the same production region:
Region: us-east4-eqdc4a
Railpack V3 / Runtime V2
Runtime UID/GID: 65534
Chromium sandbox helper:
root:root
mode 4755
Exact error:
credentials.cc:137 — Permission denied (13)
Unprivileged namespace creation in that Railway runtime also returns
Permission denied.
The same candidate previously worked in a Railway staging deployment in
another region.
We need clarification from Railway regarding the hosted runtime:
-
Are the namespace operations required by non-root Chromium sandboxing
supported in Railway Runtime V2?
-
Can this runtime/security policy differ between Railway regions?
-
Is there a supported Railway configuration for running Chromium with
its sandbox enabled as a non-root user?
-
If the production region does not support the required namespace
behavior, is moving the service to a region where it succeeds a
supported solution?
We will not use --no-sandbox, root runtime, privileged containers, or
weakened permissions.
Please keep this thread private and have a Railway staff member review
the runtime-policy question.
Status changed to Awaiting Railway Response Railway • 12 days ago
12 days ago
The community is still the best next step here. The buttons below are still live: open the thread up as a public bounty after editing out anything sensitive, or keep it private and close it.
Status changed to Awaiting User Response Railway • 12 days ago
12 days ago
This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.
Status changed to Open Railway • 12 days ago
12 days ago
I'd look into Railway's Sandboxes (Linux VMs).
Also, for question 5, you could try it out by adding a replica in the region of your staging environment and see what happens.