maddsua
maddsua
Explore posts from servers
RRailway
Created by maddsua on 8/12/2024 in #✋|help
Permissions issue with Volumes
I'm trying to move grafana data to a volume, but grafana refuses to start complaining about the directory being inaccessible:
Starting Container
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/0181e1c6-9f08-419a-96dd-4c9674a44fab/vol_1c8bj2snj0ah4se7
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
container event container died
Starting Container
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/0181e1c6-9f08-419a-96dd-4c9674a44fab/vol_1c8bj2snj0ah4se7
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
container event container died
It makes no difference if I mount to /var/lib/grafana or to /data and update ENV vars to point there. There are forum posts suggesting to run container with certain user/group set, so the question is: any way to do this on railway?
7 replies
CDCloudflare Developers
Created by maddsua on 7/20/2024 in #workers-help
Worker script gets minified twice
I got a weird error where a JSX rendered in prod doesn't have correct html line breaks. Upon further inspection I discovered that when code that's been previously minified by esbuild gets deployed to workers it somehow misses ALL line breaks in string literals which causes the issue. I'm using a custom JSX renderer, that's why it wasn't caught earlier I think. It is a requirement for the project. The code is deployed using Cloudflare API. Any suggestions how to fix this? Also, for some reason I can't PUT any non-minified scripts, CF just says that those don't have exported fetch handler which is simply not true
1 replies
CDCloudflare Developers
Created by maddsua on 3/18/2024 in #pages-help
Cannot setup a domain for Pages project
No description
32 replies
CDCloudflare Developers
Created by maddsua on 3/13/2024 in #workers-help
Rejections in execution context and dashboard error count
If a promise that's been passed to ctx.waitUntil() throws, will it be reflected as an error in Workers Dashboard? I'd figure it out myself, but the test worker still pretends that it didn't receive anything and the dashboard just shows 0 requests 😀
2 replies
TtRPC
Created by maddsua on 2/23/2024 in #❓-help
Procedure specific custom headers
I'm using recaptcha to protect some of the procedures, and I'm used to sending challenge tokens as headers - this way the don't dangle in actual request data. It's and Astro + trpc fetch project and the server part gives me no issues, but I can't figure out how to run recaptcha and set that header only on some of the procedures. The example shown in the docs would add headers or run function for all of them, and I don't need that
12 replies
CDCloudflare Developers
Created by maddsua on 12/26/2023 in #general-help
How to setup mailchannels integration on Cloudflare Pages app with a custom domain?
I made it work on workers, nothing complicated there, but it doesn't seem to work with pages. Mailchannels just returns Error: Mailchannels API rejected: Failed to send email: 550 5.7.1 This sender is not authorized to send from.... I've set up the _mailchannels TXT record like this v=mc1 cfid=namespace.workers.dev cfid=namespace2.workers.dev cfid=customdomain.com and it still does not work with the custom domain.
14 replies
CDCloudflare Developers
Created by maddsua on 12/23/2023 in #general-help
Quick question about CPU limit on Pages Functions
I'm running an Astro app and it's not unusual for it's functions to run longer than 50ms (it was the old limit iirc). Now, there's a "No CPU limit set" and a button to change it. I just want to know how that works now, will longer requests be counted as multiple invocations or it's just Cloudflare being super generous lately xD
9 replies
RRailway
Created by maddsua on 12/3/2023 in #✋|help
build fails on redeploy from ui
So I use a dockerfile to deploy my service using cli, the entire image only consist of a single js file and it seems like railway grabs the entire directory anyway and then tries to build the the thing from the wrong files and fails. Is it time to use .railwayignore?
59 replies
RRailway
Created by maddsua on 11/10/2023 in #✋|help
Railway up fails to find ts modules in cicd
No description
20 replies