Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File browser software not installing. #6529

Closed
lutfor-diu opened this issue Aug 5, 2023 · 10 comments
Closed

File browser software not installing. #6529

lutfor-diu opened this issue Aug 5, 2023 · 10 comments
Labels
External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Milestone

Comments

@lutfor-diu
Copy link

Details:

  • Date | Sat Aug 5 12:29:01 BST 2023
  • Bug report | 8b8d80e6-2ca3-4b3f-bb16-eff5f7058706
  • DietPi version | v8.20.1 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | RPi B (armv6l) (ID=1)
  • Kernel version | Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
  • Distro | bookworm (ID=7,RASPBIAN=1)
  • Command | /opt/filebrowser/filebrowser config init
  • Exit code | 1
  • Software title | DietPi-Software

Steps to reproduce:

  1. ...
  2. ...

Expected behaviour:

  • ...

Actual behaviour:

  • ...

Extra details:

  • ...

Additional logs:

2023/08/05 12:29:01 ./filebrowser.db already exists
@lutfor-diu
Copy link
Author

Reference code: 8b8d80e6-2ca3-4b3f-bb16-eff5f7058706

bug report uploaded

@Joulinar
Copy link
Collaborator

Joulinar commented Aug 5, 2023

was this a new fresh installation? Independent on your issue, there is a challenge with Filebrowser v2.24.1 themselves actually.

@MichaIng
Copy link
Owner

MichaIng commented Aug 5, 2023

Interesting. The error others currently face is on the same step, but with a different error message

flag accessed but not defined: branding.DisableUsedPercentage

Replicated on all platforms here: https://github.com/MichaIng/DietPi/actions/runs/5772908872

Fixed upstream: filebrowser/filebrowser#2596
But a release is still outstanding.

As your error message states that the database file does exist already, while we only run this command when it explicitly does not exist, did you retry that command after you ran into the error with the message above? Quite possible that despite this error, the database file is created, which breaks rerunning the command. This again leads to the question whether we could just ignore the message and continue, or whether some needed mandatory database entries are missing.

@MichaIng MichaIng added External bug 🐞 For bugs which are not caused by DietPi. Waiting for external fix ⏳ labels Aug 5, 2023
@MichaIng MichaIng added this to the v8.21 milestone Aug 5, 2023
@lutfor-diu
Copy link
Author

was this a new fresh installation? Independent on your issue, there is a challenge with Filebrowser v2.24.1 themselves actually.

yes. fresh new installation.

@lutfor-diu
Copy link
Author

Interesting. The error others currently face is on the same step, but with a different error message

flag accessed but not defined: branding.DisableUsedPercentage

Replicated on all platforms here: https://github.com/MichaIng/DietPi/actions/runs/5772908872

Fixed upstream: filebrowser/filebrowser#2596 But a release is still outstanding.

As your error message states that the database file does exist already, while we only run this command when it explicitly does not exist, did you retry that command after you ran into the error with the message above? Quite possible that despite this error, the database file is created, which breaks rerunning the command. This again leads to the question whether we could just ignore the message and continue, or whether some needed mandatory database entries are missing.

when try 2nd time it installs but file browser service failed to start. with error "run exit"

@MichaIng
Copy link
Owner

MichaIng commented Aug 8, 2023

The latest release has this fixed: https://github.com/filebrowser/filebrowser/releases/tag/v2.24.2
Simply reinstall it:

rm /mnt/dietpi_userdata/filebrowser/filebrowser.db
dietpi-software reinstall 198

@lutfor-diu
Copy link
Author

lutfor-diu commented Aug 9, 2023

│ × filebrowser.service - File Browser (DietPi)                                          │
│      Loaded: loaded (/etc/systemd/system/filebrowser.service; enabled; preset:         │
│ enabled)                                                                               │
│      Active: failed (Result: exit-code) since Wed 2023-08-09 01:44:02 BST; 10s ago     │
│    Duration: 190ms                                                                     │
│        Docs: https://filebrowser.org/                                                  │
│     Process: 2708 `ExecStart=/opt/filebrowser/filebrowser` -d                          │
│ /mnt/dietpi_userdata/filebrowser/filebrowser.db (code=exited, status=1/FAILURE)        │
│    Main PID: 2708 (code=exited, status=1/FAILURE)                                      │
│         CPU: 74ms                                                                      │
│                                                                                        │
│ Aug 09 01:44:02 DietPi systemd[1]: Started filebrowser.service - File Browser          │
│ (DietPi).                                                                              │
│ Aug 09 01:44:02 DietPi filebrowser[2708]: 2023/08/09 01:44:02 No config file used      │
│ Aug 09 01:44:02 DietPi filebrowser[2708]: 2023/08/09 01:44:02 the resource does not    │
│ exist                                                                                  │
│ Aug 09 01:44:02 DietPi systemd[1]: filebrowser.service: Main process exited,           │
│ code=exited, status=1/FAILURE                                                          │
│ Aug 09 01:44:02 DietPi systemd[1]: filebrowser.service: Failed with result

@lutfor-diu
Copy link
Author

File browser service fail to start

@Joulinar
Copy link
Collaborator

Joulinar commented Aug 9, 2023

Remove it completely and install File browser afterwards again

@MichaIng
Copy link
Owner

Ah right, init step is otherwise not repeated as the database file has been created already. Minimum step needed before trying the reinstall:

rm /mnt/dietpi_userdata/filebrowser/filebrowser.db

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Solution available 🥂 Definite solution has been done
Projects
None yet
Development

No branches or pull requests

3 participants