filebrowser - no user created due to new path #473

Closed
opened 2026-02-04 19:07:12 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @D-Hunt3r on GitHub (Feb 10, 2025).

Have you read and understood the above guidelines?

yes

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

File Browser

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

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

📝 Provide a clear and concise description of the issue.

No default user is created during installation. (to reproduce this, you need to delete old db before install it again)

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

Every time when I run the script.

Paste the full error output (if available).

There is no error message during installation. It is suspressed due to "&>/dev/null"

Without "&>/dev/null":

⚠️ FileBrowser is not installed.
Would you like to install FileBrowser? (y/n): y
ℹ️ Installing FileBrowser...
✔️ Installed FileBrowser
ℹ️ Creating FileBrowser directory...
✔️ Directory created successfully
Would you like to use No Authentication? (y/N): N
ℹ️ Setting up default authentication...
2025/02/10 15:24:26 /root/filebrowser.db does not exist. Please run 'filebrowser config init' first.
✔️ Default authentication configured (admin:helper-scripts.com)
ℹ️ Creating service...
✔️ Service created successfully
✔️ FileBrowser is reachable at: http://192.168.178.71:8080

🖼️ Additional context (optional).

To solve this issue I added the db path

msg_info "Setting up default authentication"
filebrowser config init -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null
filebrowser config set -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null
filebrowser users add admin helper-scripts.com --perm.admin --database /var/lib/filebrowser/filebrowser.db &>/dev/null
msg_ok "Default authentication configured (admin:helper-scripts.com)"
Originally created by @D-Hunt3r on GitHub (Feb 10, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? File Browser ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/misc/filebrowser.sh)" ### 📝 Provide a clear and concise description of the issue. No default user is created during installation. (to reproduce this, you need to delete old db before install it again) ### ⚙️ What settings are you using? - [x] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. Every time when I run the script. ### ❌ Paste the full error output (if available). There is no error message during installation. It is suspressed due to "&>/dev/null" Without "&>/dev/null": > ⚠️ FileBrowser is not installed. > Would you like to install FileBrowser? (y/n): y > ℹ️ Installing FileBrowser... > ✔️ Installed FileBrowser > ℹ️ Creating FileBrowser directory... > ✔️ Directory created successfully > Would you like to use No Authentication? (y/N): N > ℹ️ Setting up default authentication... > 2025/02/10 15:24:26 /root/filebrowser.db does not exist. Please run 'filebrowser config init' first. > ✔️ Default authentication configured (admin:helper-scripts.com) > ℹ️ Creating service... > ✔️ Service created successfully > ✔️ FileBrowser is reachable at: http://192.168.178.71:8080 ### 🖼️ Additional context (optional). To solve this issue I added the db path ``` msg_info "Setting up default authentication" filebrowser config init -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null filebrowser config set -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null filebrowser users add admin helper-scripts.com --perm.admin --database /var/lib/filebrowser/filebrowser.db &>/dev/null msg_ok "Default authentication configured (admin:helper-scripts.com)" ```
Author
Owner

@MickLesk commented on GitHub (Feb 10, 2025):

working now

@MickLesk commented on GitHub (Feb 10, 2025): working now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#473