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

Portainer containers "object not found" #114

Closed
cthog opened this issue Feb 1, 2021 · 16 comments
Closed

Portainer containers "object not found" #114

cthog opened this issue Feb 1, 2021 · 16 comments

Comments

@cthog
Copy link

cthog commented Feb 1, 2021

I'm trying to edit my Plex container, as I've done in the past, in order to add a new folder to the docker. However, I'm unable to duplicate/edit the image, as portainer keeps telling me "database object not found." Here is the log line from Portainer:
2021/02/01 17:11:45 http error: Unable to proxy the request via the Docker socket (err=Object not found inside the database) (code=500)

Is there an easy fix?

@tom472
Copy link
Owner

tom472 commented Feb 2, 2021

I'll take a look into it - I'm also going to be switching Portainer to the new version/branch soon as well so that might fix it too.
Hang tight - hope to likely make the change this weekend.

@cthog
Copy link
Author

cthog commented Feb 4, 2021

Thanks, man!

@tom472
Copy link
Owner

tom472 commented Feb 14, 2021

Sorry for the delay on this --
As of commit 882f7bd - Portainer has been switched to the Portainer-CE branch.

Not sure if this is going to correct your issue but give it a shot and see what you get.

@tom472
Copy link
Owner

tom472 commented Feb 21, 2021

@cthog -- Have you had a chance to update Mediabox and retest your issue?

@cthog
Copy link
Author

cthog commented Mar 2, 2021

Sorry man, been out of touch for a week or so. You know, Valheim. What's the easiest way to update Mediabox? Just run the .sh again over my existing setup?

@cthog
Copy link
Author

cthog commented Mar 3, 2021

So, I updated mediabox using ./mediabox.sh, and all went well--except for Sonarr. There's a lot of garbage in the logs, but what stood out was "[v2.0.0.5344] System.UnauthorizedAccessException: Access to the path "/config/config.xml" is denied.", and elsewhere it complains about trying to write to a read-only database. Oddly, neither Lidarr nor Radarr have this problem. I googled the first error, and it's apparently solved with a chown -R command, but I'm unsure who I should state as the user?

@Bramblefoot
Copy link

Bramblefoot commented Mar 3, 2021 via email

@cthog
Copy link
Author

cthog commented Mar 3, 2021

Thanks Bill, I'll give that a shot. Another issue (which is actually related to my original problem) is that I can't duplicate or edit containers in portainer. When I try, it doesn't pop up an error like it did originally (object not found), now it just says "deployment in progress" with the little spinny circle, but there's no indication of any progress... ever. Not ideal.

**Just an update, chown -R fixed my Sonarr problem, but portainer (which was the original issue of this thread) still doesn't let me duplicate/edit a container.

@tom472
Copy link
Owner

tom472 commented Mar 3, 2021

So just in general - I am curious as to why you are looking to duplicate or edit containers.
i.e. Are this changes that would be good to be adjusted in project as a whole?

Portainer will not have full access to the stack because it was not 'created' in Portainer.
Under the Stacks List you will see the stack control type will be 'limited'.

Some starter questions:

  • Has this ever worked for you with Mediabox?
  • Are you stopping the container(s) before the edits?
  • What type of edits are you looking to make?

It might be because Portainer is just grabbing what it is seeing via the docker.sock and that it is not really loading/seeing the Mediabox yaml file .. and if that is the case I might be able to pass a parameter to Protainer to see the actual yaml file.

Just kind of thinking out loud here ...

@Bramblefoot
Copy link

Bramblefoot commented Mar 3, 2021 via email

@tom472
Copy link
Owner

tom472 commented Mar 3, 2021

@Bramblefoot -- OK cool thanks for the info
Have you / were you ever making any of the changes via Portainer?
And if yes - was that method successful for you?
And again thanks for the info and the contributions to this issue thread.

--Tom

@cthog
Copy link
Author

cthog commented Mar 4, 2021

Hi Tom, my use case is pretty much Bill's #2. I have a couple drives that I needed bind to the container, and portainer was the easiest way to do it. I would stop the container either duplicate or edit it, and no problems. The reason for my original post was that Portainer stopped letting me do that, with the "object not found" error. With this newer version of portainer, I just get an endless wait for deploying. I've had to resort to finding the .json in /var/lib/docker/containers in order to add the volumes.

@tom472
Copy link
Owner

tom472 commented Mar 4, 2021

Really interesting I tested like three containers tonight -
Changing ports / adding volumes all via Portainer and they all worked fine.
I'm stumped at the hang up you are experiencing.

Also it would likely be a lot easier to edit the docker-compose.yml file directly for additional drives etc. than going into the docker .json file.

I'm looking/hoping to add an additional file browser to the stack and I'm looking for one that has a decent text editor as part of it. Then that way editing the docker-compose.yml file should be even easier.

--Tom

@cthog
Copy link
Author

cthog commented Mar 4, 2021

Ah, well you see, I barely know what I'm doing, lol!

@cthog
Copy link
Author

cthog commented Mar 5, 2021

Just to make things more interesting, I noticed that I had no trouble using Portainer to amend a mount in Sonarr, but had no luck in Radarr. I thought this was interesting, because I had previously had no luck with Sonarr (which wasn't picking up my old settings--until I remember to change the image back to sonarr:preview.) SO, to experiment, when I next tried to duplicate/edit Radarr, I made sure to select radarr:preview, and lo and behold, it worked.) Interestingly, the radarr image didn't specify any version at all. I can't remember if the sonarr version specified a version (i.e. latest or preview), but probably not, which was apparently why portainer wouldn't allow the edit/duplication.

@tom472
Copy link
Owner

tom472 commented Apr 8, 2021

@cthog
Has this issue gotten any better?

@tom472 tom472 closed this as completed Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants