Calling a non-existent function (install_adminer) while setting up linkwarden LXC with Adminer #1315

Open
opened 2025-11-20 05:08:07 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @hazemhelmy on GitHub (Jun 21, 2025).

Have you read and understood the above guidelines?

yes

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

linkwarden-install.sh

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

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

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Ubuntu 24.04

📝 Provide a clear and concise description of the issue.

I noticed an issue in the script linkwarden.sh
At line 47 of linkwarden.sh, the function install_adminer is being called: install_adminer

when choosing

Would you like to add Adminer? <y/N> y
0: line 47: install_adminer: command not found

[ERROR] in line 47: exit code 0: while executing command install_adminer

[ERROR] in line 1083: 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)" ?

However, this function does not exist in the sourced tools.func script. Instead, the correct function that should be called is:

setup_adminer

This function is defined in tools.func at line 1435:

setup_adminer() {
...
}
Suggested Fix:
Update line 47 of linkwarden.sh from:

install_adminer
to:

setup_adminer

🔄 Steps to reproduce the issue.

run

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

in proxmox shell
press y when prompted to add Adminer then enter

Paste the full error output (if available).

__    _       __                           __         

/ / ()__ / /___ ______ / / ____
/ / / / __ / //
/ | /| / / __ `/ / __ / _ / __
/ /
/ / / / / ,< | |/ |/ / /
/ / / / /
/ / / / / /
/
___/
/
/ /
/
/|
| |/|/_,// _,/___// /_/

⚙️ Using Default Settings on node pve3
🖥️ Operating System: ubuntu
🌟 Version: 24.04
📦 Container Type: Unprivileged
💾 Disk Size: 12 GB
🧠 CPU Cores: 2
🛠️ RAM Size: 4096 MiB
🆔 Container ID: 187
🚀 Creating a Linkwarden LXC using the above default settings

⠏ Validating Storage
✔️ Using local for Template Storage.
✔️ Using local for Container Storage.
✔️ Cluster is quorate
✔️ LXC Template 'ubuntu-24.04-standard_24.04-2_amd64.tar.zst' is ready to use.
✔️ LXC Container 187 was successfully created.
✔️ Started LXC Container
✔️ Customized LXC Container
✔️ Set up Container OS
✔️ Network Connected: 192.168.1.28
✔️ IPv4 Internet Connected
✖️ IPv6 Internet Not Connected
✔️ GitHub DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ )
✔️ Updated Container OS
✔️ Installed Dependencies
✔️ Setup Node.js 22
✔️ Installed Node.js modules: yarn@latest
✔️ Setup PostgreSQL 16
✔️ PostgreSQL 16 installed
✔️ Setup Rust
✔️ Setup monolith latest
✔️ Setup Rust
✔️ Set up PostgreSQL DB
Would you like to add Adminer? <y/N> y
0: line 47: install_adminer: command not found

[ERROR] in line 47: exit code 0: while executing command install_adminer

[ERROR] in line 1083: 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).

Suggested Fix:
Update line 47 of linkwarden.sh from:

install_adminer
to:

setup_adminer

Originally created by @hazemhelmy on GitHub (Jun 21, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? linkwarden-install.sh ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/linkwarden.sh)" ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Ubuntu 24.04 ### 📝 Provide a clear and concise description of the issue. I noticed an issue in the script [linkwarden.sh](https://github.com/community-scripts/ProxmoxVE/blob/main/ct/linkwarden.sh) At line 47 of linkwarden.sh, the function install_adminer is being called: install_adminer when choosing Would you like to add Adminer? <y/N> y 0: line 47: install_adminer: command not found [ERROR] in line 47: exit code 0: while executing command install_adminer [ERROR] in line 1083: 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)" $? However, this function does not exist in the sourced tools.func script. Instead, the correct function that should be called is: setup_adminer This function is defined in tools.func at line 1435: setup_adminer() { ... } Suggested Fix: Update line 47 of linkwarden.sh from: install_adminer to: setup_adminer ### 🔄 Steps to reproduce the issue. run >bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/linkwarden.sh)" in proxmox shell press y when prompted to add Adminer then enter ### ❌ Paste the full error output (if available). __ _ __ __ / / (_)___ / /___ ______ __________/ /__ ____ / / / / __ \/ //_/ | /| / / __ `/ ___/ __ / _ \/ __ \ / /___/ / / / / ,< | |/ |/ / /_/ / / / /_/ / __/ / / / /_____/_/_/ /_/_/|_| |__/|__/\__,_/_/ \__,_/\___/_/ /_/ ⚙️ Using Default Settings on node pve3 🖥️ Operating System: ubuntu 🌟 Version: 24.04 📦 Container Type: Unprivileged 💾 Disk Size: 12 GB 🧠 CPU Cores: 2 🛠️ RAM Size: 4096 MiB 🆔 Container ID: 187 🚀 Creating a Linkwarden LXC using the above default settings ⠏ Validating Storage ✔️ Using local for Template Storage. ✔️ Using local for Container Storage. ✔️ Cluster is quorate ✔️ LXC Template 'ubuntu-24.04-standard_24.04-2_amd64.tar.zst' is ready to use. ✔️ LXC Container 187 was successfully created. ✔️ Started LXC Container ✔️ Customized LXC Container ✔️ Set up Container OS ✔️ Network Connected: 192.168.1.28 ✔️ IPv4 Internet Connected ✖️ IPv6 Internet Not Connected ✔️ GitHub DNS: github.com:(✔️ ) raw.githubusercontent.com:(✔️ ) api.github.com:(✔️ ) ✔️ Updated Container OS ✔️ Installed Dependencies ✔️ Setup Node.js 22 ✔️ Installed Node.js modules: yarn@latest ✔️ Setup PostgreSQL 16 ✔️ PostgreSQL 16 installed ✔️ Setup Rust ✔️ Setup monolith latest ✔️ Setup Rust ✔️ Set up PostgreSQL DB Would you like to add Adminer? <y/N> y 0: line 47: install_adminer: command not found [ERROR] in line 47: exit code 0: while executing command install_adminer [ERROR] in line 1083: 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). Suggested Fix: Update line 47 of linkwarden.sh from: install_adminer to: setup_adminer
saavagebueno added the bug label 2025-11-20 05:08:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#1315