Temporary failure in name resolution

I'm trying to deploy a PHP container using MySQL, and it is crashing like
PHP Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Temporary failure in name resolution in /wait-for-db.php on line 12

PHP Fatal error: Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Temporary failure in name resolution in /wait-for-db.php:12
PHP Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Temporary failure in name resolution in /wait-for-db.php on line 12

PHP Fatal error: Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Temporary failure in name resolution in /wait-for-db.php:12
ENABLE_ALPINE_PRIVATE_NETWORKING is set to true and
No description
55 Replies
Percy
Percy•7mo ago
Project ID: 8f297c52-c464-41f8-be1a-748322966bed
Ping for toast
Ping for toastOP•7mo ago
8f297c52-c464-41f8-be1a-748322966bed I tried removing the alpine part and
PHP Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known in /wait-for-db.php on line 12

PHP Fatal error: Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known in /wait-for-db.php:12
PHP Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known in /wait-for-db.php on line 12

PHP Fatal error: Uncaught mysqli_sql_exception: php_network_getaddresses: getaddrinfo for mysql.railway.internal failed: Name or service not known in /wait-for-db.php:12
Maybe if I insert a sleep into the start command even though wait for db shouldn't be doing that
Ping for toast
Ping for toastOP•7mo ago
nice that went even better
No description
Ping for toast
Ping for toastOP•7mo ago
yeah wait it shouldn't be doing this because
No description
Ping for toast
Ping for toastOP•7mo ago
hmm Uncaught mysqli_sql_exception: Connection refused in /wait-for-db.php:12
Ping for toast
Ping for toastOP•7mo ago
alright well this was incredibly cursed but we chillin now
No description
Ping for toast
Ping for toastOP•7mo ago
Brody you are going to love this template let me tell you
Brody
Brody•7mo ago
will I though? I have insanely high standards
Ping for toast
Ping for toastOP•7mo ago
yes you will love it
No description
Brody
Brody•7mo ago
47 service variables that are set incorrectly 🙂
Ping for toast
Ping for toastOP•7mo ago
currently fighting apache I think I will livepatch the apache configuration inside of the start command because i'm just scrappy like that
Brody
Brody•7mo ago
you wouldn't be the first
Ping for toast
Ping for toastOP•7mo ago
this is gonna work /bin/sh -c "echo \"ServerName 0.0.0.0\" >> /etc/apache2/apache2.conf && sleep 3 && /entrypoint.sh" well, it worked more than it did last time
Brody
Brody•7mo ago
why does the server name matter?
Ping for toast
Ping for toastOP•7mo ago
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.2.124. Set the 'ServerName' directive globally to suppress this message

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.2.124. Set the 'ServerName' directive globally to suppress this message

[Mon May 06 00:11:12.371710 2024] [mpm_prefork:notice] [pid 88] AH00163: Apache/2.4.59 (Debian) PHP/8.2.18 configured -- resuming normal operations

[Mon May 06 00:11:12.371779 2024] [core:notice] [pid 88] AH00094: Command line: 'apache2 -D FOREGROUND'
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.2.124. Set the 'ServerName' directive globally to suppress this message

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.2.124. Set the 'ServerName' directive globally to suppress this message

[Mon May 06 00:11:12.371710 2024] [mpm_prefork:notice] [pid 88] AH00163: Apache/2.4.59 (Debian) PHP/8.2.18 configured -- resuming normal operations

[Mon May 06 00:11:12.371779 2024] [core:notice] [pid 88] AH00094: Command line: 'apache2 -D FOREGROUND'
with this, it still doesn't work, but at least it doesn't show this error
Brody
Brody•7mo ago
it's just a warning, it shouldn't actually matter but the 3 second sleep is needed
Ping for toast
Ping for toastOP•7mo ago
maybe, but I'm still trying to get it to show up. Does railway support port 80?
Ping for toast
Ping for toastOP•7mo ago
BASED
No description
Ping for toast
Ping for toastOP•7mo ago
bruv
No description
Ping for toast
Ping for toastOP•7mo ago
mf be telling me theres a 500 error but then it not given me the 500 error
Ping for toast
Ping for toastOP•7mo ago
ic
No description
Ping for toast
Ping for toastOP•7mo ago
what is railway doing
No description
Ping for toast
Ping for toastOP•7mo ago
how didn't this get transformed
Brody
Brody•7mo ago
the question is what are you doing, that doesn't generate a valid base64 string on its own you also need to use double quotes
Ping for toast
Ping for toastOP•7mo ago
o i shoulda used lower I'm doing this because you can't do multiple mounts
Ping for toast
Ping for toastOP•7mo ago
POG
No description
Ping for toast
Ping for toastOP•7mo ago
@Brody any idea why the secret generator in the template isn't working?
Ping for toast
Ping for toastOP•7mo ago
No description
Ping for toast
Ping for toastOP•7mo ago
comes in like this
No description
Brody
Brody•7mo ago
is that a screenshot from the service in your project or the template?
Ping for toast
Ping for toastOP•7mo ago
the first one is the template, the second is the service
Ping for toast
Ping for toastOP•7mo ago
Railway
Deploy Pixelfed on Railway
Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.
Brody
Brody•7mo ago
in that case, I think I've already answered that question 😉
Ping for toast
Ping for toastOP•7mo ago
you can't generate screenshots from the template? oh double quotes? I swear singles worked before
Brody
Brody•7mo ago
lol what
Ping for toast
Ping for toastOP•7mo ago
i meant secrets sorry
Ping for toast
Ping for toastOP•7mo ago
the docs show single quotes
No description
Brody
Brody•7mo ago
docs aren't always a single source of truth, but I am
Ping for toast
Ping for toastOP•7mo ago
fat ah ego :P you oughta pass this one along probably
Brody
Brody•7mo ago
I should
Ping for toast
Ping for toastOP•7mo ago
another thing that should be fixed is there is a slight delay between when a template is saved and when the "create project" screen reflects that change i think? a reload fixes that
Brody
Brody•7mo ago
that's just cache haha, hard refresh fixes it
Ping for toast
Ping for toastOP•7mo ago
yeah but its lowkey hard to get used to, if they use react they could hook into the context provider
Brody
Brody•7mo ago
they do use react lol, it's not as simple as you think either way, your template doesn't use the private host and port for either mysql or redis
Ping for toast
Ping for toastOP•7mo ago
oh yeah thats because I was having issues with netowrking ^^^ and i forgot to change, I'll do that now I mean I've done this sort of thing before
Brody
Brody•7mo ago
little more complex with what railway is doing
Ping for toast
Ping for toastOP•7mo ago
What is railway doing? There's not much going on with the frontend at least
Brody
Brody•7mo ago
not saying it couldn't be done, but it's likely just not worth it at this time you're funny
Ping for toast
Ping for toastOP•7mo ago
Yeah, I'm sure they have bigger priorities It's literally just a bog standard frontend application? The only unique thing about it is the canvas
Brody
Brody•7mo ago
you're real funny
Ping for toast
Ping for toastOP•7mo ago
What am I missing
Brody
Brody•7mo ago
a whole lot
Ping for toast
Ping for toastOP•7mo ago
like?
Brody
Brody•7mo ago
far outside the scope of this thread
Ping for toast
Ping for toastOP•7mo ago
alright lol
Want results from more Discord servers?
Add your server