Building Error

Blueprint gives me this error when building
No description
No description
No description
82 Replies
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I managed to fix the encryption key, but I just need to setup my .env The theme worked perfectly fine before, and I'm wondering why I'm recieving this error, I would like to purchase the nebula theme for it, but I don't think that will resolve it.
ℓєzєтнσ
ℓєzєтнσ12mo ago
If you nano to your .env file in the /var/www/pterodactyl directory, is there a APP_KEY field?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Oh sorry yes I fixed that earlier, It's just the theme issues im worried about It did work before but not now as in the ERROR in resources/scripts/state/server/index.ts:1:35 type of errors So I reset my template to the default pterodactyl theme, and it seems to be an issue with that,when using export NODE_OPTIONS=--openssl-legacy-provider and then yarn build:production, this also happens when using blueprint -rerun-install
root@david1117:~#
Did you have any non-blueprint extensions before?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Nope, this is a fresh install I've just install pterodactyl and wings, and then started installing blueprint, nothing else
root@david1117:~#
Well probably get some screenshots, I don't really understand what's your issue
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Do the ones at the top not help? I'll open console and do blueprint -rerun-install if that helps?
root@david1117:~#
Oh I didn't see Try blueprint -upgrade
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I've run that and blueprint re installs, yet I still get this error:
No description
No description
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
This is using the default Pterodactyl theme / folder config it gives the same error when running yarn build:production
root@david1117:~#
Run that and select the 3rd option bash <(curl -s https://redprint.zip)
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
ok
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Ok so I get these errors:
No description
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
It's less errors I've done it
root@david1117:~#
byte snippet-upgrade
Blueprint
Blueprint12mo ago
1. Remove certain files and directories with rm -r resources public node_modules. 2. Go through the Pterodactyl update documentation. 3. Install dependencies by running the yarn command. 4. Repair Blueprint with blueprint -upgrade. 5. Get some Blueprint extensions (if you haven't already) and install them onto your panel.
byte snippet-upgrade
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
So i've done that, I just need help setting up my databases in my .env Everything builds fine I just need some help
root@david1117:~#
So you did all of these?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Yes and it worked
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
So this is my .env
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
This is my mariadb
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
This is my redis
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
And I get this error:
No description
root@david1117:~#
Use localhost for redis host
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
??
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I did and that worked, now what does this mean? ^
root@david1117:~#
I have no idea
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I'm asking claude xD apparently redis doesnt need a password when running locally
root@david1117:~#
Oh try setting the password to null
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
You can just remove it entirely Just fixing my mysql and hopefully that works! Any idea? --------------------------
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
So, my website now doesn't start / load
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
There is no errors in the blueprint, no errors in laravel all it says was about the encryption key which I fixed???
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
When I build it there is no errors?
No description
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Oh I found the errors they were located in pterodactyl console:
Updated Rust

Database\Seeders\EggSeeder .................................. 297.90 ms DONE

Starting cron jobs.
Starting supervisord.
2024-11-01 09:36:48,081 CRIT Server 'unix_http_server' running without any HTTP authentication checking
ln: /var/log/panel/logs: File exists
external vars exist.
crafty_panel-db (10.11.1.23:3306) open
Checking if https is required.
Using nginx config already in place.
No letsencrypt email is set
DB_PORT not specified, defaulting to 3306
Checking database status.
Migrating and Seeding D.B

In AbstractConnection.php line 132:

Connection refused [tcp://localhost:6379]


Starting cron jobs.
Starting supervisord.
2024-11-01 13:17:05,364 CRIT Server 'unix_http_server' running without any HTTP authentication checking
ln: /var/log/panel/logs: File exists
external vars exist.
Checking if https is required.
Using nginx config already in place.
No letsencrypt email is set
DB_PORT not specified, defaulting to 3306
Checking database status.
crafty_panel-db (10.11.1.23:3306) open
Migrating and Seeding D.B

In AbstractConnection.php line 132:

Connection refused [tcp://localhost:6379]


Starting cron jobs.
Starting supervisord.
2024-11-01 14:03:22,244 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Updated Rust

Database\Seeders\EggSeeder .................................. 297.90 ms DONE

Starting cron jobs.
Starting supervisord.
2024-11-01 09:36:48,081 CRIT Server 'unix_http_server' running without any HTTP authentication checking
ln: /var/log/panel/logs: File exists
external vars exist.
crafty_panel-db (10.11.1.23:3306) open
Checking if https is required.
Using nginx config already in place.
No letsencrypt email is set
DB_PORT not specified, defaulting to 3306
Checking database status.
Migrating and Seeding D.B

In AbstractConnection.php line 132:

Connection refused [tcp://localhost:6379]


Starting cron jobs.
Starting supervisord.
2024-11-01 13:17:05,364 CRIT Server 'unix_http_server' running without any HTTP authentication checking
ln: /var/log/panel/logs: File exists
external vars exist.
Checking if https is required.
Using nginx config already in place.
No letsencrypt email is set
DB_PORT not specified, defaulting to 3306
Checking database status.
crafty_panel-db (10.11.1.23:3306) open
Migrating and Seeding D.B

In AbstractConnection.php line 132:

Connection refused [tcp://localhost:6379]


Starting cron jobs.
Starting supervisord.
2024-11-01 14:03:22,244 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Here is my .env
APP_ENV=production
APP_ENVIRONMENT_ONLY=false
APP_KEY=###
APP_THEME=pterodactyl
APP_URL=https://panel.pandapvp.net
APP_TIMEZONE=UTC
DB_HOST=crafty_panel-db
DB_DATABASE=crafty
DB_PORT=3306
DB_USERNAME=mariadb
DB_PASSWORD=####
REDIS_HOST=crafty_panel-redis
REDIS_PORT=6379
MAIL_FROM=noreply@example.com
MAIL_DRIVER=smtp
MAIL_HOST=mail
MAIL_PORT=1025
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=true
CACHE_DRIVER=redis
SESSION_DRIVER=redis
APP_ENV=production
APP_ENVIRONMENT_ONLY=false
APP_KEY=###
APP_THEME=pterodactyl
APP_URL=https://panel.pandapvp.net
APP_TIMEZONE=UTC
DB_HOST=crafty_panel-db
DB_DATABASE=crafty
DB_PORT=3306
DB_USERNAME=mariadb
DB_PASSWORD=####
REDIS_HOST=crafty_panel-redis
REDIS_PORT=6379
MAIL_FROM=noreply@example.com
MAIL_DRIVER=smtp
MAIL_HOST=mail
MAIL_PORT=1025
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=true
CACHE_DRIVER=redis
SESSION_DRIVER=redis
@ℓєzєтнσ or @root@david1117:~# can you help?
ℓєzєтнσ
ℓєzєтнσ12mo ago
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Yes
ℓєzєтнσ
ℓєzєтнσ12mo ago
firewall i believe loki can probably confirm
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
What port do I let through? Is this a port for blueprint? Because it was working before?
Loki
Loki12mo ago
Check the status of your Redis container. If it's up, change the host to the gateway IP of the network it's on. The container name seems to be routing to localhost.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
What's the gateway ip? Redis is running in docker and so is pterodactyl?
Loki
Loki12mo ago
Only you know what network Redis is on and what subnet that network uses.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
What command do I do?
Loki
Loki12mo ago
Routing to the container name should be working as is... is your panel connecting to MariaDB successfully?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
So this is the current error
No description
Loki
Loki12mo ago
Is the name really crafty_panel-redis?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
yes
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
No description
Loki
Loki12mo ago
docker container inspect crafty_panel-redis What does it say for gateway?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Well that's interesting?
root@panda-pvp:/var/lib/docker/volumes/crafty_panel_app/_data# docker container inspect crafty_panel-redis
[]
Error response from daemon: No such container: crafty_panel-redis
root@panda-pvp:/var/lib/docker/volumes/crafty_panel_app/_data# docker container inspect crafty_panel-redis
[]
Error response from daemon: No such container: crafty_panel-redis
Loki
Loki12mo ago
There's your problem The container either isn't up, doesn't exist, or isn't named that.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I'm not talking about redis im talking about maria Ive fixed this
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I mean this one
No description
Loki
Loki12mo ago
MariaDB worked fine in the snippets you shared. What errors are you seeing?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Ohhh Sorry i misunderstood I thought port 6783 is maria its 3306 mb
Loki
Loki12mo ago
Back to this then
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
The container is up, and it exists the containers name is de7def9df163
Loki
Loki12mo ago
Is that going to change, or is that name permanent?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
I'm not sure? But will this help?
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
The name will only change every time i redeploy an instance of the maria db, which i'll never do
Loki
Loki12mo ago
If you're not sure, you can use the gateway instead. Back to this, but with the correct name.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Here is the commands output
Loki
Loki12mo ago
You should absolutely be updating your containers regularly, even if you're staying on the same tag. Keeping your packages to you date is the easiest and most effective way of securing your server.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Yes of course But why can't it find the server? Do I need to allow the port on my firewall, its only internal though??
Loki
Loki12mo ago
You had the wrong name. There was nothing there. Change REDIS_HOST to crafty_panel-redis.1.uampq8nrlj3kgv0hhwxv9b9vg and it should work. It appears to not have a gateway address based on that output... never seen the before, but DNS seems to work on your setup.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Also will have to do that for mariadb
Loki
Loki12mo ago
I mean it looked like the name was correct for MariaDB. Your screenshot showed that it connected fine. Perhaps you named the MariaDB container mariadb when you made it, but forgot to name the Redis container?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
No I didn't build the containers, my webpanel did, it appears it names them differently
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
So redis returns this
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
and this is redis console
No description
Loki
Loki12mo ago
It shouldn't be trying to reach localhost. Your networking is screwed up somewhere, and the Redis container appeared to not even have a gateway. Are you using host mode for it?
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Omg I put in the wrong name xD
Loki
Loki12mo ago
Ah. That would do it xD
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
What??? It still retuns this error
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
What's wrong?
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Does it need a password? It still gives the same error with the password
Loki
Loki12mo ago
Yes, your Redis container is taking a variable for a password. It trying to connect to localhost is still wrong though. Try the short container name for REDIS_HOST.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
No description
No description
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
Still the same error?
Loki
Loki12mo ago
Idk then, this is specific to Crafty. I don't use that panel.
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
No it's called easypanel
Loki
Loki12mo ago
Specific to that then
ꜱʜᴀᴅᴏᴡ
ꜱʜᴀᴅᴏᴡOP12mo ago
My friend set it up Ok I'll contact them I've contacted them just waiting to hear back

Did you find this page helpful?