Skippeh / parcel-thief

A work in progress private server/emulator for Death Stranding Director's Cut.
6 stars 0 forks source link

Can't launch Server #1

Closed synepcice closed 1 month ago

synepcice commented 2 months ago

I am sorry , but when trying to launch this server , i get this issue :

[2024-07-12T18:00:03 INFO parcel_server] Server starting... Error performing logging. attempted to log: [2024-07-12T18:00:03 INFO parcel_server] Server starting... record: Record { metadata: Metadata { level: Info, target: "parcel_server" }, args: [2024-07-12T18:00:03 INFO parcel_server] Server starting..., module_path: Some(Borrowed("parcel_server")), file: Some(Borrowed("parcel-server\src\main.rs")), line: Some(195) } logging error: Le chemin d’accès spécifié est introuvable. (os error 3)thread 'main' panicked at 'called Result::unwrap() on an Err value: Error { kind: InvalidData, message: "stream did not contain valid UTF-8" }', C:\Users\runneradmin.cargo\git\checkouts\pg-embed-a1644eec4c82de4a\655a673\src\postgres.rs:229:54 note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

And the CMD close ...

I think your server is set-up for an Admin called "RunnerAdmin" , But this Admin does not exist on my Computer. Can you edit your software to be more "open-mind" lol ;) Thank you very mutch :)

amPerl commented 2 months ago

It's nothing to do with "runneradmin", that's not a limitation of any kind, just part of the file path for the error because the release was built on GitHub Actions under that username.

The real issue seems to be this https://github.com/faokunega/pg-embed/issues/9 although that seems to be about an older version, so I'm not sure why exactly that's showing up now

Skippeh commented 2 months ago

A temporary workaround you can use is to run a separate postgresql server. I'll probably have to fork pg-embed to attempt to fix it as the repo seems to be inactive.

synepcice commented 2 months ago

Ok , thanks , i'll try it :)

synepcice commented 2 months ago

I am sorry, I don't really succeed on making my own PostGreSQL server. I think I will wait for a new release of your emulator fixed with a good Pg-Embed version. Thank you very much for your time and your work.

Skippeh commented 2 months ago

Can you try this build? I've replaced pg-embed with an active crate that hopefully works better. Or at the very least gives a more useful error message.

https://github.com/Skippeh/parcel-thief/releases/tag/build%2Freplace_pg-embed_dep%2F2024-07-18 (use the build below instead)

Skippeh commented 2 months ago

I just realised, the logs directory isn't created automatically, oops :D

For now, create a directory called logs in the server root (next to the data folder), otherwise logging won't work.

You even wrote it in the OP, but i missed it somehow.

Skippeh commented 2 months ago

I fixed the logs directory issue, here's a new build.

https://github.com/Skippeh/parcel-thief/releases/tag/build%2Freplace_pg-embed_dep%2F2024-07-18_2

synepcice commented 2 months ago

Hello , I tried the latest build , and this is what happened :

[2024-07-19T08:32:57 INFO parcel_server] Server starting... [2024-07-19T08:32:57 INFO tracing::span] setup; [2024-07-19T08:32:57 INFO tracing::span] start; Error: Failed to setup and launch postgresql server

Caused by: Command error: stdout=; stderr=

synepcice commented 2 months ago

And this is the Full Log :

image

Skippeh commented 2 months ago

Can you upload the start.log file in the data/postgresql/data/ directory?

synepcice commented 1 month ago

Yes of course :

2024-07-19 08:32:07.052 CEST [7516] FATAL: database files are incompatible with server 2024-07-19 08:32:07.052 CEST [7516] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 16.3. 2024-07-19 08:32:58.312 CEST [1332] FATAL: database files are incompatible with server 2024-07-19 08:32:58.312 CEST [1332] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 16.3. 2024-07-19 08:39:33.111 CEST [4140] FATAL: database files are incompatible with server 2024-07-19 08:39:33.111 CEST [4140] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 16.3.

Skippeh commented 1 month ago

It looks like the database needs to be upgraded or deleted. Since it hasn't worked for you yet it's probably easiest to just delete the data/postgresql/data/ directory and try again. If it doesn't work then please upload the start.log file again.

Edit: I should clarify, the upgrade or deletion is needed because when i switched out pg-embed i also changed to download the newest major version (v15 -> v16), which apparently does not auto upgrade. Makes sense in hindsight since it's a major version change, but i didn't think of it.

It might still not be the solution to your problem though since it wasn't working before either, unless it had to do with the pg-embed crate.

synepcice commented 1 month ago

Nice ! It's Working ! Thank You Very Mutch ! You're a Big Boss ;)

image

synepcice commented 1 month ago

Issue Corrected :D