[Check_mk (english)] CMK Upgrade Docker Image - Invalid Symlink

Howdy,

I'm running a test version of CMK Free as a docker image (following https://checkmk.com/cms_introduction_docker.html).

When upgrading from 1.6.0p6 to p7 (https://checkmk.com/cms_managing_docker.html) I get the error when attempting to copy /omd/versions/default into the new container:

# docker cp -L monitoring:/omd/versions/default - | docker cp - monitoring_update:/omd/versions/
Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/omd/versions/1.6.0p6.cre/bin/htpasswd" -> "/usr/bin/htpasswd"

The /usr/bin/htpasswd exists in the new container:

root@03b9a5d0a80b:/# ls -l /omd/versions/*/bin/htpasswd /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/1.6.0p7.cre/bin/htpasswd -> /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/default/bin/htpasswd -> /usr/bin/htpasswd
-rwxr-xr-x. 1 root root 18424 Oct 13 11:43 /usr/bin/htpasswd

Any suggestion on how to get around this?

···

----------------
Mike Hanby
mhanby @ uab.edu
Systems Analyst II - Enterprise
IT Infrastructure Core / Research Computing Services
The University of Alabama at Birmingham

Hallo Mike,
I did some updates in 1.6.0 and I only import the new image and start
the Container with the new image. The whole update starts
automatically during the start. There is no need to copy a file.
1.6.0p7 works on my side.

Kind Regards
Thorsten

···

Am Do., 19. Dez. 2019 um 17:20 Uhr schrieb Hanby, Mike <mhanby@uab.edu>:

Howdy,

I'm running a test version of CMK Free as a docker image (following https://checkmk.com/cms_introduction_docker.html).

When upgrading from 1.6.0p6 to p7 (https://checkmk.com/cms_managing_docker.html) I get the error when attempting to copy /omd/versions/default into the new container:

# docker cp -L monitoring:/omd/versions/default - | docker cp - monitoring_update:/omd/versions/
Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/omd/versions/1.6.0p6.cre/bin/htpasswd" -> "/usr/bin/htpasswd"

The /usr/bin/htpasswd exists in the new container:

root@03b9a5d0a80b:/# ls -l /omd/versions/*/bin/htpasswd /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/1.6.0p7.cre/bin/htpasswd -> /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/default/bin/htpasswd -> /usr/bin/htpasswd
-rwxr-xr-x. 1 root root 18424 Oct 13 11:43 /usr/bin/htpasswd

Any suggestion on how to get around this?
----------------
Mike Hanby
mhanby @ uab.edu
Systems Analyst II - Enterprise
IT Infrastructure Core / Research Computing Services
The University of Alabama at Birmingham

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.

Thanks Thorsten, that did the trick!

···

----------------
Mike Hanby
mhanby @ uab.edu
Systems Analyst II - Enterprise
IT Research Computing Services
The University of Alabama at Birmingham

On Dec 19, 2019, at 12:51, Thorsten Bruhns <thorsten.bruhns@googlemail.com> wrote:

Hallo Mike,
I did some updates in 1.6.0 and I only import the new image and start
the Container with the new image. The whole update starts
automatically during the start. There is no need to copy a file.
1.6.0p7 works on my side.

Kind Regards
Thorsten

Am Do., 19. Dez. 2019 um 17:20 Uhr schrieb Hanby, Mike <mhanby@uab.edu>:

Howdy,

I'm running a test version of CMK Free as a docker image (following https://checkmk.com/cms_introduction_docker.html).

When upgrading from 1.6.0p6 to p7 (https://checkmk.com/cms_managing_docker.html) I get the error when attempting to copy /omd/versions/default into the new container:

# docker cp -L monitoring:/omd/versions/default - | docker cp - monitoring_update:/omd/versions/
Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/omd/versions/1.6.0p6.cre/bin/htpasswd" -> "/usr/bin/htpasswd"

The /usr/bin/htpasswd exists in the new container:

root@03b9a5d0a80b:/# ls -l /omd/versions/*/bin/htpasswd /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/1.6.0p7.cre/bin/htpasswd -> /usr/bin/htpasswd
lrwxrwxrwx. 1 root root 17 Dec 11 03:07 /omd/versions/default/bin/htpasswd -> /usr/bin/htpasswd
-rwxr-xr-x. 1 root root 18424 Oct 13 11:43 /usr/bin/htpasswd

Any suggestion on how to get around this?
----------------
Mike Hanby
mhanby @ uab.edu
Systems Analyst II - Enterprise
IT Infrastructure Core / Research Computing Services
The University of Alabama at Birmingham

_______________________________________________
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
Manage your subscription or unsubscribe
https://lists.mathias-kettner.de/cgi-bin/mailman/listinfo/checkmk-en

The mailing list will be shut down by 31.12.2019. Sign up at the Checkmk Community forum: https://forum.checkmk.com.