Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Can't start container #18

@mariojjsimoes

Description

@mariojjsimoes

Hello, I'm trying to start the container using:

docker run -d \
  --init \
  --net=host \
  --restart=always \
  --name ums \
  -e FOLDER="" \
  -e FORCE_CHOWN="true" \
  -e NETWORK_INTERFACE="" \
  -e LOG_LEVEL="" \
  -e PORT=5001 \
  -e SET_MEDIA_PERMISSIONS="true" \
  -v /media/hdd/ums/UMS.conf:/opt/ums/UMS.conf \
  -v /media/hdd/ums/UMS.cred:/opt/ums/UMS.cred \
  -v /media/hdd/ums/data:/opt/ums/data \
  -v /media/hdd/ums/database:/opt/ums/database \
  -v /media/hdd/600g:/media \
  mbentley/ums

However the container fails to start with the following error:

INFO  01:08:02.518 [entrypoint] FORCE_CHOWN=true; setting ownership on '/opt/ums/UMS.conf' to (500:500)
INFO  01:08:02.535 [entrypoint] FORCE_CHOWN=true; setting ownership on '/opt/ums/UMS.cred' to (500:500)
INFO  01:08:02.547 [entrypoint] FORCE_CHOWN=true; setting ownership on '/opt/ums/data' to (500:500)
INFO  01:08:02.560 [entrypoint] FORCE_CHOWN=true; setting ownership on '/opt/ums/database' to (500:500)
INFO  01:08:02.568 [entrypoint] Removing old FIFOs (if they exist)
INFO  01:08:02.572 [entrypoint] Adding '/opt/ums/linux' to the PATH
INFO  01:08:02.575 [entrypoint] Launching command '/opt/ums/UMS.sh' as user ums
Exception in thread "main" java.lang.ExceptionInInitializerError
	at net.pms.util.FilePermissions.checkPermissions(FilePermissions.java:208)
	at net.pms.util.FilePermissions.getFlags(FilePermissions.java:384)
	at net.pms.util.FileUtil.findInOSPath(FileUtil.java:2358)
	at net.pms.util.FileUtil.findExecutableInOSPath(FileUtil.java:2281)
	at net.pms.platform.linux.LinuxProgramPaths.<init>(LinuxProgramPaths.java:53)
	at net.pms.platform.PlatformProgramPaths.<clinit>(PlatformProgramPaths.java:202)
	at net.pms.configuration.UmsConfiguration.<init>(UmsConfiguration.java:745)
	at net.pms.configuration.UmsConfiguration.<init>(UmsConfiguration.java:696)
	at net.pms.PMS.main(PMS.java:955)
Caused by: com.vdurmont.semver4j.SemverException: The build cannot be empty.
	at com.vdurmont.semver4j.Semver.<init>(Semver.java:100)
	at com.vdurmont.semver4j.Semver.<init>(Semver.java:20)
	at net.pms.platform.PlatformUtils.createOsVersion(PlatformUtils.java:369)
	at net.pms.platform.PlatformUtils.<clinit>(PlatformUtils.java:68)
	... 9 more
INFO  01:08:04.548 [entrypoint] Setting UMS setting 'port' to '5001'
sed: can't move '/opt/ums/UMS.confLhFLNf' to '/opt/ums/UMS.conf': Resource busy

I can see that the UMS.conf and UMS.cred are created (I did not put them there):

drwxrwxrwx 8 root          root           4096 Mar 17 01:05 ..
drwxr-xr-x 2           500           500  4096 Mar 17 00:59 data
drwxr-xr-x 2           500           500  4096 Mar 17 00:59 database
-rw-r--r-- 1           500           500 64741 Mar 17 01:01 UMS.conf
drwxr-xr-x 2           500           500  4096 Mar 17 01:02 UMS.cred

Att a loss at why so any help would be greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions