Nebula will not install on clean install of Blueprint

120 Replies
JasmeowTheCat
JasmeowTheCatOP•16mo ago
So I then did a bit of digging: https://jasmeow.pics/nWOzZa.png "Can't find ENV" so I went further... https://jasmeow.pics/8CoFX5.png https://jasmeow.pics/20itaA.png This makes NO sense. It's complaining about it needing the .env but it exists? It's clearly existing and it's there and there's no jank fields or broken config here. Chowned it all, so there's no weird www-data nonsense breaking.
Phedona
Phedona•16mo ago
yes @Emma
JasmeowTheCat
JasmeowTheCatOP•16mo ago
I am absolutely not that mental, I will always make sure to RTD haha. I swear i've not done anything wrong there.
Emma
Emma•16mo ago
I would lie if I knew what was happening here Which operating system are you running - just asking this now so we can get that question out of the way
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Emma
Emma•16mo ago
I'll give you embed perms real quick haha
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Thanks lmfao. Please just do, drives me bat shit :kek EMOJIS TOO? JESUS šŸ”Ŗ
Emma
Emma•16mo ago
permissions are a bit confusing here, should go over them in a bit
JasmeowTheCat
JasmeowTheCatOP•16mo ago
You've royally stumped me and that's coming from me whos installed addons and themes for the past 5 years lmfao. Like I don't dev, but I can read simple code and scripts, and I'm pretty sure there's no jank there. When I run the sh file directly, it returns no data. Is it meant to?
Emma
Emma•16mo ago
uhhh im not sure
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Concerning. Ill implement some echo lines.
Emma
Emma•16mo ago
could you run blueprint -upgrade remote blueprintframework/framework for me? (if that works at least) alright - some stuff here is done differently compared to the current latest commit, so if you can't figure it out it might be best to just grab everything from the blueprintframework/framework repo I'll take a peek in a bit as well, just not at my pc right now.
JasmeowTheCat
JasmeowTheCatOP•16mo ago
It was not happy.
Emma
Emma•16mo ago
oh help
JasmeowTheCat
JasmeowTheCatOP•16mo ago
root@DivineNetwork:/var/www/pterodactyl# blueprint -upgrade remote blueprintframework/framework
.blueprint/lib/grabenv.sh: line 27: .env: No such file or directory
18:09:30 WARNING: This is an advanced feature, only proceed if you know what you are doing.
18:09:30 INPUT: Upgrading to the latest development build will update Blueprint to a remote version which might differ from the latest release. Continue? (y/N)
y
18:09:31 INPUT: Upgrading will wipe your .blueprint folder and will deactivate all active extensions. Continue? (y/N)
y
18:09:34 INPUT: This is the last warning before upgrading/wiping Blueprint. Type 'continue' to continue, all other input will be taken as 'no'.
continue
18:09:38 INFO: Fetching and pulling latest commit..
Cloning into 'main'...
remote: Enumerating objects: 7585, done.
remote: Counting objects: 100% (1710/1710), done.
remote: Compressing objects: 100% (989/989), done.
remote: Total 7585 (delta 741), reused 1243 (delta 638), pack-reused 5875
Receiving objects: 100% (7585/7585), 6.66 MiB | 20.84 MiB/s, done.
Resolving deltas: 100% (3528/3528), done.
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
18:09:39 INFO: Searching and validating framework dependencies..
18:09:39 INFO: Placing Blueprint command shortcut..
18:09:39 INFO: Linking directories and filesystems..
18:09:39 INFO: Replacing internal placeholders..
18:09:39 INPUT: Would you like to put your application into maintenance while Blueprint is installing? (Y/n)
n
18:09:42 INFO: Putting application into maintenance has been skipped.
18:09:42 INFO: Flushing view, config and route cache..
18:09:42 INFO: Changing Pterodactyl file ownership to 'www-data:www-data'..
18:09:42 INFO: Rebuilding panel assets..
yarn run v1.22.22
error Command "build:production" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18:09:42 INFO: Syncing Blueprint-related database values..
Could not open input file: artisan
18:09:42 INPUT: Would you like to migrate your database? (Y/n)
y
18:09:44 INFO: Running database migrations..
Could not open input file: artisan
18:09:44 INFO: Validating update..
18:09:44 SUCCESS: Upgrade finished.
/usr/local/bin/blueprint: line 3: unexpected EOF while looking for matching `"'
/usr/local/bin/blueprint: line 4: syntax error: unexpected end of file
root@DivineNetwork:/var/www/pterodactyl#
root@DivineNetwork:/var/www/pterodactyl# blueprint -upgrade remote blueprintframework/framework
.blueprint/lib/grabenv.sh: line 27: .env: No such file or directory
18:09:30 WARNING: This is an advanced feature, only proceed if you know what you are doing.
18:09:30 INPUT: Upgrading to the latest development build will update Blueprint to a remote version which might differ from the latest release. Continue? (y/N)
y
18:09:31 INPUT: Upgrading will wipe your .blueprint folder and will deactivate all active extensions. Continue? (y/N)
y
18:09:34 INPUT: This is the last warning before upgrading/wiping Blueprint. Type 'continue' to continue, all other input will be taken as 'no'.
continue
18:09:38 INFO: Fetching and pulling latest commit..
Cloning into 'main'...
remote: Enumerating objects: 7585, done.
remote: Counting objects: 100% (1710/1710), done.
remote: Compressing objects: 100% (989/989), done.
remote: Total 7585 (delta 741), reused 1243 (delta 638), pack-reused 5875
Receiving objects: 100% (7585/7585), 6.66 MiB | 20.84 MiB/s, done.
Resolving deltas: 100% (3528/3528), done.
scripts/libraries/grabenv.sh: line 27: .env: No such file or directory
18:09:39 INFO: Searching and validating framework dependencies..
18:09:39 INFO: Placing Blueprint command shortcut..
18:09:39 INFO: Linking directories and filesystems..
18:09:39 INFO: Replacing internal placeholders..
18:09:39 INPUT: Would you like to put your application into maintenance while Blueprint is installing? (Y/n)
n
18:09:42 INFO: Putting application into maintenance has been skipped.
18:09:42 INFO: Flushing view, config and route cache..
18:09:42 INFO: Changing Pterodactyl file ownership to 'www-data:www-data'..
18:09:42 INFO: Rebuilding panel assets..
yarn run v1.22.22
error Command "build:production" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
18:09:42 INFO: Syncing Blueprint-related database values..
Could not open input file: artisan
18:09:42 INPUT: Would you like to migrate your database? (Y/n)
y
18:09:44 INFO: Running database migrations..
Could not open input file: artisan
18:09:44 INFO: Validating update..
18:09:44 SUCCESS: Upgrade finished.
/usr/local/bin/blueprint: line 3: unexpected EOF while looking for matching `"'
/usr/local/bin/blueprint: line 4: syntax error: unexpected end of file
root@DivineNetwork:/var/www/pterodactyl#
Sorry, full data there.
Emma
Emma•16mo ago
EOF is sorta expected related to updating something while it's being ran which freaks out bash
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Kek
Emma
Emma•16mo ago
yeah thats concerning i'll be at my pc within the hour - i'll do some digging as well
JasmeowTheCat
JasmeowTheCatOP•16mo ago
You got it.
JasmeowTheCat
JasmeowTheCatOP•16mo ago
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Ran it myself, got it really ticked off. Cos I bet I didn't run the node legacy crap. Ping me on return movie watching.
Emma
Emma•16mo ago
@JasmeowTheCat hello again - i have returned you've successfully made the support ticket that (so far) has confused me the most like everything that can go wrong is going wrong here
Growtoups | elixior.cloud
:fire:
Emma
Emma•16mo ago
I might know whats happening here @vic welcome to this forum post - the $FOLDER variable is as screwed as it has ever been im guessing we both don't know what is actually going wrong with your logic^ (at least im guessing it's the folder variable as these are all "could not open input file" and "file does not exist" errors)
vic
vic•16mo ago
well some stuff is working logging works and that's also a bp lib
Emma
Emma•16mo ago
thats why im so confused like all blueprint libs are imported, but everything else breaks for some reason
vic
vic•16mo ago
refactor going well huh
Emma
Emma•16mo ago
Could not open input file: artisan this is not refactor smh
vic
vic•16mo ago
wtf šŸ’€
Emma
Emma•16mo ago
take a peek at this
vic
vic•16mo ago
what the
Emma
Emma•16mo ago
yeahh everything here is hinting at the fact that everything that aren't blueprint libs are in the wrong location - or at least try to get files from the wrong location for some reason
vic
vic•16mo ago
what if blueprint wasn't installed in the pterodactyl panel dir? would explain why bp libs work but nothing else in which case my FOLDER code did it's job
Emma
Emma•16mo ago
.
vic
vic•16mo ago
scratch that I have no bloody idea
Emma
Emma•16mo ago
this is bad well loki is the only other person i could see knowing what causes this im constantly going over everything again and i just can't seem to get everything lining up im so confused @JasmeowTheCat Are you doing this for a client? Currently have them in my email and they have the same hostname.
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Yes, that's it @Emma, they've got it installed now I presume. What actually was the issue? This is so strange that I actually wanna try it on my system :Kek:
Emma
Emma•16mo ago
i have no clue 😭 wait i might think i know what was going on it all makes sense now 1. User tried putting Nebula and Blueprint in home dir and Blueprint logs errors but does generate a command shortcut which links to that specific blueprint.sh file. 2. User installs Blueprint into the correct directory but somehow the old command shortcut stays in tact. 3. Every time that blueprint is ran, it actually runs the script from the home directory - not the Pterodactyl folder. im a bit confused about step2 though
Loki
Loki•16mo ago
https://github.com/BlueprintFramework/framework/blob/main/blueprint.sh#L228 It checks if the blueprint command exists on path. If it does, it won't run the place shortcut function at all. To make it overwrite each time in case of things like that, just get rid of the if statement. Have it run every time.
Emma
Emma•16mo ago
GitHub
framework/blueprint.sh at bf732b4adb6da5b733e4396c6cc7550158479856 ...
Powerful, fast and developer-friendly extension framework for Pterodactyl. Utilize extension APIs, inject HTML, modify stylesheets, package extensions and so much more. - BlueprintFramework/framework
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Wack?
Emma
Emma•16mo ago
which should've fixed everything here
Loki
Loki•16mo ago
hm
Emma
Emma•16mo ago
so im genuinely confused
JasmeowTheCat
JasmeowTheCatOP•16mo ago
I am genuinely confused by what you mean here, as it was a fresh ptero instance of the ptero folder. But what you're saying it somehow yarn/npm/some magical shit stored it somewhere else? I deleted the ptero folder, copied env, made new one, ENV back in, installed panel. Step one done.
Emma
Emma•16mo ago
got some emails that gave me some additional context about this
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Then installed blueprint in that folder. That's step 2. Then did the literal nebula file lmfao.
Emma
Emma•16mo ago
your customer installed blueprint in their home folder before that without pterodactyl or anything
JasmeowTheCat
JasmeowTheCatOP•16mo ago
I don't do your cd /move/to/ptero folder nonsense, as I already do it in the root of that folder. OH So it broke sys links?
Emma
Emma•16mo ago
seems like it
JasmeowTheCat
JasmeowTheCatOP•16mo ago
OHHHHHHHHHHHHH Since you run "blueprint"
Emma
Emma•16mo ago
yeahh
JasmeowTheCat
JasmeowTheCatOP•16mo ago
as a terminal command So it picks it up and panics Makes sense now
Emma
Emma•16mo ago
they didnt remove the older file
JasmeowTheCat
JasmeowTheCatOP•16mo ago
I got you I got you. It's in the usr/lib/bin? whatver place it is. And it thinks the home is where you were, got it.
Emma
Emma•16mo ago
uhh lemme see something like that yeah
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Ok I fully get you now, so if this happens again, actually check for stupidity?
Emma
Emma•16mo ago
yep
JasmeowTheCat
JasmeowTheCatOP•16mo ago
But shouldn't the script know that and panic when installing BP? "Can't see env, fuck it."
Emma
Emma•16mo ago
i'll make sure to add a check
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Yeah, ideally chief lmfao. Surprised that's not actually implemented. "This isn't the actual ptero folder you moron."
Emma
Emma•16mo ago
we never encountered this before
JasmeowTheCat
JasmeowTheCatOP•16mo ago
:Kek: My clients like to break shit ya see.
Emma
Emma•16mo ago
and we have had some considerably less knowledgable people here
JasmeowTheCat
JasmeowTheCatOP•16mo ago
All good haha.
Emma
Emma•16mo ago
oh yeah one more thing
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Glad I could help implement a check to make it not be a dumb moment in the future. I literally looked across all the discord. I was so stumped. I didn't wanna bother you heh! A good way to check is the vendor, public and .env, as they always exist in the laravel.
Emma
Emma•16mo ago
ah yeah
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Then make the script panic out. "You're a donut, this isn't the ptero folder."
Emma
Emma•16mo ago
at least it didn't cause data loss
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Aye haha
Emma
Emma•16mo ago
yeah that would definitely have been bad thankfully i do a little bit of shellcheck so we're fine there :3
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Like, I like your idea of implementing the "blueprint" command as a shell cmd, but why not in the artisan itself? php artisan blueprint:etc Like arix theme or whatever, php artisan arix:install
Emma
Emma•16mo ago
kinda came up with using bash over a year ago and its a bit too late to switch now
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Fair dos fair dos.
Emma
Emma•16mo ago
blueprint's been my main way of getting started with the languages pterodactyl uses - so some dumb mistakes are there
Loki
Loki•16mo ago
It looks like it could happen if FOLDER isn't set correctly. You could add a check for Pterodactyl-specific files, i.e. if artisan is in the dir.
FOLDER=$([ -f "$(dirname "$0")/artisan" ] && realpath "$(dirname "$0")" || echo "")
if [ -z "$FOLDER" ]; then
PRINT FATAL "Could not locate Pterodactyl directory. Make sure you're running this script from the Pterodactyl root directory."
exit 1
fi
FOLDER=$([ -f "$(dirname "$0")/artisan" ] && realpath "$(dirname "$0")" || echo "")
if [ -z "$FOLDER" ]; then
PRINT FATAL "Could not locate Pterodactyl directory. Make sure you're running this script from the Pterodactyl root directory."
exit 1
fi
Oh, you figured it out while I was gone lmao
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Ye We were faffing
Emma
Emma•16mo ago
lol
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Just having a chat :Kek:
Emma
Emma•16mo ago
im just confused about why exactly upgrading blueprint did not fix it it shouldve
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Does it do clean up then?
Emma
Emma•16mo ago
just overwrites the heck out of the script
JasmeowTheCat
JasmeowTheCatOP•16mo ago
And yeet old bin references? I see.
Emma
Emma•16mo ago
at least its supposed to do that
JasmeowTheCat
JasmeowTheCatOP•16mo ago
:Eyes: Supposed. Dev speak, I like it.
Emma
Emma•16mo ago
latest release is also supposed to have a working removal command
Loki
Loki•16mo ago
I don't see any kind of fail condition that would actually exit the script before it runs dbAdd "blueprint.setupFinished"
Emma
Emma•16mo ago
my refactor pull request was also to export developer extensions upon running -export instead of wiping the dev folder oops
Loki
Loki•16mo ago
It looks like it will set it no matter what. The only line with an exit condition there is if it's already been set xD
Emma
Emma•16mo ago
i mean im gonna blame this one on younger me again
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Well glad I could stump your brains out for today :Kek: and had a competent sys admin come across and tell you.
Emma
Emma•16mo ago
having someone who knows what they are talking about making a support request is definitely new
JasmeowTheCat
JasmeowTheCatOP•16mo ago
šŸŽ‰ Glad I could lend a hand.
Emma
Emma•16mo ago
thanks :3
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Ping me if you need me again for tickets that piss you off. Or use my extra special fuck you site.
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Seriously?
Please don't just say hello, ping, complain, ask empty questions or just make a ticket with no content - It doesn't help anyone!
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Aka, don't ask to ask v2.0. My own little creation with examples šŸ˜‰
Emma
Emma•16mo ago
ah yes i have fun experience with talking to people
Emma
Emma•16mo ago
No description
Emma
Emma•16mo ago
it gets better
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Smort lmfaooo
Emma
Emma•16mo ago
No description
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Very smoooort LOL LOL
Loki
Loki•16mo ago
lmao
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Dude I need to friend you lmfao, you're actually like me hahaha I love this shit
Emma
Emma•16mo ago
lmfaoo i'll send you one
JasmeowTheCat
JasmeowTheCatOP•16mo ago
I take no BS hahaha
Emma
Emma•16mo ago
im on my phone so at least discord cant kick me out from all devices here (discord logs me out everywhere every time i send a friend request on desktop) there we go
Phedona
Phedona•16mo ago
Sounds like a skill issue
amogus
amogus•16mo ago
fire
Emma
Emma•16mo ago
fired grab your stuff
Eternal
Eternal•16mo ago
oh hey jasmeow nice to see you here
JasmeowTheCat
JasmeowTheCatOP•16mo ago
Why hello there.
Eternal
Eternal•16mo ago
I'm the mzunguhosting guy in admincraft you should send me a friend request :kek:
vic
vic•16mo ago
for step 2 -- blueprint doesn't regenerate the blueprint shortcut if it exists including through FOLDER changes
Emma
Emma•16mo ago
it should .
vic
vic•16mo ago
hmm. weird

Did you find this page helpful?