Cannot update Portainer

  • I have tried to update Portainer via the OMV GUI (Portainer --> Install)


    I get an error and now Portainer is not available anymore.

    Everything worked fine before i tried this


  • Try to remove it first and then install. If that doesn’t work remove Docker and then install it and Portainer.

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    Server Software: OMV 5 (current) - My Main Server: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - My Backup Machine: NanoPi M4 (v.1), Pi-Hole - Odroid XU4 (Using DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user converting to Linux, Debian 10 KDE.

  • Try to remove it first and then install. If that doesn’t work remove Docker and then install it and Portainer.

    I removed Portainer by OMV menu. That did not help. Result is the same.

    If i remove docker, will that not destroy my existing containers and config?




    I always use this for update of Portainer. Never had issues...


    https://documentation.portainer.io/v2.0/upgrade/upddocker/


    I tried this. Did not help:


    Code
    # docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
    latest: Pulling from portainer/portainer-ce
    Digest: sha256:3e499846ae1830e9465de7f110cbf19f4dff076e80abc0f7a1d4b50e67c6b873
    Status: Image is up to date for portainer/portainer-ce:latest
    e30ffec6561eb24200c371fbf966e8f33e0d2851c9eb227b59909439bda39cb9
    docker: Error response from daemon: driver failed programming external connectivity on endpoint portainer (3674732e0dc620075ecca03dcd3bf15c637b32e39a1089ad8a07525fb8a77d78): Error starting userland proxy: listen tcp4 0.0.0.0:8000: bind: address already in use.



    Code
    netstat -pantu | grep 8000
    tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 31979/node
  • Ok i guess i found the cause. It seems that newer Portainer versions need a second port open on 8000.

    I have another application taking that port.

    I am now running portainer API on 8001 and it fired up.


    Works!

  • What version of OMV are you using?

    Simple and sure backup and restore: In a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-SOURCE/ /srv/dev-disk-by-label-DESTINATION/ (HT: Getting Started with OMV5)
    Server Software: OMV 5 (current) - My Main Server: Thinkserver TS140, Nextcloud, Plex, Airsonic, Navidrome, Ubooquity, Digikam, & Heimdall - My Backup Machine: NanoPi M4 (v.1), Pi-Hole - Odroid XU4 (Using DietPi) - Testing/Playing: hc2, xu4, Pi 3B+, Odroid H2. Mac user converting to Linux, Debian 10 KDE.

  • monsen

    Added the Label OMV 5.x
  • Ok solved.


    Somehow i had non default location for the data volume on the host in my old Portainer installation. I reinstalled from commandline giving it the path to the old volume and now all config is there 8)

  • monsen

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!