Git Product home page Git Product logo

Comments (4)

irobot73 avatar irobot73 commented on May 16, 2024

Some (most?) of the scripts, for me, don't point to the 'serverfiles' if/when run via CRONTAB

I redirected the jobs to a log file so I could see some of the issue(s):

0 1 * * * /app/*server update-lgsm >> /data/log/crontab.log  # EVERY SUN @ 1:00
0 3 * * 1,3,5 /app/*server restart >> /data/log/crontab.log  # EVERY M,W,F @ 3:00
0 4 * * * /app/*server backup >> /data/log/crontab.log 2>&1  # EVERY DAY @ 4:00

Running these manually, via LINUXGSM/console (mostly) works (backup is still dorked), but via CRON, the path to the serverfiles doesn't rectify to '/data' but a subfolder of '/app':

�[K[ .... ] Stopping sdtdserver: 
�[K[�[31m FAIL �[0m] Stopping sdtdserver: Cannot access /app/serverfiles: No such directory

�[K[�[31m FAIL �[0m] Stopping sdtdserver: Cannot access /app/serverfiles: No such directory

�[K[ .... ] Backing up sdtdserver: 
�[K[�[31m FAIL �[0m] Backing up sdtdserver: Cannot access /app/serverfiles: No such directory

The update-lgsm seems to function as expected @ least

from docker-gameserver.

Lxeon avatar Lxeon commented on May 16, 2024

Some (most?) of the scripts, for me, don't point to the 'serverfiles' if/when run via CRONTAB

I redirected the jobs to a log file so I could see some of the issue(s):

0 1 * * * /app/*server update-lgsm >> /data/log/crontab.log  # EVERY SUN @ 1:00
0 3 * * 1,3,5 /app/*server restart >> /data/log/crontab.log  # EVERY M,W,F @ 3:00
0 4 * * * /app/*server backup >> /data/log/crontab.log 2>&1  # EVERY DAY @ 4:00

Running these manually, via LINUXGSM/console (mostly) works (backup is still dorked), but via CRON, the path to the serverfiles doesn't rectify to '/data' but a subfolder of '/app':

�[K[ .... ] Stopping sdtdserver: 
�[K[�[31m FAIL �[0m] Stopping sdtdserver: Cannot access /app/serverfiles: No such directory

�[K[�[31m FAIL �[0m] Stopping sdtdserver: Cannot access /app/serverfiles: No such directory

�[K[ .... ] Backing up sdtdserver: 
�[K[�[31m FAIL �[0m] Backing up sdtdserver: Cannot access /app/serverfiles: No such directory

The update-lgsm seems to function as expected @ least

yes, the root folder its wrong, i find backup problem have same question.

if i try to backup server with this command

docker exec -it -u linuxgsm minecraft bash
./mcserver backup

it will backup the /app/serverfiles, not the /data/serverfiles, even i using linuxgsm user before exec the container.

I think it's all a matter of environment variables.

from docker-gameserver.

irobot73 avatar irobot73 commented on May 16, 2024

it will backup the /app/serverfiles, not the /data/serverfiles, even i using linuxgsm user before exec the container.

I think it's all a matter of environment variables.

'Odd' that the install & running of the server functions as expected (w/o the ENV variable), but these script(s)+ don't mirror the same shrug

from docker-gameserver.

irobot73 avatar irobot73 commented on May 16, 2024

Tried to utilize the ENVIRONMENT over-ride. No love there either:

GameServerManagers/LinuxGSM#4387 (comment)

from docker-gameserver.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.