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

Service terminates (no info)? #3217

Open
jcroy opened this issue May 10, 2024 · 3 comments
Open

Service terminates (no info)? #3217

jcroy opened this issue May 10, 2024 · 3 comments

Comments

@jcroy
Copy link

jcroy commented May 10, 2024

Description
I'm running filebrowser as a service with systemd (on Ubuntu 22). It runs fine, but over the past few days its terminates and I have no insight due to lack of verbosity in logging. Any ideas on determining if its a issue with filebrowser or my host? With no error from filebrowser besides below its making it pretty tricky.

Below is the only log data that indicates an issue from the filebrowser side.

May 09 02:03:57 host filebrowser[329502]: 2024/05/09 02:03:57 Caught signal terminated: shutting down.
May 09 02:03:57 host filebrowser[329502]: 2024/05/09 02:03:57 accept tcp [::]:8080: use of closed network connection
May 09 02:03:57 host systemd[1]: filebrowser.service: Main process exited, code=exited, status=1/FAILURE

This has happen twice now since installing it. I set this up over the weekend.

Here is my config for filebrowser.

{
  "port": 8080,
  "baseURL": "",
  "address": "",
  "log": "stdout",
  "database": "/etc/filebrowser/filebrowser.db",
  "root": "/mnt/hdd/filebrowser/"
}

And the config for the service:

[Unit]
Description=File browser: %I
After=network.target

[Service]
User=www-data
Group=www-data
ExecStart=/usr/local/bin/filebrowser -c /etc/filebrowser/default.json
Restart=on-failure
RestartSec=5s
#StandardOutput=append:/var/log/filebrowser.log
#StandardError=inherit


[Install]
WantedBy=multi-user.target
@jcroy
Copy link
Author

jcroy commented May 10, 2024

Is there an ability to increase verbosity for the logging? I've search the project and have not found any indication that its possible.

@thielj
Copy link

thielj commented May 10, 2024

Couldn't find verbose logging either, but this might be an external cause, ie. something sending the process a SIGTERM.

@jcroy
Copy link
Author

jcroy commented May 15, 2024

Couldn't find verbose logging either, but this might be an external cause, ie. something sending the process a SIGTERM.

Yeah good idea. I started looking for other applications and found that a docker instance of file browser I hadn't terminated correctly was running. Stopped that container and it no termination issues with the service since.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants