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

Application startup failed #407

Open
Lavve opened this issue Jun 17, 2024 · 1 comment
Open

Application startup failed #407

Lavve opened this issue Jun 17, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@Lavve
Copy link

Lavve commented Jun 17, 2024

Describe the bug
Since a few days ago the Spoolman won't start. Checking the logs I, repeatedly, get the error message below. I did no changes to either Spoolman and it's data.
I've added the export PATH=/home/lavve/.local/bin:$PATH to the .bashrc file but still gets the same message in the log file after reboot.
Not sure how to go on from this.

To Reproduce
I have no idea

Expected behavior
A functional integration of Spoolman

Spoolman Host (please complete the following information):

  • Installation type: Via Octoprint
  • Installed version: Since I can't reach the webside I'm not sure, but I guess it's the latest version 0.18.1
  • Database type: SQLite I guess

The error message

Jun 17 18:59:00 octopi bash[31465]: INFO:     Started server process [31465]
Jun 17 18:59:00 octopi bash[31465]: INFO:     Waiting for application startup.
Jun 17 18:59:00 octopi bash[31465]: spoolman.main              INFO     Starting Spoolman v0.18.1 (commit: 306dbe4) (built: None)
Jun 17 18:59:00 octopi bash[31465]: spoolman.main              INFO     Using data directory: /home/lavve/spoolman_data
Jun 17 18:59:00 octopi bash[31465]: spoolman.main              INFO     Using logs directory: /home/lavve/spoolman_data
Jun 17 18:59:00 octopi bash[31465]: spoolman.main              INFO     Using backups directory: /home/lavve/spoolman_data/backups
Jun 17 18:59:00 octopi bash[31465]: spoolman.main              INFO     Setting up database...
Jun 17 18:59:00 octopi bash[31465]: ERROR:    Traceback (most recent call last):
Jun 17 18:59:00 octopi bash[31465]:   File "/home/lavve/Spoolman/.venv/lib/python3.9/site-packages/starlette/routing.py", line 677, in lifespan
Jun 17 18:59:00 octopi bash[31465]:     async with self.lifespan_context(app) as maybe_state:
Jun 17 18:59:00 octopi bash[31465]:   File "/home/lavve/Spoolman/.venv/lib/python3.9/site-packages/starlette/routing.py", line 566, in __aenter__
Jun 17 18:59:00 octopi bash[31465]:     await self._router.startup()
Jun 17 18:59:00 octopi bash[31465]:   File "/home/lavve/Spoolman/.venv/lib/python3.9/site-packages/starlette/routing.py", line 654, in startup
Jun 17 18:59:00 octopi bash[31465]:     await handler()
Jun 17 18:59:00 octopi bash[31465]:   File "/home/lavve/Spoolman/spoolman/main.py", line 134, in startup
Jun 17 18:59:00 octopi bash[31465]:     database.setup_db(database.get_connection_url())
Jun 17 18:59:00 octopi bash[31465]:   File "/home/lavve/Spoolman/spoolman/database/database.py", line 39, in get_connection_url
Jun 17 18:59:00 octopi bash[31465]:     raise ValueError("Cannot specify a database name when using SQLite.")
Jun 17 18:59:00 octopi bash[31465]: ValueError: Cannot specify a database name when using SQLite.
Jun 17 18:59:00 octopi bash[31465]: ERROR:    Application startup failed. Exiting.
Jun 17 18:59:01 octopi systemd[1]: Spoolman.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Jun 17 18:59:01 octopi systemd[1]: Spoolman.service: Failed with result 'exit-code'.
Jun 17 18:59:01 octopi systemd[1]: Spoolman.service: Consumed 2.864s CPU time.
Jun 17 18:59:01 octopi systemd[1]: Spoolman.service: Scheduled restart job, restart counter is at 48.
Jun 17 18:59:01 octopi systemd[1]: Stopped Spoolman.
Jun 17 18:59:01 octopi systemd[1]: Spoolman.service: Consumed 2.864s CPU time.
Jun 17 18:59:01 octopi systemd[1]: Started Spoolman.
Jun 17 18:59:01 octopi bash[31467]: WARNING: /home/lavve/.local/bin is not in PATH, this will make it difficult to run PDM commands. Temporarily adding /home/lavve/.local/bin to PATH...
Jun 17 18:59:01 octopi bash[31467]: To make this permanent, add the following line to your .bashrc or .zshrc file:
Jun 17 18:59:01 octopi bash[31467]: export PATH=/home/lavve/.local/bin:$PATH
Jun 17 18:59:01 octopi bash[31467]: Activating .venv...
Jun 17 18:59:01 octopi bash[31467]: Starting Spoolman...
@Lavve Lavve added the Bug Something isn't working label Jun 17, 2024
@Donkie
Copy link
Owner

Donkie commented Aug 5, 2024

Sorry for the late response.

For some reason the environment variable SPOOLMAN_DB_NAME is set to something, which isn't compatible while using the SQLite database type.

Make sure the SPOOLMAN_DB_NAME line is commented out in your Spoolman's .env file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants