#GGN Foundry & Pi issues
1 messages ยท Page 1 of 1 (latest)
shall we have unsoul here too?
I mentioned that it exists to the other mods and helpers so they can monitor.
cool cool
so i have an external ssd that is connected to the pi and its the only copy of the worlds i have.
We're not sure what is going on with that drive that it won't let you change the permissions of those folders because it should.
It would not be a bad idea to take a backup of that drive anyhow if that's the only copy of it.
when i plugged it into my pc it was making some errors when i plugged it into a usb 2.0 but when i plugged it into a usb 3.1 it worked fine.
Mmm, what kind of errors?
The plug in the pi, is it colored blue?
yes
it was saying unable to acssess
but it went away when i went to usb 3.1
so from plugging it in from the front of my pc directly into the back.
How big is that drive? Does it have its own separate power supply, or just the one cable to the PC?
500 gb and its just one cable directly to the pi
self powered
I wonder if the pi doesn't have enough power for it.
the pi is mains powered
well its been working for almost a year
If it worked before, it should be now... It isn't a mechanical drive, right?
its an ssd
Then that shouldn't meaningfully impact per draw over time
Did you have a system power outage that rebooted your router at some point? Could that be what reset your local address?
i had an isp change and router change in the past few months but something else happened my internal ip address changed. now i reset my pi the internal ip address reset to what it used to be
i dont know what triggered that
then a friend suggested to login to my website ip address without https and just http
my antivrius malware bites was triggered
and wouldnt allow me
do you have any suggestions on what to do next?
We're trying to determine - your situation is not one we've encountered and it's more to do with a tripped up Linux setup than it is with Foundry.
cool cool
Honestly, my suggestion would be to try a different USB drive if you have one.
Create a backup of the data on a new drive and see if that one is accessible.
Maybe something happened to this drive and you'll have to try reformatting it once you've backed up all your world data.
should i try to rip off the data i have
then restart the pi process
after a format
will i need to buy another?
do you think it got damaged from a power out or something
I don't think the pi is the problem
ok ill see if i can copy the data
Make a copy of everything on that drive, that's the first thing you should do.
it seems to be copying ok
a bit slow for an ssd
but ok
btw do raspis have a 3.1 usb version?
What version of the Pi do you have?
USB 3,0 looks like
You won't tell the difference in normal use for anything in a Pi
We are hoping
Copying stuff off isn't really going to indicate if what we're doing is going to work.
so? format then reload it in? or do the linux stuff first then drag in?
okay ive copied it over
gunna see if a format takes
Don't start the formet yet ifyou haven't
i havnt
Okay
what would you like me to do first?
Alright - so talking to the other people smarter than me revealed that formatting might not be the right option.
Because what I was going to suggest wouldn't let you access the files on a Windows machine.
Which I think would pretty much crap on any ability for you to backup your stuff - so let's not do that.
So - this is unorthodox, but I think we're going to have you just run your foundry servers on root - because it's just going to be beyond us to get it working another way.
So - now that you've made a backup of that data (which is probably a good idea to do at least once a month) let's connect the drive back to the Pi
Once the drive is connected to the pi, do your server setup steps but do them when logged in as the user "pi"
Correction, run the servers on the "pi" user on your pi - but they won't be running as root.
The issue here is that the user "pi" owns this drive, according to your Linux OS
So your foundry user is kinda strapped to be able to manage it, but if you run your foundry servers on the "pi" user it should untangle your ability to access the files
So long-story-short:
- re-attach your USB drive to the pi
- setup your Foundry servers while logged into the pi as the "pi" user
ok ill go plugin first
GGN Foundry & Pi issues
lmao
im logged in.
Reserving this for future use ๐
Okay, follow the linux guide to get your servers setup.
Sets up Foundry on linux with Caddy as reverse proxy.
Before you get started on that, Nick...
yes?
KJ: Review what unsol wanted to do earlier and make sure this still applies: #install-and-connection message
from which step?
ill add that
Nick, wait for what KJ says, ok?
I'm not saying do, I'm not saying don't do, I'm saying hold up and wait to see what KJ wants you to do here ๐
yup
We can test if the solution is going to work first.
Are you connected to the pi as the user "pi"?
yes
okay, can you try to path to where the foundry app folder should be?
Are you able to access it from this user?
i can try if you give me the commands im totally illiterate with linux
To be clear, I am just asking you to enter the folder where foundry should be located?
im not sure because theres two folders but i guess i can lookat my imported folder.
Pick one folder and work with that
Do you know how to list the contents of your current folder on linux?
This should be happening at a command line in linux under the user "pi"
how do i check that
At the command prompt use the command ls
GGN - I'm going to be real with you here. You need to be able to do some basic linux command if you are going to run a linux server.
yeh i know but im learning.
someonme suggested pi and im saving money from not paying for forge
that was the main motivation
KJ is the one who suggested a pi, but when we suggest the pi there's an unspoken, which should perhaps be loudly spoken, expectation that users can do basic linux things
i wasnt told this but i am learning coz i have to and i have two games i run on it.
Yeah, I get that. But the volunteers here can't really serve as your unpaid system operators.
i would contirbute to a kofi if i could.
We would rather you spent that money on linux books
i appreciate the help i am recieving.
We just can't keep doing these full-on tutorials guiding you through every single step.
i understand and im trying to get a solution to this problem. and wanting to make it a perminant fix.
Then I am going to encourage you to read the Linux install guide again, so you can learn. I will get you the step to start on.
You are going to start here:
https://foundryvtt.wiki/en/setup/linux-installation#C
Sets up Foundry on linux with Caddy as reverse proxy.
From the start of C
But know that you've already created your user data folder on the USB drive
sure is that unsoul thing correct?
So you can skip step C5 and path to one of the user data folders on the USB drive in the second part of C6
When you get to C5, skip C5 entirely.
For C6, do this instead:
node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata
For now, I just want you to get through to C6
We want to test this solution and the step at C6 will test it.
Which step did you start on?
C1 through C6
no i started at c5
C1 through C6
And you need to start at C1
Yes
And C6 is node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata
KJ will be back in a bit, AFK dealing with issues
This actually might be promising
Try connection to the local link from another computer
What's the ip of the pi on your local network?
What error(s) do you get?
also after that command it doesnt give me a user
the last command
so i have to logout and log back in
is that correct?
http://192.168.0.84:30000 this doesn't work?
What game do you expect foundry1userdata to be?
kingmaker
I was ambushed with dinner. I'll be back in a while.
Ok, where are you in Foundry right now? In the world, still?
just updated all modules.
and its at the main page
havnt loaded the world
but i should try
Is your kingmaker world listed in your game worlds tab?
Okay then. Launch it and login and confirm everything looks good
You do not come off as a dunce. You do come off as someone who isn't prepared when you have to do something that isn't listed out line by line in an elegant script.
I sympathize because there's a lot of areas I dip into where I need stuff listed out in clear, unambiguous, steps
And this is why I do not run a linux box
ok everything works just the browser details. need to be stored. with the modules.
... stored? Define 'stored', please?
well when you have your game settings everytime you login from a new source or browser it asks you for all the module settings to the person using the client. and because this is seen as new. all my players including me will have to set those again.
not a big deal
its expected
Ah
but its working
just now i need to do this twice over.
and make it display the correct caddy settings
then i need to make sure the dhcp and the dynamic ip is set so i dont have to bother you guys if something stops working.
that will have the maximum stability
Now, the short form of what you need to do for your second server is to launch a second pm2 process that points to the second userdata folder, with a unique port.
If that seems like greek to you, say so and do nothing for now.
yes it does. mallakus
i wonder if you want me to do c10 with the user as pi
rather than foundry
Oh no no no no. Do not look at me for any assistance in navigating the linux waters.
I'm qualified to stand by the stream, I am not qualified to navigate it
i shall hold off
I can help with stuff in Foundry, I can point to the docs, I can help with many connection issues ๐
okay - we have a PM2 process running one server now?
Yes
one instance is running locally but the caddy file hasnt been done yet.
Great, I'm glad you got through those steps in the C section, GGN.
ggn feels like a news channel
Let's get the two servers up then let's work with Caddy after that.
Alright, your second PM2 command is going to be similar to the first but needs to target the other data folder instead.
sure id like to get a third running for games that are differents systems. or one shots.
You have three licenses?
i can do. but its not nessicary ive i know how to do this myself i can do it later
It's necesary to have one license for every server that is accessible to someone other than yourself.
So with what we're about to setup, you need to own two Foundry licenses.
yup i have two
i guess with the third later i just add a new directory and change the directory name
Yep, a new PM2 command that points to a different user data folder.
Is the second folder named "foundry2userdata" ?
correct
What was the command you ran to make the first pm2 process?
node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata
just change that to 2
i guess
That's not the pm2 command
That's a node command - they look very similar, but this does not make a pm2 process.
it should begin with pm2 start
i havnt put one in yet
just checked the list and there isnt one
Okay - so we don't have a pm2 process yet.
Everything will be on user pi from now on.
cool cool
This first server, what name should it have in PM2?
kingmaker
pm2 start "node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata" --name kingmaker
thats online
let me see the pm2 status after that is running, please?
Okay, and you can connect to that with the same local link from earlier?
Please test it again now.
it boots to player selection
50000
Prey For Death
pm2 start "node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry2userdata" --name preyfordeath
do i need to install foundry again with a different liscence do i need to follow the c1 steps over
No
cool entered that
pm2 status again?
unable to connect
cd /media/pi/Foundry/foundry2userdatra
entered
then ls
cd Config
done
cat options.json
ahh the port says 30001
i see my worlds again
Okay - that's all I got in me for tonight. I had to break up a fight between some elementary students earlier. It made me sadder than I already was today. So I am going to go spend some time with my kids.
And these are the worlds you expert to see for this server?
yes
thank you for getting it this far
Ok. At this point, I believe you need to get to the point where you have both Foundry processed launched by pm2 , and then you need to get Caddy working.
The linux guide has steps for both.
i see them posting on the pm2 service
the next step is caddy
Please please please please do not skip anything in the guide unless one of us says to skip a step
Like earlier, when KJ said to do steps C1 through C6, skipping C5 and then you chose to start at C5... that don't work well ๐
for sure ill follow what im supposed to
GGN - I have a suggestion that I want you to try to understand comes from a place of love and good intention. Your experience running this server will be so much better if you expose yourself to a class that will help you to lay a foundation of understanding of linux. There's a free course here that some of the knowledgable people said could be beneficial for you. Please please consider taking this course to help you establish some linux chops so you're able to manage more of this on your own:
https://training.linuxfoundation.org/training/introduction-to-linux/
you can just call me nick its fine.
and ill check it out
i just feel so strapped for time tho.
but i really appreciate your help. and ill give it ago when i can
I get that, but consider how much of our time it takes to help with your frequent troubles.
i am
And we're all volunteers.
i think it was one of your volunteers that suggested i should look into raspi stuff and i did explain that i have no experience with this. and that if i was to get into it i would need to be shown the ropes.
okay. well i appreciate the help. i just want to make this a more perminant solution so that on smaller matters i dont need to ask for help.
ill gain some knowledge about linux based stuff but at the same time i am in a situation where i have two games to run each week and you guys are way more experienced in this and much better at diagnosing the issues.
so i dont know who or what to look into when it comes to a solution for myself.
one issue i have found is that in the wiki for setting up the caddy file. there isnt an example of if you have multiples.
like at c19. what do i do if i have multiple domain names
list them?
ok i think i understand the issue. i need to set the config options per instance
It's just copy-pasting the same block as a single server, but with new domain names and ports
For.. caddy?
... What are you trying to do there?
well im trying to follow from c18 onwards
Sets up Foundry on linux with Caddy as reverse proxy.
but i have multiple domains
i have two
so i dont know what to do with the hostname
or do i find the options.json per instance?
Someone will be along shortly
I've never had to set up Caddy or other reverse proxies
cool but isnt my thread like lost way up in the chat?
im at the last hurdle for people to join the game. then its just dynamic ip and dhcp settings and i can leave it alone for a while.
There are multiple ways of finding this thread, for those who need to do so ๐
cool cool
the issue im having is just locating where the config files are for each instance
if i can find them and edit them then i can finish up with the connection issues.
I would help if I could, but I've never had need of Caddy