Keycloak update error #1674

Closed
opened 2025-11-20 05:14:36 -05:00 by saavagebueno · 7 comments
Owner

Originally created by @netbix on GitHub (Aug 10, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Keycloak

📂 What was the exact command used to execute the script?

update from within LXC

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📝 Provide a clear and concise description of the issue.

Updating Keycloakmv: cannot move 'keycloak_conf_backup.tar.gz' to 'keycloak/conf': No such file or directory

[ERROR] in line 50: exit code 0: while executing command mv keycloak_conf_backup.tar.gz keycloak/conf

🔄 Steps to reproduce the issue.

update

Paste the full error output (if available).

__ __                __            __  

/ ///__ __ / / ____ / /
/ ,< / _ / / / / / / __ / __ `/ ///
/ /| / __/ /
/ / /
_/ / /
/ / /
/ / ,<
/
/ |
_/__, /_//_/_,//||
/____/

✔️ Stopped Keycloak
Hit:1 http://deb.debian.org/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org bookworm-security InRelease
Hit:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B]
Fetched 7,507 B in 1s (10.8 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
✔️ Updated packages
✔️ Backup done
✔️ keycloak is already up-to-date (v26.3.2)
Updating Keycloakmv: cannot move 'keycloak_conf_backup.tar.gz' to 'keycloak/conf': No such file or directory

[ERROR] in line 50: exit code 0: while executing command mv keycloak_conf_backup.tar.gz keycloak/conf

root@keycloak:~#

🖼️ Additional context (optional).

No response

Originally created by @netbix on GitHub (Aug 10, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Keycloak ### 📂 What was the exact command used to execute the script? update from within LXC ### ⚙️ What settings are you using? - [ ] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. ⏳ Updating Keycloakmv: cannot move 'keycloak_conf_backup.tar.gz' to 'keycloak/conf': No such file or directory [ERROR] in line 50: exit code 0: while executing command mv keycloak_conf_backup.tar.gz keycloak/conf ### 🔄 Steps to reproduce the issue. update ### ❌ Paste the full error output (if available). __ __ __ __ / //_/__ __ _______/ /___ ____ _/ /__ / ,< / _ \/ / / / ___/ / __ \/ __ `/ //_/ / /| / __/ /_/ / /__/ / /_/ / /_/ / ,< /_/ |_\___/\__, /\___/_/\____/\__,_/_/|_| /____/ ✔️ Stopped Keycloak Hit:1 http://deb.debian.org/debian bookworm InRelease Hit:2 http://deb.debian.org/debian bookworm-updates InRelease Hit:3 http://security.debian.org bookworm-security InRelease Hit:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B] Fetched 7,507 B in 1s (10.8 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ✔️ Updated packages ✔️ Backup done ✔️ keycloak is already up-to-date (v26.3.2) ⏳ Updating Keycloakmv: cannot move 'keycloak_conf_backup.tar.gz' to 'keycloak/conf': No such file or directory [ERROR] in line 50: exit code 0: while executing command mv keycloak_conf_backup.tar.gz keycloak/conf root@keycloak:~# ### 🖼️ Additional context (optional). _No response_
saavagebueno added the bug label 2025-11-20 05:14:36 -05:00
Author
Owner

@MickLesk commented on GitHub (Aug 13, 2025):

@remz1337 can you please check it?

@MickLesk commented on GitHub (Aug 13, 2025): @remz1337 can you please check it?
Author
Owner

@larsassink commented on GitHub (Aug 18, 2025):

I've updated keycloak with the "update" command in the LXC container. Did not give the same error but it basically deleted everything and I have to start over. I have moved the contents from keycloak_conf_backup.tar.gz to the keycloak conf folder but that didn't do anything.

I never noticed until now that I didn't include the LXC in my backup.....

@larsassink commented on GitHub (Aug 18, 2025): I've updated keycloak with the "update" command in the LXC container. Did not give the same error but it basically deleted everything and I have to start over. I have moved the contents from keycloak_conf_backup.tar.gz to the keycloak conf folder but that didn't do anything. I never noticed until now that I didn't include the LXC in my backup.....
Author
Owner

@larsassink commented on GitHub (Aug 18, 2025):

This is what I get when trying to run the "update" command now:

✔️ Stopped Keycloak ✔️ Updated packages ✔️ Backup done ⠸ Fetching GitHub release: keycloak (26.3.2)/dev/fd/63: line 1078: /root/.keycloak: Is a directory ⠧ Fetching GitHub release: keycloak (26.3.2) [ERROR] in line 1078: exit code 0: while executing command echo "$version" > "$version_file"

@larsassink commented on GitHub (Aug 18, 2025): This is what I get when trying to run the "update" command now: ` ✔️ Stopped Keycloak ✔️ Updated packages ✔️ Backup done ⠸ Fetching GitHub release: keycloak (26.3.2)/dev/fd/63: line 1078: /root/.keycloak: Is a directory ⠧ Fetching GitHub release: keycloak (26.3.2) [ERROR] in line 1078: exit code 0: while executing command echo "$version" > "$version_file"`
Author
Owner

@MickLesk commented on GitHub (Aug 18, 2025):

https://github.com/community-scripts/ProxmoxVE/pull/6943

check after merge again

@MickLesk commented on GitHub (Aug 18, 2025): https://github.com/community-scripts/ProxmoxVE/pull/6943 check after merge again
Author
Owner

@netbix commented on GitHub (Aug 19, 2025):

__ __                __            __  

/ ///__ __ / / ____ / /
/ ,< / _ / / / / / / __ / __ `/ ///
/ /| / __/ /
/ / /
_/ / /
/ / /
/ / ,<
/
/ |
_/__, /_//_/_,//||
/____/

✔️ Stopped Keycloak
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Hit:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease
Get:5 http://security.debian.org bookworm-security/main amd64 Packages [274 kB]
Get:6 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B]
Fetched 385 kB in 1s (408 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libxslt1.1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 231 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.debian.org bookworm-security/main amd64 libxslt1.1 amd64 1.1.35-1+deb12u2 [231 kB]
Fetched 231 kB in 0s (3,303 kB/s)
apt-listchanges: Reading changelogs...
(Reading database ... 24657 files and directories currently installed.)
Preparing to unpack .../libxslt1.1_1.1.35-1+deb12u2_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.35-1+deb12u2) over (1.1.35-1+deb12u1) ...
Setting up libxslt1.1:amd64 (1.1.35-1+deb12u2) ...
Processing triggers for libc-bin (2.36-9+deb12u10) ...
✔️ Updated packages
✔️ Backup done
✔️ Deployed: keycloak_app (26.3.2)
✔️ Updated Keycloak LXC
✔️ Restarted Keycloak
✔️ Cleanup complete
✔️ Update Successful
root@keycloak:~#

Perfect!
Thank you so much

Now it updates without errors

@netbix commented on GitHub (Aug 19, 2025): __ __ __ __ / //_/__ __ _______/ /___ ____ _/ /__ / ,< / _ \/ / / / ___/ / __ \/ __ `/ //_/ / /| / __/ /_/ / /__/ / /_/ / /_/ / ,< /_/ |_\___/\__, /\___/_/\____/\__,_/_/|_| /____/ ✔️ Stopped Keycloak Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://security.debian.org bookworm-security InRelease [48.0 kB] Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Hit:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease Get:5 http://security.debian.org bookworm-security/main amd64 Packages [274 kB] Get:6 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B] Fetched 385 kB in 1s (408 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: libxslt1.1 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 231 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://security.debian.org bookworm-security/main amd64 libxslt1.1 amd64 1.1.35-1+deb12u2 [231 kB] Fetched 231 kB in 0s (3,303 kB/s) apt-listchanges: Reading changelogs... (Reading database ... 24657 files and directories currently installed.) Preparing to unpack .../libxslt1.1_1.1.35-1+deb12u2_amd64.deb ... Unpacking libxslt1.1:amd64 (1.1.35-1+deb12u2) over (1.1.35-1+deb12u1) ... Setting up libxslt1.1:amd64 (1.1.35-1+deb12u2) ... Processing triggers for libc-bin (2.36-9+deb12u10) ... ✔️ Updated packages ✔️ Backup done ✔️ Deployed: keycloak_app (26.3.2) ✔️ Updated Keycloak LXC ✔️ Restarted Keycloak ✔️ Cleanup complete ✔️ Update Successful root@keycloak:~# Perfect! Thank you so much Now it updates without errors
Author
Owner

@netbix commented on GitHub (Oct 8, 2025):

I have same problem today !


/ ///__ __ / / ____ / /
/ ,< / _ / / / / / / __ / __ `/ ///
/ /| / __/ /
/ / /
_/ / /
/ / /
/ / ,<
/
/ |
_/__, /_//_/_,//||
/____/

✔️ Stopped Keycloak
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease [107 kB]
Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B]
Get:6 http://security.debian.org bookworm-security/main amd64 Packages [281 kB]
Get:7 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 Packages [399 kB]
Fetched 897 kB in 1s (619 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libio-pty-perl libipc-run-perl postgresql-common-dev
Use 'apt autoremove' to remove them.
The following packages have been kept back:
postgresql-common-dev
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
✔️ Updated packages
✔️ Backup done
✔️ keycloak_app is already up-to-date (v26.4.0)
Updating Keycloakcp: cannot create directory 'keycloak/conf/': No such file or directory

[ERROR] in line 49: exit code 0: while executing command cp -a keycloak.old/conf/. keycloak/conf/

root@keycloak:~#

@netbix commented on GitHub (Oct 8, 2025): I have same problem today ! __ __ __ __ / //_/__ __ _______/ /___ ____ _/ /__ / ,< / _ \/ / / / ___/ / __ \/ __ `/ //_/ / /| / __/ /_/ / /__/ / /_/ / /_/ / ,< /_/ |_\___/\__, /\___/_/\____/\__,_/_/|_| /____/ ✔️ Stopped Keycloak Hit:1 http://deb.debian.org/debian bookworm InRelease Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] Get:3 http://security.debian.org bookworm-security InRelease [48.0 kB] Get:4 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease [107 kB] Get:5 https://packages.adoptium.net/artifactory/deb bookworm InRelease [7,507 B] Get:6 http://security.debian.org bookworm-security/main amd64 Packages [281 kB] Get:7 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 Packages [399 kB] Fetched 897 kB in 1s (619 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: libio-pty-perl libipc-run-perl postgresql-common-dev Use 'apt autoremove' to remove them. The following packages have been kept back: postgresql-common-dev 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. ✔️ Updated packages ✔️ Backup done ✔️ keycloak_app is already up-to-date (v26.4.0) ⏳ Updating Keycloakcp: cannot create directory 'keycloak/conf/': No such file or directory [ERROR] in line 49: exit code 0: while executing command cp -a keycloak.old/conf/. keycloak/conf/ root@keycloak:~#
Author
Owner

@netbix commented on GitHub (Oct 8, 2025):

It seems that the update script works fine if there is a new version to update, if there is not it deletes the folders and fails

@netbix commented on GitHub (Oct 8, 2025): It seems that the update script works fine if there is a new version to update, if there is not it deletes the folders and fails
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1674