-
|
I can't seem to get the docker image to start anymore. The lpgs indicare, the issue seems to be caused by line 271 of docker.cjs, but I'm not a js dev and that file seems minified, so I'm not sure specifically what the issue is, and the server doesn't seem to be getting far enough to log more information. I've confirmed that at least version 3.9.1 starts correctly so I'll try to do some more testing to isolate which version it stops starting for me. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
|
Hi @Cwavs , I dont immediately see any reason for this behaviour. It would be interesting to hear which version is the last that you can run so we can try to isolate a change At this point, I suspect the issue to be external to docker (either in your docker compose, nodejs version, or some incompatible data in the mapped volume) If you could provide the exact docker error along with your node version and docker compose I can try to follow up |
Beta Was this translation helpful? Give feedback.
-
|
Hi @cpvalente, thanks for the quick response. I thought it was odd no one else had reported it! I think I've gotten to the crux of the issue. It looks to be some sort of permissions issue. I was actually confused in the original issue. It wasn't version 3.9.1, it was 3.0.0! Further testing revealed that the issue only began in 3.4.0, coincidentally when the switch from external to data happened. So I re-tested on 3.3.3 with the mount set to the external folder and I'm getting a new error (one I can paste now as well)! The weird thing is that this seems to happen regardless of what permissions are actually on the file or folder (I've even tried 777), so I'm a bit lost there. If I remove the mount in question it does seem to let it start on newer versions, which heavily implies that it is something related to that mount. I have no idea what's wrong though. I have had a quick look and I couldn't find any similar issues. Have you seen something like this before? The newer versions produce a longer error which I've uploaded as a text file! |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @Cwavs Can you provide your docker-compose definition? It sounds like you are trying to migrate an old setup. It could be simpler to create a new docker compose based on the current docs and map your volumes and networks to it |
Beta Was this translation helpful? Give feedback.
-
|
No problem! I've not had chance to grab it yet, but I'll send my quadlet your way, I'll try and do that tomorrow (I'm using Podman, but I'm fairly certain it's not the issue, as I've never had any problems specific to it before) I was originally trying to yes, I was moving the container to a new device. However when I started getting issues, the first thing I tried was wiping everything clean and starting again. I remade the quadlet, and pointed the volumes over to a new empty folder. The current quadlet, and the old one were both fairly recent. I think I started using this with the 3.9.x series! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @cpvalente I've uploaded the quadlet as it currently is! It's worth baring in mind this includes changes made for my testing. The original quadlet for example pointed it's mount towards /data and used the latest tag. I've appended .txt to the end of the file so that I could upload it, but it's otherwise untouched. Let me know if you spot any errors on my part (I wouldn't be surprised if I've been missing something blindingly obvious the whole time)! |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Cwavs I dont see anything wrong, but I am not sure what you mean here
Are you saying that the version in this ini file works well? The first thing that I see here is that you are using the docker image v3.3.0 and the old external directory [Container]
ContainerName=ontime
Environment=TZ=Europe/London
Image=docker.io/getontime/ontime:v3.14.0 # <---------
PublishPort=80:4001
PublishPort=8888:8888/udp
PublishPort=9999:9999/udp
Pull=newer
Volume=/home/ontime/ontime:/data/ # <---------
AutoUpdate=registry
[Install]
WantedBy=default.target |
Beta Was this translation helpful? Give feedback.
-
|
Thanks again for the quick response @cpvalente Sorry if I was unclear there, it's a complicated statement to summarise. That version does not work. It's probably easiest to explain from the start so we're on the same page:
Again sorry for the lack of clarity there. I'm aware not only is this issue confusing, but the testing that I've done is too. If you want me to clarify further I am willing too. I've made the modifications you've point out above to the quadlet and I am now getting the same longer error again. In case I've missed a crucial difference here, I've uploaded the journalctl output again. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Cwavs , I apologise for the slow replies. I dont have any many clear leads here to continue here The error seems to be clearly indicating a lack of privilege on an attempted read (as you already know) To me, it remains mysterious as why this would break suddenly as you go through versions, I dont see any changes that would provoke a change of requirements on permission levels Some weak leads:
Sorry this wasnt particularly helpful |
Beta Was this translation helpful? Give feedback.
-
|
No worries. Thanks for trying! You've been very accommodating which I appreciate. Any reason why the node version would be wrong? I would have assumed that would be part of the docker image, if not I guess I'm just using whatever comes with Fedora 41? I'll see if I can update that. Yeah I'm particularly confused as the mount does have... well as open permissions as I can give it, and the podman instance is running as root, so should have full access regardless... I guess I'll give a Docker instance a go as well. |
Beta Was this translation helpful? Give feedback.
-
|
I don't have much knowledge of podman.
|
Beta Was this translation helpful? Give feedback.
-
|
I believe I have found the source of my error now, and I realise why we couldn't diagnose it. It was an external configuration issue. It was selinux. The container was running on Fedora which enables this by default. I guess I must have disabled it when I set up the original machine and forgot. I assumed that the included container policy would have allowed this access, but I'm now wondering if that only provides access to the local users folders (e.g root containers can only access folders in the root home dir, or something like that). Either way I disabled it and ontime started fine! Sorry for all the trouble and thanks for all the help I appreciate it! @cpvalente @jwetzell |
Beta Was this translation helpful? Give feedback.
I believe I have found the source of my error now, and I realise why we couldn't diagnose it. It was an external configuration issue. It was selinux. The container was running on Fedora which enables this by default. I guess I must have disabled it when I set up the original machine and forgot. I assumed that the included container policy would have allowed this access, but I'm now wondering if that only provides access to the local users folders (e.g root containers can only access folders in the root home dir, or something like that). Either way I disabled it and ontime started fine! Sorry for all the trouble and thanks for all the help I appreciate it! @cpvalente @jwetzell