Unable to install Netbox LXC #749

Closed
opened 2025-11-20 04:53:18 -05:00 by saavagebueno · 11 comments
Owner

Originally created by @oneil1838 on GitHub (Mar 20, 2025).

Have you read and understood the above guidelines?

yes

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

Netbox

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

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/netbox.sh)"

📝 Provide a clear and concise description of the issue.

Hey,

I tried to install Netbox with the command
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/netbox.sh)"
after I set all settings for the LXC, the install proccess starts, but after the postresql db is installed I recived the following error:
[ERROR] in line 53: exit code 0: while executing command RELEASE=$(curl -s https://api.github.com/repos/netbox-community/netbox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')

I copied the url and tried this url in my browser and I received the following message:
"API rate limit exceeded for MY-IP-ADDRESS. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"

I don't know how so give this script a authentication, but I figured out, that if you could add the follwoing command instead with the "api.github.com" url, it should working but I cant test it, because this information is not pushed to the container, so please update your scripts with this code:
curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }'

Kind regards

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Ubuntu 24.04

🔄 Steps to reproduce the issue.

see description ;)

Paste the full error output (if available).

API rate limit exceeded for MY-IP-ADDRESS. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

🖼️ Additional context (optional).

change code from
curl -s https://api.github.com/repos/netbox-community/netbox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }'
to
curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }'

Originally created by @oneil1838 on GitHub (Mar 20, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Netbox ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/netbox.sh)" ### 📝 Provide a clear and concise description of the issue. Hey, I tried to install Netbox with the command `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/netbox.sh)"` after I set all settings for the LXC, the install proccess starts, but after the postresql db is installed I recived the following error: `[ERROR] in line 53: exit code 0: while executing command RELEASE=$(curl -s https://api.github.com/repos/netbox-community/netbox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')` I copied the url and tried this url in my browser and I received the following message: "API rate limit exceeded for _MY-IP-ADDRESS_. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)" I don't know how so give this script a authentication, but I figured out, that if you could add the follwoing command instead with the "api.github.com" url, it should working but I cant test it, because this information is not pushed to the container, so please update your scripts with this code: `curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }'` Kind regards ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Ubuntu 24.04 ### 🔄 Steps to reproduce the issue. see description ;) ### ❌ Paste the full error output (if available). API rate limit exceeded for _MY-IP-ADDRESS_. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) ### 🖼️ Additional context (optional). change code from `curl -s https://api.github.com/repos/netbox-community/netbox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }'` to `curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }'`
saavagebueno added the not a script issue label 2025-11-20 04:53:18 -05:00
Author
Owner

@MickLesk commented on GitHub (Mar 20, 2025):

Only support for Default OS/Version.

Your GitHub API Limit is reached. Its not an Script issue.

Maybe we can change the Version crawling Sometimes to our Default.

@MickLesk commented on GitHub (Mar 20, 2025): Only support for Default OS/Version. Your GitHub API Limit is reached. Its not an Script issue. Maybe we can change the Version crawling Sometimes to our Default.
Author
Owner

@oneil1838 commented on GitHub (Mar 20, 2025):

I'm not a "hardcore git user", I use git max once or twice a month and I didn't ever used the Github API, I don't know how it works, but if the script will be modified this way I (and also other user) aren't able to run in this error

and also, why can I choose the ubuntu OS, when it's not supported?

@oneil1838 commented on GitHub (Mar 20, 2025): I'm not a "hardcore git user", I use git max once or twice a month and I didn't ever used the Github API, I don't know how it works, but if the script will be modified this way I (and also other user) aren't able to run in this error and also, why can I choose the ubuntu OS, when it's not supported?
Author
Owner

@MickLesk commented on GitHub (Mar 20, 2025):

Do you read the Dialogue of Issue Creation or in Advanced Settings? It's clearly stated there.

Why do all people always have to argue? It is written several times that the general script support is only carried out for the standard OS. Everything else is try/catch.

By the way in the Last 10 installs of netbox 8 are sucessfully

@MickLesk commented on GitHub (Mar 20, 2025): Do you read the Dialogue of Issue Creation or in Advanced Settings? It's clearly stated there. Why do all people always have to argue? It is written several times that the general script support is only carried out for the standard OS. Everything else is try/catch. By the way in the Last 10 installs of netbox 8 are sucessfully
Author
Owner

@tremor021 commented on GitHub (Mar 20, 2025):

Image
@oneil1838 that curl isnt right either

@tremor021 commented on GitHub (Mar 20, 2025): ![Image](https://github.com/user-attachments/assets/63c7cb34-8775-4b0b-b840-0836d9118967) @oneil1838 that curl isnt right either
Author
Owner

@oneil1838 commented on GitHub (Mar 20, 2025):

Image

curl works fine, the tag "4.2.5" is there... try it in a variable:
TEST=$(curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }')
echo ${TEST}

@oneil1838 commented on GitHub (Mar 20, 2025): > ![Image](https://github.com/user-attachments/assets/63c7cb34-8775-4b0b-b840-0836d9118967) curl works fine, the tag "4.2.5" is there... try it in a variable: `TEST=$(curl https://github.com/netbox-community/netbox/tags | grep -m 1 /netbox-community/netbox/releases/tag/ | awk '{print substr($5, 46, length($5)-46) }')` `echo ${TEST}`
Author
Owner

@oneil1838 commented on GitHub (Mar 20, 2025):

Do you read the Dialogue of Issue Creation or in Advanced Settings? It's clearly stated there.

Why do all people always have to argue? It is written several times that the general script support is only carried out for the standard OS. Everything else is try/catch.

By the way in the Last 10 installs of netbox 8 are sucessfully

Ok, but why is there still the possibility to choose a "custom" OS? If you bind the users choice only to the version of the "default" OS, it should be enough. Remove the "ubuntu" tag and a source of error is eliminated

@oneil1838 commented on GitHub (Mar 20, 2025): > Do you read the Dialogue of Issue Creation or in Advanced Settings? It's clearly stated there. > > Why do all people always have to argue? It is written several times that the general script support is only carried out for the standard OS. Everything else is try/catch. > > By the way in the Last 10 installs of netbox 8 are sucessfully Ok, but why is there still the possibility to choose a "custom" OS? If you bind the users choice only to the version of the "default" OS, it should be enough. Remove the "ubuntu" tag and a source of error is eliminated
Author
Owner

@MickLesk commented on GitHub (Mar 20, 2025):

No. Because the most Scripts can both. Some not. We already know what we're doing. And that has been the case for the last few years.

@MickLesk commented on GitHub (Mar 20, 2025): No. Because the most Scripts can both. Some not. We already know what we're doing. And that has been the case for the last few years.
Author
Owner

@tremor021 commented on GitHub (Mar 20, 2025):

Image
Also, website clearly states what OS to use

@tremor021 commented on GitHub (Mar 20, 2025): ![Image](https://github.com/user-attachments/assets/e849ed74-a35f-48e4-a05e-ac2e977bde22) Also, website clearly states what OS to use
Author
Owner

@oneil1838 commented on GitHub (Mar 20, 2025):

Image Also, website clearly states what OS to use

There is only the information about the default settings, not that custom settings will not work.

@oneil1838 commented on GitHub (Mar 20, 2025): > ![Image](https://github.com/user-attachments/assets/e849ed74-a35f-48e4-a05e-ac2e977bde22) Also, website clearly states what OS to use There is only the information about the default settings, not that custom settings will not work.
Author
Owner

@MickLesk commented on GitHub (Mar 20, 2025):

There is only the information about the default settings, not that custom settings will not work.

Image

Image

@MickLesk commented on GitHub (Mar 20, 2025): > There is only the information about the default settings, not that custom settings will not work. ![Image](https://github.com/user-attachments/assets/5eebf9fd-fdf6-494e-afa1-7d54ab24022e) ![Image](https://github.com/user-attachments/assets/acf7b7cb-9823-4e8d-82c6-23db9f9dbe0a)
Author
Owner

@MickLesk commented on GitHub (Mar 20, 2025):

by the way, script runs fine. tested on 2 nodes with default os - just an ubuntu thing

Image

@MickLesk commented on GitHub (Mar 20, 2025): by the way, script runs fine. tested on 2 nodes with default os - just an ubuntu thing ![Image](https://github.com/user-attachments/assets/d5c3040b-d6cc-4ca2-a016-3351d3636477)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#749