#GGN Foundry & Pi issues

1 messages ยท Page 1 of 1 (latest)

lunar drum
#

Let's chat here away from the other chatter.

deep bolt
#

shall we have unsoul here too?

lunar drum
#

I mentioned that it exists to the other mods and helpers so they can monitor.

deep bolt
#

cool cool

#

so i have an external ssd that is connected to the pi and its the only copy of the worlds i have.

lunar drum
#

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.

deep bolt
#

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.

deep monolith
#

Mmm, what kind of errors?

lunar drum
#

The plug in the pi, is it colored blue?

deep bolt
deep bolt
#

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.

deep monolith
#

How big is that drive? Does it have its own separate power supply, or just the one cable to the PC?

deep bolt
#

self powered

lunar drum
#

I wonder if the pi doesn't have enough power for it.

deep bolt
#

the pi is mains powered

lunar drum
#

Right, but it's not working with an 800w power supply.

#

The pi is powered by USB C?

deep bolt
#

well its been working for almost a year

deep monolith
#

If it worked before, it should be now... It isn't a mechanical drive, right?

deep bolt
#

If that helps

#

The drive is hanging off

deep monolith
#

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?

deep bolt
#

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?

lunar drum
#

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.

deep bolt
#

cool cool

lunar drum
#

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.

deep bolt
#

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

lunar drum
#

I don't think the pi is the problem

deep bolt
#

ok ill see if i can copy the data

lunar drum
#

Make a copy of everything on that drive, that's the first thing you should do.

deep bolt
#

a bit slow for an ssd

#

but ok

#

btw do raspis have a 3.1 usb version?

lunar drum
#

What version of the Pi do you have?

deep bolt
#

v 5

#

8 gb

lunar drum
#

USB 3,0 looks like

deep monolith
#

You won't tell the difference in normal use for anything in a Pi

deep bolt
#

its working

#

so maybe a format will fix it?

deep monolith
#

We are hoping

lunar drum
#

Copying stuff off isn't really going to indicate if what we're doing is going to work.

deep bolt
#

so? format then reload it in? or do the linux stuff first then drag in?

deep bolt
#

gunna see if a format takes

lunar drum
#

Don't start the formet yet ifyou haven't

deep bolt
#

i havnt

lunar drum
#

Okay

deep bolt
#

what would you like me to do first?

lunar drum
#

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:

  1. re-attach your USB drive to the pi
  2. setup your Foundry servers while logged into the pi as the "pi" user
deep bolt
#

ok ill go plugin first

hidden trench
#

GGN Foundry & Pi issues

deep bolt
#

lmao

hidden trench
#

Reserving this for future use ๐Ÿ™‚

lunar drum
hidden trench
#

Before you get started on that, Nick...

deep bolt
#

yes?

hidden trench
deep bolt
hidden trench
#

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 ๐Ÿ™‚

deep bolt
#

yup

lunar drum
#

We can test if the solution is going to work first.

#

Are you connected to the pi as the user "pi"?

deep bolt
#

yes

lunar drum
#

okay, can you try to path to where the foundry app folder should be?

#

Are you able to access it from this user?

deep bolt
#

i can try if you give me the commands im totally illiterate with linux

lunar drum
#

To be clear, I am just asking you to enter the folder where foundry should be located?

deep bolt
#

im not sure because theres two folders but i guess i can lookat my imported folder.

hidden trench
#

Pick one folder and work with that

lunar drum
#

Do you know how to list the contents of your current folder on linux?

deep bolt
lunar drum
#

This should be happening at a command line in linux under the user "pi"

deep bolt
#

how do i check that

lunar drum
#

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.

deep bolt
deep bolt
#

someonme suggested pi and im saving money from not paying for forge

#

that was the main motivation

hidden trench
#

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

deep bolt
#

i wasnt told this but i am learning coz i have to and i have two games i run on it.

lunar drum
#

Yeah, I get that. But the volunteers here can't really serve as your unpaid system operators.

deep bolt
#

i would contirbute to a kofi if i could.

hidden trench
#

We would rather you spent that money on linux books

deep bolt
#

i appreciate the help i am recieving.

lunar drum
#

We just can't keep doing these full-on tutorials guiding you through every single step.

deep bolt
#

i understand and im trying to get a solution to this problem. and wanting to make it a perminant fix.

lunar drum
#

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.

deep bolt
#

from the beginning?

#

from C?

lunar drum
#

From the start of C

#

But know that you've already created your user data folder on the USB drive

deep bolt
#

sure is that unsoul thing correct?

lunar drum
#

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.

deep bolt
lunar drum
#

Which step did you start on?

deep bolt
#

i did c5

#

๐Ÿ˜ฆ

#

i need to delete it

lunar drum
#

C1 through C6

deep bolt
#

no i started at c5

lunar drum
#

C1 through C6

hidden trench
#

And you need to start at C1

deep bolt
#

ok

#

so i skip step c5

hidden trench
#

Yes

#

And C6 is node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata

deep bolt
#

so i got a liscence verification failure

#

but the other errors arent showing

hidden trench
#

KJ will be back in a bit, AFK dealing with issues

deep bolt
#

okay

#

i hope i havnt caused a headache

lunar drum
#

This actually might be promising

deep bolt
#

yeh its working better than it was.

#

just need to add a liscence

lunar drum
#

Try connection to the local link from another computer

#

What's the ip of the pi on your local network?

deep bolt
#

192.168.0.84

#

i tried logging in locally

#

and it isnt working

hidden trench
#

What error(s) do you get?

deep bolt
#

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?

lunar drum
deep bolt
#

my old game is there

hidden trench
#

What game do you expect foundry1userdata to be?

deep bolt
#

kingmaker

lunar drum
#

I was ambushed with dinner. I'll be back in a while.

hidden trench
#

Ok, where are you in Foundry right now? In the world, still?

deep bolt
#

and its at the main page

#

havnt loaded the world

#

but i should try

hidden trench
#

Is your kingmaker world listed in your game worlds tab?

deep bolt
#

yes

#

i can see it

hidden trench
#

Okay then. Launch it and login and confirm everything looks good

deep bolt
#

so we are getting somewhere

#

im sorry i come off as a dunce to you guys

hidden trench
#

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

deep bolt
#

ok everything works just the browser details. need to be stored. with the modules.

hidden trench
#

... stored? Define 'stored', please?

deep bolt
#

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

hidden trench
#

Ah

deep bolt
#

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

hidden trench
#

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.

deep bolt
#

yes it does. mallakus

#

i wonder if you want me to do c10 with the user as pi

#

rather than foundry

hidden trench
#

Oh no no no no. Do not look at me for any assistance in navigating the linux waters. cat_lol I'm qualified to stand by the stream, I am not qualified to navigate it

deep bolt
#

i shall hold off

hidden trench
#

I can help with stuff in Foundry, I can point to the docs, I can help with many connection issues ๐Ÿ™‚

lunar drum
#

okay - we have a PM2 process running one server now?

hidden trench
#

Yes

deep bolt
lunar drum
#

Great, I'm glad you got through those steps in the C section, GGN.

deep bolt
#

ggn feels like a news channel

lunar drum
#

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.

deep bolt
#

sure id like to get a third running for games that are differents systems. or one shots.

lunar drum
#

You have three licenses?

deep bolt
#

i can do. but its not nessicary ive i know how to do this myself i can do it later

lunar drum
#

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.

deep bolt
#

yup i have two

#

i guess with the third later i just add a new directory and change the directory name

lunar drum
#

Yep, a new PM2 command that points to a different user data folder.

#

Is the second folder named "foundry2userdata" ?

deep bolt
#

correct

lunar drum
#

What was the command you ran to make the first pm2 process?

deep bolt
#

node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata

#

just change that to 2

#

i guess

lunar drum
#

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

deep bolt
#

just checked the list and there isnt one

lunar drum
#

Okay - so we don't have a pm2 process yet.

deep bolt
#

nope

#

with c10 do i replace user with pi?

lunar drum
#

Everything will be on user pi from now on.

deep bolt
#

cool cool

lunar drum
#

This first server, what name should it have in PM2?

deep bolt
#

kingmaker

lunar drum
#

pm2 start "node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry1userdata" --name kingmaker

deep bolt
#

thats online

lunar drum
#

let me see the pm2 status after that is running, please?

deep bolt
lunar drum
#

Okay, and you can connect to that with the same local link from earlier?

deep bolt
#

earlier i did

#

dont think much has changed

lunar drum
#

Please test it again now.

deep bolt
lunar drum
#

Okay, so it's working. Great.

#

What port did you have your second game set to?

lunar drum
#

okay

#

What should this one be named in pm2?

deep bolt
#

Prey For Death

lunar drum
#

pm2 start "node foundry/resources/app/main.js --dataPath=/media/pi/Foundry/foundry2userdata" --name preyfordeath

deep bolt
#

do i need to install foundry again with a different liscence do i need to follow the c1 steps over

lunar drum
#

No

deep bolt
#

cool entered that

lunar drum
#

pm2 status again?

deep bolt
lunar drum
deep bolt
#

unable to connect

lunar drum
#

cd /media/pi/Foundry/foundry2userdatra

deep bolt
#

entered

lunar drum
#

then ls

deep bolt
lunar drum
#

cd Config

deep bolt
#

done

lunar drum
#

cat options.json

deep bolt
#

ahh the port says 30001

lunar drum
deep bolt
#

i see my worlds again

lunar drum
#

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.

hidden trench
#

And these are the worlds you expert to see for this server?

deep bolt
#

yes

deep bolt
hidden trench
#

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.

deep bolt
#

the next step is caddy

hidden trench
#

Please please please please do not skip anything in the guide unless one of us says to skip a step

hidden trench
#

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 ๐Ÿ™‚

deep bolt
#

for sure ill follow what im supposed to

lunar drum
#

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/

Develop a good working knowledge of Linux using both the graphical interface and command line with this free introduction to Linux course.

deep bolt
#

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

lunar drum
lunar drum
#

And we're all volunteers.

deep bolt
#

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.

hidden trench
#

It was KJ, as I said earlier ๐Ÿ™‚

#

KhazadJake == KJ

deep bolt
#

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.

deep bolt
#

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

hidden trench
#

It's just copy-pasting the same block as a single server, but with new domain names and ports

deep bolt
#

im trying to fix it myself but i cant find where the config file is.

deep monolith
#

For.. caddy?

deep bolt
#

nano ~/foundryuserdata/Config/options.json

#

for this

deep monolith
#

... What are you trying to do there?

deep bolt
#

well im trying to follow from c18 onwards

#

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?

deep monolith
#

Someone will be along shortly
I've never had to set up Caddy or other reverse proxies

deep bolt
#

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.

hidden trench
#

There are multiple ways of finding this thread, for those who need to do so ๐Ÿ™‚

deep bolt
#

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.

hidden trench
#

I would help if I could, but I've never had need of Caddy

deep bolt
#

im just so confused because logically this should be the right directory

#

if i look at my backups