cyrale / project-zomboid

A Project Zomboid server with LinuxGSM.
29 stars 56 forks source link

$(pwd) What does it do? #3

Closed blubkens closed 4 years ago

blubkens commented 4 years ago

It's more a question but i can see that you are using $(pwd) for mounting volumes. What does this do and is it required? For example i would like to use a shared folder i have available under /mnt/ When starting the image it stops at the following.

    fetching command_update_linuxgsm.sh...OK,

[ .... ] Update LinuxGSM pzserver: Updating LinuxGSM    fetching check_root.sh...OK,
,
    checking config _default.cfg...OK,
    checking linuxgsm.sh...UPDATE,
    fetching linuxgsm.sh...OK,
    checking pzserver...UPDATE,
    backup pzserver...OK,
    Backup: /home/steam/ProjectZomboid/lgsm/backup/script/pzserver-12_10_2019_39.bak,
    fetching pzserver...OK,
    checking function check.sh...OK,
    checking function check_deps.sh...OK,
    checking function check_glibc.sh...OK,
    checking function check_permissions.sh...OK,
    checking function check_root.sh...OK,
    checking function check_steamcmd.sh...OK,
    checking function check_system_requirements.sh...OK,
    checking function check_tmuxception.sh...OK,
    checking function command_install.sh...OK,
    checking function command_update_linuxgsm.sh...OK,
    checking function core_dl.sh...UPDATE,
    fetching core_dl.sh...OK,
    checking function core_exit.sh...OK,
    checking function core_functions.sh...OK,
    checking function core_getopt.sh...OK,
    checking function core_legacy.sh...OK,
    checking function core_messages.sh...OK,
    checking function core_trap.sh...OK,
    checking function fix.sh...OK,
    checking function info_distro.sh...OK,
    checking function install_complete.sh...OK,
    checking function install_config.sh...OK,
    checking function install_header.sh...OK,
    checking function install_logs.sh...OK,
    checking function install_server_dir.sh...OK,
    checking function install_server_files.sh...OK,
    checking function install_stats.sh...UPDATE,
    fetching install_stats.sh...OK,
    checking function install_steamcmd.sh...OK,

[  OK  ] Update LinuxGSM pzserver: Updating functions    fetching command_update.sh...OK,

[ .... ] Update pzserver:     fetching check_system_dir.sh...OK,
    fetching check_logs.sh...OK,
    fetching check_status.sh...OK,
    fetching logs.sh...OK,
    fetching update_steamcmd.sh...OK,

[ .... ] Update pzserver: Checking for update: SteamCMD: checking local build
[ .... ] Update pzserver: Checking for update: SteamCMD: checking remote build
[  OK  ] Update pzserver: Checking for update: SteamCMD: checking remote build
[ .... ] Update pzserver: Checking for update: SteamCMD
[  OK  ] Update pzserver: Checking for update: SteamCMD,
,
Update available,
* Local build: 0,
* Remote build: 3417034,
https://steamdb.info/app/380870/,
,
applying update.
applying update..
applying update...
,
    fetching info_config.sh...OK,
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.,
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt',
[  0%] Checking for available updates...,
[----] Verifying installation...,
Steam Console Client (c) Valve Corporation,
-- type 'quit' to exit --,
Loading Steam API...OK.,
,
Connecting anonymously to Steam Public...Logged in OK,
Waiting for user info...OK,
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0),
 Update state (0x11) preallocating, progress: 2.36 (53495681 / 2268532511),
 Update state (0x11) preallocating, progress: 3.44 (78045648 / 2268532511),
 Update state (0x11) preallocating, progress: 3.51 (79589879 / 2268532511),
 Update state (0x11) preallocating, progress: 3.55 (80572691 / 2268532511),
 Update state (0x11) preallocating, progress: 3.65 (82710996 / 2268532511),
 Update state (0x11) preallocating, progress: 3.71 (84274593 / 2268532511),
 Update state (0x11) preallocating, progress: 3.76 (85403650 / 2268532511),
 Update state (0x11) preallocating, progress: 12.14 (275353529 / 2268532511),
 Update state (0x11) preallocating, progress: 12.33 (279663300 / 2268532511),
 Update state (0x11) preallocating, progress: 12.42 (281805285 / 2268532511),
 Update state (0x11) preallocating, progress: 12.62 (286358647 / 2268532511),
 Update state (0x11) preallocating, progress: 12.95 (293777570 / 2268532511),
 Update state (0x11) preallocating, progress: 13.07 (296609002 / 2268532511),
 Update state (0x11) preallocating, progress: 13.19 (299292677 / 2268532511),
 Update state (0x11) preallocating, progress: 13.24 (300384513 / 2268532511),
 Update state (0x11) preallocating, progress: 13.29 (301506057 / 2268532511),
 Update state (0x11) preallocating, progress: 27.56 (625173659 / 2268532511),
 Update state (0x11) preallocating, progress: 51.00 (1156991055 / 2268532511),
 Update state (0x11) preallocating, progress: 74.30 (1685630195 / 2268532511),
 Update state (0x11) preallocating, progress: 84.64 (1920162420 / 2268532511),
 Update state (0x11) preallocating, progress: 90.68 (2057024233 / 2268532511),
Error! App '380870' state is 0x602 after update job.,
    fetching fix_steamcmd.sh...OK,

[ .... ] Fix pzserver: Applying steamclient.so fix: Project Zomboid
[ INFO ] Fix pzserver: Applying steamclient.so fix: Project Zomboid
[  OK  ] Fix pzserver: Applying steamclient.so fix: Project Zomboid,
    fetching alert.sh...OK,
    fetching info_messages.sh...OK,
ls: cannot access '/home/steam/Zomboid/Logs': No such file or directory,
cp: cannot create regular file '/server-data/Server/pz-server.ini': No such file or directory,
Start the project-zomboid server named pz-server,
    fetching command_start.sh...OK,
    fetching check_executable.sh...OK,

[ FAIL ] Starting pz-server: executable was not found,
* /home/steam/ProjectZomboid/serverfiles/start-server.sh,
tail: cannot open '/server-data/server-console.txt' for reading: No such file or directory,
tail: no files remaining,
cyrale commented 4 years ago

Hi @joopjuh,

$(pwd) is used to get the current directory path. I don't remember exactly why I use this but, in my memories, Docker not understand if you use ./server-data:/server-data in the command line.

Today, I don't use docker run command line anymore, I prefer Docker Compose or other tools to manage my Docker containers. It is with this intention that the documentation has been updated to display Docker Compose.

It seems you have permission issue. Check them by following these instructions.

Some fixes have been made to better manage the locale and the log file. Update your image by doing docker pull cyrale/project-zomboid or remove the older image to force Docker to download the newer.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.