#Update to v11 on RPi
1 messages ยท Page 1 of 1 (latest)
This is the sole bit of assistance I will be able to give: https://foundryvtt.wiki/en/setup/linux-installation
Read the whole thing before beginning.
Sets up Foundry on linux with Caddy as reverse proxy.
Thanks. Tried that just now, didn't work. When I just extract the downloaded zip into my current app folder (where my foundry installation is located) and start Foundry, I just get a 502 error when trying to connect.
When I check the status I get this:
Also when I try to start Foundry directly, without starting the service I get the following error:
In upgrading to the new database engine for v11, some devices may experience an error related to an invalid version of glibc. This most notably affects ARM architecture devices, including some models of Raspberry Pi.
1. Shut down your currently hosted Foundry VTT server instance.
2. In a terminal, access the folder or directory where your Foundry VTT executable is located.
3. Access theresources/app/subdirectory.
4. runnpm install classic-level --build-from-source
5. Relaunch your Foundry VTT server following your normal procedure.
Thanks, but that gives me an error. ๐ค
How is the SD card where foundry is stored mounted?
Foundry is not installed on the SD Card. I know it's probably bad practice but that's what it is right now.
Foundry instead is on the connected HDD.
Okay..how is that mounted?
I'm not all that proficient with linux. Could you tell me how I find out?
This is the content of fstab if that helps.
proc /proc proc defaults 0 0
PARTUUID=dfe37cac-01 /boot vfat defaults 0 2
PARTUUID=dfe37cac-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
UUID=7ad7a4cb-81dc-4925-b9e8-914f25b02afe /mnt/foundryvtt ext4 defaults,auto,users,rw,nofail 0 0
ls -la /mnt/foundryvtt
can you upload the mentioned log?
Hmm, what are the perms on /mnt/foundryvtt/App/resources/app/?
Is that what you needed? ๐
Hmyea, not quite sure what permission issue it has though now
Might be an unconventional idea but... would it help to unzip foundry on the sd card, run the npm thing there and move everything to the HDD afterwards?
Could be a try at least ๐คท
I'm also not quite sure why store the Foundry app inside the userdata folder, but that shouldn't be the cause for this particular issue anyway, it's just..unconvential I guess
Not sure what I did there either. That server was running for a long time and s/o here helped me set it up. Don't know what we were thinking.
I get this now, is that what it should show?
In the end, if there would be need to install everything fresh and clean, I can do it the conventional way. But I'd need a lot of help for that. Setting this thing up initially was quite the ordeal for me. I am not able to do anything on linux on my own. :-S
That's why we have the guide I linked to at the start of this thread ๐
Assuming there's a new pi@raspberrypi line after your screenshot, yes, its complete
yes there was.
Okay, moved the files now, rebooted, stopped the service which runs on boot and tried to start foundry with the path in the service but again with errors:
What's the pi image you used?
Was it the 32bit image and what Pi model is it?
I can't remember whether it was 32 of 64 bit, I'm sorry. But it's a raspberry pi 4.
Initially it was a 3 but when I updated to v10 I was running out of RAM and bought a 4 in which I put the SD card from the 3.
If it's the 32 bit image you'll unfortunately have to reinstall the base os
But also..porting the SD card from a different model..isn't exactly a great idea..
I usually tend to use 64 bit so I would assume I did here as well but I would not bet on it.
ยฏ_(ใ)_/ยฏ
I tried to run the test stuff I had after doing the npm thing on the sd card and that seems to be working:
I thought you ran that and had the same error? ๐ค
No, I moved it to the HDD first.
Did you clear out the old installation first?
Delete old application folder, copy new application folder from SD card
Check if that works
Because it was quicker than typing I moved it to the wastebasket with a mouse on the pi but yes.
Then I don't know
Might be a stupid question, but wouldn't it be possible to just change all references to the old foundry app location to the new one but keep using the old data folder and pretend foundry has always been where it is on the SD card? ๐
Naturally
Okay so, I guess I'll need to figure out what all referenced the old app path to the HDD. the systemctl service comes to mind of course. But what about nginx and the ssl cert? Do I need to change anything there?
No, it should only need changes in the unit file really
unit file meaning the service file?
Yes
Okay, I'll try that and see if that works.
Also: I didn't say it yet, but I'm incredibly grateful for your time and effort. Thank you so much. ๐
Anytime,
you only should need to modify the ExecStart directive in the service to change ExecStart=/usr/bin/node <path to new main.js>... and keep the rest of the line as is
I've just got node in there, not /usr/bin/node but it seems to work regardless.
Great, so finally this is settled, Thank you so much. =)
I'm afraid it's not all good yet. ๐ค
When I try to update modules and systems, I get a load of timed out errors.. And I've checked on my local installation of foundry, I can update the same packages there no problem. :-S
Some few packages update but the vast majority does not.
Possible you're running into rate limiting
What does that mean? I only just started and was able to only update like five packages or so.
I don't know, something in the ballpark of 200 or so.
5, 50, 500?
Yea
Update them individually, chances are you are being rate limited due to running to many checks at the same time by Github/Gitlab
Or your network is funky, or your install is fucked up because you transplanted SD cards between pi models, or who knows..
Even individually, it's rare I get it updated. :-S
What are the full errors you are getting? Check in the console
Here are a couple:
And is the listed URL openable from the pi itself?
From the Pi? uhm, I don't know. Can I check that in Putty?
curl -v <the url> for example
Well, no idea then
That's the right manifest
Either you're still rate-limited through Foundry, didn't properly remove the old foundry installation and replaced it with a new one or something else entirely is still broken somewhere, considering the more than questionable history of this entire Pi installation
Well, I deleted the folder and contents of the old installation on the HDD. Is that not enough?
I mean, you are now not running of the HDD because you installed to the SD card
So..no idea what was there before and if you did delete and replace there
I would strongly suggest to reinstall the entire Pi at this point, especially since you transplanted the SD card from an older model
BTW: Whenever I try to update a single package and do get a timed out error, it shows me that one twice:
I was afraid you'd say that. Not sure I can handle that. It took like two days the last time. Nginx, the ssl cert, setting ub the dynamic dns, the service, ... I realise I'm moaning here a bit now but... I'm sorry. Maybe you're right. Thing is just: I can't do it. Even with a guide I'm helpless.
If you truly feel that way, there's always hosting through the Foundry app or hosting providers you can turn to
Out of the question. Also I'm depressed by this. First the whole nothing works ordeal then suddenly it did except it didn't. It's been too much. I either need someone to pay for setting this thing up or regain my stamina to work on it. Can't do it alone but still.
I don't mean to sound ungrateful either. It's just too much right now.
That's fair enough. Those could also be options of course, especially caring for yourself is important in any case.
Yeah. I need to step back for now. Gotta figure out how to host my games in the meantime and hope s/o is willing to lend me a hand later. Or willing to accept a tiny sum to do it remotely if that's possible. ๐คฃ
Anyway, I thank you. Even though it didn't properly work out in the end, I learned something at least.
If you had a pi 3 and are using the same image that was running on the 3 then you're using a 32bit
The timeout error is indicitive of not fully deleting the v10 before unpacking v11
Just got caught up on the thread here
Thanks for being here then. =)
But v11 is in a new directory on the SD Card now. Data folder is the same.But if you have any suggestions I'm all ears.
I'd start with removing your v11 app folder completely, then downloading a new zip and extracting v11 again. You'll have to rebuild levels again though
levels?
Ah, that.
Okay, that would be like the tenth time I delete the old folder and unzip the new one. Please excuse my scepticism but what good would that do if it already is set up anew on the SD card (v10 was on the HDD before)?
Did you download a new copy when you did it before or did you use the existing zip?
Did you also check your node version yet? node -v
Before what exactly? When I started yesterday, I downloaded the zip. I've been using that one since then.
I actually updated that one yesterday, yes.
It's possible something in that zip is corrupted. Which is why I specifically said downlaod a new zip and do a reinstall with the new zip
If that zip is no good and you've reinstall it 10 times using it, then you're just reinstalling the same problem over and over
Okay, can do, nothing to loose I suppose. But is there any way to check if the zip is okay? Should I just download an earlier Foundry version like 11.311 or something?
BTW: Interestingly enough Foundry shows 11.308 even though I downloaded the 11.313 zip.
Generally the zip is fine, but if you downlaoded 11.313 and it's showing 11.308 clearly there was a problem
It also looks like your service is running node from /usr/bin/node can you quicky do /usr/bin/node -v just to make sure you don't have two node versions installed
The service runs from just node as stated here: #1165670991335280833 message
But interestingly enough:
That happens sometimes when you update node via nvm. How did you update node?
Here's the service:
And that screenshot I took yesterday:
That's how I updated node
You can update your service to ExecStart=/usr/local/bin/node ...
which will load the correct node
has the machine been rebooted since you updated?
many times.
Shouldn't I update "the correct node" before then?
You have the correct node, you just updated with nvm which is a huge pain in the butt since it doesn't update node and install installs a 2nd copy
Updating the path to the correct node version will have it load foundry with the correct node
Honestly from what I read of your thread here I would make a backup of your user data folder. Reinstall rasbian with the 64 bit version and then do a completely fresh v11 install and restore your backup
There is a fairly good chance just update your service to load the correct node will make things work though
but /usr/bin/node -v showed a version of 14.21.3. Isn't that problematic then?
Not if you're loading node from /usr/local/bin/node in your service
instead of ExecStart=node ... you do ExecStart=/usr/local/bin/node ...
Fair but no. Not now at least, can't handle it right now. But the offer still stands, I pay anyone who does it for me. XD
Then it loads the correct version of node. Alterniatively. Uninstall node via apt, and install it correctly via apt
Okay, will try. Then install Foundry again as well?
If that would be the better way of doing it give me the commands please and I'll be happy to do it. =)
To redepoy raspbian someone would need physical access to your pi. It's not something anyone is going to be able to do for you. Once you've got the current version of raspian things are as easy as following the gude we have
sudo apt remove nodejs npm
and sudo rm -rf /usr/local/bin/node*
That will completely remove node and npm
Probably run sudo apt-get purge nodejs for good measure after the other two
This one first or last?
And afterwards what to install it again?
Once it's removed do the following
sudo apt update
sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt update
sudo apt install nodejs -y
Do I just paste the whole thing or run each command individually?
Your choice. Iโd run it one at a time in your case
It is possible node 20 wont install on 32 bit raspbian actually
lets change it to 18
I'm sure installing the OS I could handle. But the guide... I'm sure it took a great deal of time and effort but it raises more questions than it answers. For me as a complete linux idiot, it is super complicated. ๐
So this is what happened. ^^
The linux guide is setup so you can just copy paste and get it done. I would say what we've been doing here is more complicated than the guide
Cool looks like node20 went. Give node -v a go and see what it outputs
Let's not argue about it. =)
๐
After reboot:
That's because you're running an outdated version of raspian. Going to need to remove node20 and install node18 which is what I was worried about
Do you need the commands to remove it again?
In general, the answer is always yes. XD
I'm sorry, but I really am dumb as a brick when it comes to the whole linux thing.
sudo apt remove nodejs npm
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt update
sudo apt install nodejs -y
node -v should work without the reboot
indeed
go ahead and reboot and it should start your foundry
On the updates?
yeah
Try doing one at a time
I just did. Only tried a single system so far.
Try a different one?
Same thing, slightly more context:
back in the terminal run which node
if you press f12 in the foundry window and look at the console tab. Does it give anymore details around the red errors?
Only this:
No other red errors?
I would still go back and download a new zip and reinstall that way as we discussed before because of your issue with it report 308 previously
It may fix the download issue
That is all I'm afraid. The warnings are to be expected.
I'm at a bit of a loss otherwise
I have to step away now as I need to get my kids ready for school
Of course. Thanks a lot for your help though, much appreciated. =)
FYI: After updating Foundry there are still many timed out errors but certainly less than before. I could update aprox. 10-20% of the modules. The rest still timed out. But it's somewhat of an improvement. XD
But I'm afraid you're all right. I probably have to set the whole thing up again. - Perfectly understandable if you'd decline but if you'd like to help me through the guide in a few days, help me interpret the results, and guide me towards functionality, That'd be great. =)
There'll likely be someone around to help you through the guide