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

Server error - Failed to start Lemmy #104

Open
hermann-san opened this issue Sep 21, 2024 · 0 comments
Open

Server error - Failed to start Lemmy #104

hermann-san opened this issue Sep 21, 2024 · 0 comments

Comments

@hermann-san
Copy link


Describe the bug

Starting Lemmy after installation fails.

Context

  • Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / ...
  • YunoHost version: 11.2.30.2 (stable)
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen | ...
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no
  • Using, or trying to install package version/branch:

Steps to reproduce

  1. install Lemmy
  2. Open the Lemmy URL

Expected behavior

A clear and concise description of what you expected to happen. You can remove this section if the command above is enough to understand your intent.

Logs

Browser

Error!
There was a server error. Try reloading the website. If that doesn't work, come back later

YH Admin - Services logs

Sep 22 00:45:14 systemd[1]: lemmy.service: Main process exited, code=exited, status=101/n/a
Sep 22 00:45:14 systemd[1]: lemmy.service: Failed with result 'exit-code'.
Sep 22 00:45:14 systemd[1]: lemmy.service: Scheduled restart job, restart counter is at 5.
Sep 22 00:45:14 systemd[1]: Stopped Lemmy: Link aggregator.
Sep 22 00:45:14 systemd[1]: lemmy.service: Start request repeated too quickly.
Sep 22 00:45:14 systemd[1]: lemmy.service: Failed with result 'exit-code'.
Sep 22 00:45:14 systemd[1]: Failed to start Lemmy: Link aggregator.

thread 'main' panicked at 'Couldn't run DB Migrations: Failed to run 2022-07-07-182650_comment_ltrees with: permission denied to create extension "ltree"', crates/db_schema/src/utils.rs:221:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It looks like there is an issue with Postgres databases that are already installed on the YH server. I currently have Postgres 13 installed and Lemmy doesn't seem to like that according to this issue.
LemmyNet/lemmy#3756
Installing on a YH server that doesn't have already a Postgres server installed is working fine.

I don't know if there is a solution to this available, but if not, it would be good to warn YH users before the installation.

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

1 participant