Uptime Kuma: Error when executing installation script #1366

Closed
opened 2025-11-20 05:08:56 -05:00 by saavagebueno · 10 comments
Owner

Originally created by @NORiiS on GitHub (Jun 27, 2025).

Have you read and understood the above guidelines?

yes

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

Uptime Kuma

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

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/uptimekuma.sh)"

⚙️ 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.

Hello,
first of all thank you for providing so many useful and easy to use enhancements! I already installed a few of time successfully.

However when I go in to my proxmox VE Shell to instsall Uptime Kuma I run into an error:

🔄 Steps to reproduce the issue.

Step 1: Go into proxmox Shell
Step 2: Paste the Script and press Enter
Step 3: Either Default Settings or Default Settings (with verbose). It fails in both cases

Paste the full error output (if available).

mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma'

[ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma

[ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"var_install".sh)" ?

🖼️ Additional context (optional).

It worked for a couple of other helper scripts, this was the first one that threw an error.

Originally created by @NORiiS on GitHub (Jun 27, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Uptime Kuma ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/uptimekuma.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📝 Provide a clear and concise description of the issue. Hello, first of all thank you for providing so many useful and easy to use enhancements! I already installed a few of time successfully. However when I go in to my proxmox VE Shell to instsall Uptime Kuma I run into an error: ### 🔄 Steps to reproduce the issue. Step 1: Go into proxmox Shell Step 2: Paste the Script and press Enter Step 3: Either Default Settings or Default Settings (with verbose). It fails in both cases ### ❌ Paste the full error output (if available). mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma' [ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma [ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $? ### 🖼️ Additional context (optional). It worked for a couple of other helper scripts, this was the first one that threw an error.
saavagebueno added the bug label 2025-11-20 05:08:56 -05:00
Author
Owner

@MickLesk commented on GitHub (Jun 27, 2025):

Cant reproduce. Its an Git Clone and it Work fine.

@MickLesk commented on GitHub (Jun 27, 2025): Cant reproduce. Its an Git Clone and it Work fine.
Author
Owner

@castanea-dentata commented on GitHub (Jun 27, 2025):

I also have this same exact error as well.

mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma'

[ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma

[ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"var_install".sh)" ?

@castanea-dentata commented on GitHub (Jun 27, 2025): I also have this same exact error as well. mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma' [ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma [ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
Author
Owner

@MickLesk commented on GitHub (Jun 27, 2025):

Then Run in verbose

@MickLesk commented on GitHub (Jun 27, 2025): Then Run in verbose
Author
Owner

@castanea-dentata commented on GitHub (Jun 27, 2025):

That error is from running in verbose. No other errors are shown.

@castanea-dentata commented on GitHub (Jun 27, 2025): That error is from running in verbose. No other errors are shown.
Author
Owner

@MickLesk commented on GitHub (Jun 27, 2025):

And the Git Output?

@MickLesk commented on GitHub (Jun 27, 2025): And the Git Output?
Author
Owner

@castanea-dentata commented on GitHub (Jun 27, 2025):

Installing Uptime KumaCloning into 'uptime-kuma'...
remote: Enumerating objects: 34871, done.
remote: Counting objects: 100% (36/36), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 34871 (delta 20), reused 4 (delta 4), pack-reused 34835 (from 3)
Receiving objects: 100% (34871/34871), 28.13 MiB | 18.07 MiB/s, done.
Resolving deltas: 100% (26430/26430), done.
mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma'

[ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma

[ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"var_install".sh)" ?

@castanea-dentata commented on GitHub (Jun 27, 2025): Installing Uptime KumaCloning into 'uptime-kuma'... remote: Enumerating objects: 34871, done. remote: Counting objects: 100% (36/36), done. remote: Compressing objects: 100% (32/32), done. remote: Total 34871 (delta 20), reused 4 (delta 4), pack-reused 34835 (from 3) Receiving objects: 100% (34871/34871), 28.13 MiB | 18.07 MiB/s, done. Resolving deltas: 100% (26430/26430), done. mv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma' [ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma [ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
Author
Owner

@castanea-dentata commented on GitHub (Jun 27, 2025):

If I make a Debian LXC on proxmox, then git clone UptimeKuma repository and then install via npm, it works fine.

@castanea-dentata commented on GitHub (Jun 27, 2025): If I make a Debian LXC on proxmox, then git clone UptimeKuma repository and then install via npm, it works fine.
Author
Owner

@MickLesk commented on GitHub (Jun 27, 2025):

I take a Look at monday again, my Install work

@MickLesk commented on GitHub (Jun 27, 2025): I take a Look at monday again, my Install work
Author
Owner

@lucacome commented on GitHub (Jun 27, 2025):

I'm seeing the same error

  ⠙   Installing Uptime Kumamv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma'
  ⠹   Installing Uptime Kuma
[ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma

[ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
@lucacome commented on GitHub (Jun 27, 2025): I'm seeing the same error ``` ⠙ Installing Uptime Kumamv: cannot move 'uptime-kuma' to a subdirectory of itself, '/opt/uptime-kuma/uptime-kuma' ⠹ Installing Uptime Kuma [ERROR] in line 25: exit code 0: while executing command mv uptime-kuma /opt/uptime-kuma [ERROR] in line 1088: exit code 0: while executing command lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $? ```
Author
Owner

@MickLesk commented on GitHub (Jun 28, 2025):

Yeah thats the perfect hint. So i get it. Fixed

@MickLesk commented on GitHub (Jun 28, 2025): Yeah thats the perfect hint. So i get it. Fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1366