macwilko
macwilko
Explore posts from servers
RRailway
Created by macwilko on 3/12/2024 in #✋|help
Reference one services generated domain from another?
One service needs to know the generated domain of another, but I don't want to hard-code it. Do variables (shared or otherwise) have the ability to expose that?
5 replies
RRailway
Created by macwilko on 3/12/2024 in #✋|help
Docker compose "context", supported in Railway when building a Dockerfile?
I have a Docker compose file I'm trying to bring to Railway, I'm noticing that one Dockerfile fails to build because it can't find the folders its trying to build:
#13 [10/17] COPY manage.py manage.py

#13 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/manage.py": not found



#14 [11/17] COPY plane plane/

#14 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/plane": not found



#15 [12/17] COPY templates templates/

#15 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/templates": not found
#13 [10/17] COPY manage.py manage.py

#13 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/manage.py": not found



#14 [11/17] COPY plane plane/

#14 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/plane": not found



#15 [12/17] COPY templates templates/

#15 ERROR: failed to calculate checksum of ref 7949f621-c09b-43d4-a8c8-8e51ccffaaac::rcdz9vmeslipnvma2a9t0mwhm: "/templates": not found
The only difference I see to the other Dockerfiles in the compose file is it uses a context:
api:
container_name: api
build:
context: ./apiserver
dockerfile: Dockerfile.api
api:
container_name: api
build:
context: ./apiserver
dockerfile: Dockerfile.api
My Dockerfile is built using:
RAILWAY_DOCKERFILE_PATH=./apiserver/Dockerfile.api
RAILWAY_DOCKERFILE_PATH=./apiserver/Dockerfile.api
15 replies
RRailway
Created by macwilko on 1/27/2024 in #✋|help
weird deployment error notifications when migrating redis
No description
6 replies
RRailway
Created by macwilko on 1/11/2024 in #✋|help
Can I create a Bot for Railway discord
Dear Railway community I'de like to create a Discord bot to scape data from Railways Discord community, the purpose is to demonstrate a Proof of Concept for an idea I'm working on. The Proof of Concept I'de like to develop is structuring the unstructured data within channels like chit-chat, making it possible to search for the interesting topics discussed, from something like Google or other search engine. Most of the discussions in chit-chat are lost and difficult to find outside of Discord. I understand Railway uses AnswerOverflow for the Help threads, and so I don't wish to disturb this, I would turn off the scraping for all channels under "Support" category (help/feedback/feedback-archived), so as not to duplicate the content. The scraping will be focused on the "chit-chat", "links-resources", "memes-only", "tunes", "infra-discussion" like channels, to demonstrate organising the unstructured information to be SEO friendly. The types of inference models I would look into: - Topic analysis (discovering the types of things talked about) - Summarisation (summarising the channel discussion) - Object detection within images (memes-only) - Sentiment analysis (understanding the mood of the discussion) The entire project will of course be hosted on Railway.app 🙂 Thank-you for reading, Matt
5 replies
RRailway
Created by macwilko on 1/7/2024 in #✋|help
Do things on .up.railway.app get crawled by Google
Well? 😄
49 replies
RRailway
Created by macwilko on 12/16/2023 in #✋|help
Cloudflare load balancing between regions
No description
308 replies
RRailway
Created by macwilko on 12/14/2023 in #✋|help
Odd logs coming up in Redis
1:M 14 Dec 2023 15:00:33.775 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection from 192.168.32.4:17944 aborted.
1:M 14 Dec 2023 15:00:33.775 # Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection from 192.168.32.4:17944 aborted.
@Brody @Vin
31 replies
RRailway
Created by macwilko on 12/11/2023 in #✋|help
Build SHA as env variable
Can I expose the current build SHA as an env var to the app?
12 replies
RRailway
Created by macwilko on 12/10/2023 in #✋|help
create a secret for a template
I'm making a little template on Railway, but I have an env var that needs a random value. How do I configure the template to have a random value for the env variable?
20 replies
RRailway
Created by macwilko on 11/27/2023 in #✋|help
cluster MySQL on railway
So, call me crazy but, I don’t want to use PlanetScale. I want to be 100% Railway, the total fanboy I am. This is for a good reason, the latency of talking to a database hosted on railway via private networking is much better. So, I want to make sure I’m building on a good foundation here. How can I make a database cluster, with master/slave replication. Reading the guide how to do this https://hevodata.com/learn/mysql-master-master-replication/#ss1 I need to edit the /etc/mysql/my.cnf I’m not sure how I can do this though, with the docker images provided only the environment variables are exposed.
11 replies
RRailway
Created by macwilko on 11/4/2023 in #✋|help
Axios (node server) private network
If my private network name is "exotic-auth", how can I do a Axios request to it via private network. The http client is setup like this:
const authApi = axios.create({
baseURL: process.env.API_URL,
timeout: 15_000,
headers: standardHeaders
});
const authApi = axios.create({
baseURL: process.env.API_URL,
timeout: 15_000,
headers: standardHeaders
});
for API_URL I've tried http://exotic-auth/v1 and exotic-auth/v1 but nether resolve.
70 replies
RRailway
Created by macwilko on 11/3/2023 in #✋|help
Railway DNS Webhook
Sometimes railway can take longer to verify a DNS change on Cloudflare than normal. I'de like some webhook or event to subscribe to notifying of the DNS change, would this be possible? I can also potentially Poll Railway API but I'de be concerned about eating into precious Usage Limits on the API.
17 replies
RRailway
Created by macwilko on 11/3/2023 in #✋|help
Cloudflare DNS issues happening?
No description
11 replies
RRailway
Created by macwilko on 11/2/2023 in #✋|help
Change default Railway logo between deployments
Is there anyway to change the default screen that shows a Railway logo when the service isn't up? it seems everytime I do a deploy to the Remix app, there's a brief period between switching over deployments and the Railway logo is shown
23 replies
RRailway
Created by macwilko on 11/1/2023 in #✋|help
Not able to have - in Service name?
No description
85 replies
RRailway
Created by macwilko on 10/29/2023 in #✋|help
Logs appearing as errors despite being formatted as INFO / WARN / ERROR
No description
7 replies
RRailway
Created by macwilko on 10/28/2023 in #✋|help
TLS certificate not being issued on CF
No description
17 replies
RRailway
Created by macwilko on 10/25/2023 in #✋|help
How to create templates from projects?
No description
195 replies
RRailway
Created by macwilko on 10/25/2023 in #✋|help
Can't build go project
Using a Dockerfile I can't seem to get the GOROOT working, and package imports seem to break.
# syntax=docker/dockerfile:1

FROM golang:1.21

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY * ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /server
CMD ["/server"]
# syntax=docker/dockerfile:1

FROM golang:1.21

WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY * ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /server
CMD ["/server"]
#12 [6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /server



#12 1.402 authorization.go:6:2: package exotic/exotic-auth/db/chat_users_db/model is not in std (/usr/local/go/src/exotic/exotic-auth/db/chat_users_db/model)

#12 1.402 main.go:5:2: package exotic/exotic-auth/handlers is not in std (/usr/local/go/src/exotic/exotic-auth/handlers)

#12 1.402 authorization.go:7:2: package exotic/exotic-auth/security_helpers is not in std (/usr/local/go/src/exotic/exotic-auth/security_helpers)

#12 1.402 login.go:9:2: package exotic/exotic-auth/tasks is not in std (/usr/local/go/src/exotic/exotic-auth/tasks)

#12 1.402 found packages handlers (authorization.go) and tasks (deliver_email_task.go) in /app



#12 ERROR: process "/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o /server" did not complete successfully: exit code: 1
#12 [6/6] RUN CGO_ENABLED=0 GOOS=linux go build -o /server



#12 1.402 authorization.go:6:2: package exotic/exotic-auth/db/chat_users_db/model is not in std (/usr/local/go/src/exotic/exotic-auth/db/chat_users_db/model)

#12 1.402 main.go:5:2: package exotic/exotic-auth/handlers is not in std (/usr/local/go/src/exotic/exotic-auth/handlers)

#12 1.402 authorization.go:7:2: package exotic/exotic-auth/security_helpers is not in std (/usr/local/go/src/exotic/exotic-auth/security_helpers)

#12 1.402 login.go:9:2: package exotic/exotic-auth/tasks is not in std (/usr/local/go/src/exotic/exotic-auth/tasks)

#12 1.402 found packages handlers (authorization.go) and tasks (deliver_email_task.go) in /app



#12 ERROR: process "/bin/sh -c CGO_ENABLED=0 GOOS=linux go build -o /server" did not complete successfully: exit code: 1
390 replies
RRailway
Created by macwilko on 10/24/2023 in #✋|help
File uploads in go ~ railway volumes
I'm curious to do file uploads to Railway with golang, how do I access the volume from my Go program?
10 replies