Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug]: 7 Days to Die server doesn't start, Permission denied.

未关闭
#4,773 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
bash, docker, linux
领域
cli, devops

调研方向

从第 123 行的 lgsm/modules/command_debug.sh 和 ./7DaysToDieServer.x86_64 入口点开始,然后在所报告的 rootless Docker 设置中使用 ./sdtdserver debug 重现失败。比较该启动过程中涉及的可执行文件和已挂载文件的权限;当服务器在没有退出代码 126 的情况下启动且 ./sdtdserver start 成功时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

command: start distro: Ubuntu engine: unity3d game: 7 Days to Die info: docker type: bug
User story

Trying to install 7 Days to Die server using the vinanrra/7dtd-server image, which relies on lgsm for internal control actions of the server such as starting and stopping it. During install, everything goes smoothly up intill the actual gameserver attempts to start using the ./sdtdserver start command. At which point, the server fails to start with a "Permission Denied" error. Logs below.

Game

7 Days to Die

Linux distro

Other

Command

command: start

Further information

I chose Other for the distro because I'm running docker on Arch. I know, I know, don't run servers on bleeding edge distros. I'm working on that. However, I see no reason why this should be making a difference here. Also, my docker-root directory is a 5TB RAID volume mounted at /mnt/Storage, which I have ensured has correct permissions by running sudo chown -R 1000:1000 /mnt/Storage after the permission denied issue occurred. Docker is set to run in rootless mode.

Since the ./sdtdserver start and the ./sdtdserver debug commands equate to the same thing, but the latter gives details about the starting process, I've pasted logs of the debug command. Every other command that I have tried works perfectly fine, including update, update-lgsm, install, details, monitor, and validate. I'm not certain if any other information is needed, but I'm happy to provide it upon request.

Relevant log output
7 Days To Die Debugging
=================================
Distro:          Ubuntu 24.04.1 LTS
Architecture:    x86_64
Kernel:          6.13.8-zen1-1-zen
Hostname:        5b75e049e17d
tmux:            3.4
Avg Load:        0.42, 0.54, 1.34
Free Memory:     14GB
Free Disk:       4.6T
glibc required: 2.27
Game Server IP: 0.0.0.0:26900
Internet IP:    135.84.8.148:26900
Server password:        NOT SET
Start parameters:
 ./7DaysToDieServer.x86_64 -quit -batchmode -nographics -dedicated -configfile=/home/sdtdserver/serverfiles/sdtdserver.xml
 
Use debug for identifying server issues only!
Press CTRL+c to drop out of debug mode.
Warning! If sdtdserver is already running it will be stopped.
 
Continue? [Y/n] Y
[ INFO ] Debugging sdtdserver: Stopping any running servers
[ SKIP ] Stopping sdtdserver: My Game Host is already stopped
[  OK  ] Debugging sdtdserver: Starting debug
/home/sdtdserver/lgsm/modules/command_debug.sh: line 123: ./7DaysToDieServer.x86_64: Permission denied
[ ERROR ] Debugging sdtdserver: Server has stopped: exit code: 126
[ ERROR ] Debugging sdtdserver: Press ENTER to exit debug mode
Steps to reproduce
  1. Open Dockge in my browser and copy/edit config.yaml for the container.
  2. Click deploy container
  3. Watch everything succeed without so much as a single warning or error up until the ./sdtdserver start command is run in order to actually initiate the server instance within the container.
  4. Cry.
主要语言
Shell
星标
4.9k
派生
870
平均合并
17 小时 33 分钟
30 天内合并 PR
104

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。