#PM2 WARN name doesn t exist

1 messages · Page 1 of 1 (latest)

alpine salmon
#

pm2 status to find the name of your foundry instance there

#

Then pm2 describe thenameinthenamecolumn

#

Also run stat /home/ubuntu/foundryuserdata/Config/options.json and copypaste the result

#

@cold dove pulled you into a thread for cleanliness

cold dove
#

When trying to pm2 restart I get
error: missing required argument `id|name|namespace|all|json|stdin'

alpine salmon
#

Ok, see above, pm2 status that should give you a table with the name among other things.

cold dove
alpine salmon
#

Alright, so pm2 describe foundry

cold dove
alpine salmon
#

Ah..

#

There's the culprit then

#

pm2 delete foundry

#

pm2 start "node /home/ubuntu/foundry/resources/app/main.js --dataPath=/home/ubuntu/foundryuserdata" --name foundry

cold dove
#

[PM2][WARN] Current process list is not synchronized with saved list. App foundry differs. Type 'pm2 save' to synchronize.

alpine salmon
#

Is foundry now running properly?

cold dove
#

Back at the start screen the user data path is good

#

All the modules i downloaded are not there

#

so they were being saved in the wrong place?

#

Do i need to delete all that stuff

alpine salmon
#

Because you ran Foundry in a different userdata path since 2022-07-25 23:04

cold dove
#

I hear ya... do I need to clean all that shit up?

alpine salmon
#

Does /home/user/foundrydata exist?

#

And here user is literal

cold dove
#

no

alpine salmon
#

Did you do anything besides downloading modules yet?

cold dove
#

created some wolds that are no there either

alpine salmon
#

Copypaste the output of ls -la /home/user/foundryuserdata/Data/

cold dove
#

it was attempting to use fallback data pather /home/ubuntu/.local/share/FoundryVTT

alpine salmon
#

Depending on whether you think it's worth recovering over recreating we can probably do that

cold dove
cold dove
alpine salmon
#

They are

#

df -h to check how much free space you have left

#

Most non-asset modules are rather small

cold dove
#

I downloaded CoS with images

alpine salmon
#

du -sh /home/ubuntu/.local/share/FoundryVTT shows you how big that folder is

cold dove
#

df -h

#

I am in the directory now... how can I show the size

alpine salmon
#

If you haven't made any changes to your worlds that you need to retain since you switched to that path, you can delete that folder

cold dove
#

Delete the whole FoundryVTT?

#

from share?

alpine salmon
#

rm -r /home/ubuntu/.local/share/FoundryVTT/, yes

cold dove
#

ok great

#

So this should be all then?

alpine salmon
#

Pretty much

#

Has this been a new installation?

#

ie, set up two days ago?

cold dove
#

Yes

alpine salmon
#

Fair enough, yea, figured as much

cold dove
#

I installed a bunch of modules and created a world that was installed too but nothing was working right. Maps and scenes were not loading and I felt something was off. I noticed the errors and figured something wasn't linking correctly

#

Thank you so much for all your help...
I'll buy you a virtual beer 🍺

alpine salmon
#

It tried to start with userData set to /home/user/foundryuserdata which didn't exist, used the mentioned fallback and I think you then tried to override it via the UI and that made it angry

#

No worries, happy to help you out :)

cold dove
#

Cheers.... I think this thread is done then.

#

I have another question

alpine salmon
#

Shoot

cold dove
#

@alpine salmon
So I shut down my server after installing the world and modules. Everything worked fine. Slowly figuring out things.
I shut down and when I started the server again I am running into the license page again.
Is there something wrong with pm2?
I got the requested path not found again

#

I was confused when setting up and installed under root since I didn't see root in my username not knowing the name of the server was root.

#

The data path reverted back to /home/user/foundryuserdata

#

If I follow your instruction from before and pm2 delete foundry and pm2 start .... it works fine.

alpine salmon
#

Did you pm2 save?

cold dove
#

I thought I did but not sure

#

So that should do it?

alpine salmon
#

Yes

#

You can then check with pm2 describe foundry

cold dove
#

ok... I saved it.

#

Currently prepping so I will shut down after and see if this is fixed.

#

Thank you again