Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't starve together: fresh install failing to create directories and symlinks for config file server.ini #2656

Closed
ewlidd opened this issue Dec 18, 2019 · 3 comments
Labels
Milestone

Comments

@ewlidd
Copy link

ewlidd commented Dec 18, 2019

User Story

Cannot freshly install without errors. It seems to try to place config files directly on / where the non root user im using to install does not have permissions to do so.
./dstserver details also expects config file to be there:
Config file: /Master/server.ini (FILE MISSING)

Basic info

  • Distro: [Ubuntu 18.04]
  • Game: [Don't starve together]
  • Command: [install]
  • LinuxGSM version: [freshly downloaded 18/12/2019]

Further Information

On a fresh install of the server, it appears that it tries to create files on the root / folder receiving permission denied.
it seems a path variable is missing when it tries to create the directory and symlink(s)

To Reproduce

Steps to reproduce the behaviour:

  1. ./linuxgsm.sh dstserver

  2. ./dstserver install

  3. after steam installs the server files (section "Installing Don't Starve Together Server"), it displays the following:

=================================                                                                    
Was the install successful? [Y/n] Y
creating /Master config directory.
mkdir: cannot create directory ‘/Master’: Permission denied

Downloading Don't Starve Together Configs
=================================
default configs from https://github.com/GameServerManagers/Game-Server-Configs
    fetching cluster.ini...OK
    fetching server.ini...OK
copying cluster.ini config file.
copying server.ini config file.
mkdir: cannot create directory ‘/Master’: Permission denied
'/home/dontstarve/lgsm/config-default/config-game/server.ini' -> '/Master/server.ini'
cp: cannot create regular file '/Master/server.ini': No such file or directory
cluster.ini is already configured.
sed: can't read /Master/server.ini: No such file or directory
changing shard name.
sed: can't read /Master/server.ini: No such file or directory
changing master setting.
sed: can't read /Master/server.ini: No such file or directory
  1. ./dstserver details
    Config file: /Master/server.ini (FILE MISSING)

Expected behaviour

fresh installation should work without errors

@issue-label-bot issue-label-bot bot added the type: bug Something isn't working label Dec 18, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.65. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@ewlidd
Copy link
Author

ewlidd commented Dec 18, 2019

think I found it:
https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/config-default/config-lgsm/dstserver/_default.cfg

these two variables are set before clustercfgdir exists. Line 157&158
servercfgdir="${clustercfgdir}/${shard}"
servercfgfullpath="${servercfgdir}/${servercfg}"

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants