First new Rockon Template issues

I’m working on learning the rockon json template format so I can make a few containers of software that doesn’t exist in the list today.

I figured I’d start with Plex as there is already one out there I could use to learn from. I’m using the official docker container from plex but am getting an odd error. The docker logs give me:

s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied

I don’t know what is causing it. I installed the deluge rock-on to make sure it there wasn’t a docker install issue, and it’s running just fine…

Here’s the json file:

{
“plex”: {
“description”: “plex official”,
“ui”: {
“slug”: “web”
},
“website”: “https://www.plex.tv/”,
“icon”: “https://www.plex.tv/favicon.ico”,
“version”: “1.0”,
“volume_add_support”: true,
“containers”: {
“plex”: {
“image”: “plexinc/pms-docker”,
“launch_order”: 1,
“opts”: [
[
“–net”,
“host”
]
],
“uid”: -1,
“ports”: {
“32400”: {
“description”: “main port”,
“host_default”: 32400,
“label”: “main port”,
“protocol”: “tcp”,
“ui”: true
},
“3005”: {
“description”: “controlling Plex Home Theater via Plex Companion”,
“host_default”: 3005,
“label”: “plex companion control port”,
“protocol”: “tcp”,
“ui”: false
},
“8324”: {
“description”: “controlling Plex for Roku via Plex Companion”,
“host_default”: 8324,
“label”: “roku control port”,
“protocol”: “tcp”,
“ui”: false
},
“32469”: {
“description”: “DLNA Server tcp”,
“host_default”: 32469,
“label”: “DLNA Server tcp”,
“protocol”: “tcp”,
“ui”: false
},
“1900”: {
“description”: “DLNA Server udp”,
“host_default”: 1900,
“label”: “DLNA Server udp”,
“protocol”: “udp”,
“ui”: false
},
“32410”: {
“description”: “GDM network discovery 1”,
“host_default”: 32410,
“label”: “GDM network discovery 1”,
“protocol”: “udp”,
“ui”: false
}
,
“32412”: {
“description”: “GDM network discovery 1”,
“host_default”: 32412,
“label”: “GDM network discovery 1”,
“protocol”: “udp”,
“ui”: false
}
,
“32413”: {
“description”: “GDM network discovery 1”,
“host_default”: 32413,
“label”: “GDM network discovery 1”,
“protocol”: “udp”,
“ui”: false
}
,
“32414”: {
“description”: “GDM network discovery 1”,
“host_default”: 32414,
“label”: “GDM network discovery 1”,
“protocol”: “udp”,
“ui”: false
}

  		},
  		"volumes": {
  			"/config": {
  				"description": "plex config",
  				"label": "plex config"
  			},
  			"/transcode": {
  				"description": "transcode temp space",
  				"label": "transcode temp space"
  			},
  			"/data": {
  				"description": "plex media",
  				"label": "plex media"
  			}
  		},
  		"environment": {
  			"PUID": {
  				"description": "Enter a valid UID to run openHAB with. It must have full permissions to all Shares mapped in the previous step.",
  				"label": "UID",
  				"index": 1
  			},
  			"PGID": {
  				"description": "Enter a valid GID to use along with the above UID. It(or the above UID) must have full permissions to all Shares mapped in the previous step.",
  				"label": "GID",
  				"index": 2
  			},
  			"TZ": {
  				"description": "Timezone",
  				"label": "Timezone",
  				"index": 3
  			},
  			"PLEX_CLAIM": {
  				"description": "Plex Claim Token",
  				"label": "Plex Claim Token",
  				"index": 4
  			},
  			"ADVERTISE_IP": {
  				"description": "Enter the host IP address",
  				"label": "Host IP",
  				"index": 5
  			}					
  		}
  	}
  }

}
}

Hi @ebolam,

The permission denied does make me think it is related to a problem with user permissions. Combined with the presence of the "uid": -1 in the JSON, I think there is a conflict there.
Indeed, when "uid": -1 is present in the JSON file, Rockstor sets the user id docker runs the container as the owner of the first volume. Chances are the owner of the shares you selected is root, so in case you have set PUID as a non-root user, the latter doesn’t have permissions to access a folder requiring root privileges.
I’m always a bit confused with regards to users permissions but a quick test might be to try without the “uid” key in the JSON.

Thanks! That did it. Now to start doing some others

1 Like