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

uncaught Exception: PLease install pg package manually #5

Closed
remyd1 opened this issue Aug 7, 2023 · 5 comments
Closed

uncaught Exception: PLease install pg package manually #5

remyd1 opened this issue Aug 7, 2023 · 5 comments

Comments

@remyd1
Copy link

remyd1 commented Aug 7, 2023

Hi, I am very interested in this project, however, I have an issue at the very beginning of the install. Hedgedoc install using docker-compose is working, but not hedgenext. I deleted every containers and volumes relative to hedgedoc, to start like a fresh install for hedgenext.

Description

Using the docker-compose.yml file, I get the following error:

hedgenext-app-1       | 2023-08-07T13:21:40.110Z error:         uncaughtException: Please install pg package manually
hedgenext-app-1       | Error: Please install pg package manually
hedgenext-app-1       |     at ConnectionManager._loadDialectModule (/hedgedoc/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:88:15)
hedgenext-app-1       |     at new ConnectionManager (/hedgedoc/node_modules/sequelize/lib/dialects/postgres/connection-manager.js:18:24)
hedgenext-app-1       |     at new PostgresDialect (/hedgedoc/node_modules/sequelize/lib/dialects/postgres/index.js:14:30)
hedgenext-app-1       |     at new Sequelize (/hedgedoc/node_modules/sequelize/lib/sequelize.js:334:20)
hedgenext-app-1       |     at Object.<anonymous> (/hedgedoc/lib/models/index.js:25:15)
hedgenext-app-1       |     at Module._compile (node:internal/modules/cjs/loader:1191:14)
hedgenext-app-1       |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
hedgenext-app-1       |     at Module.load (node:internal/modules/cjs/loader:1069:32)
hedgenext-app-1       |     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
hedgenext-app-1       |     at Module.require (node:internal/modules/cjs/loader:1093:19)
hedgenext-app-1       |     at require (node:internal/modules/cjs/helpers:108:18)
hedgenext-app-1       |     at Object.<anonymous> (/hedgedoc/app.js:26:16)
hedgenext-app-1       |     at Module._compile (node:internal/modules/cjs/loader:1191:14)
hedgenext-app-1       |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
hedgenext-app-1       |     at Module.load (node:internal/modules/cjs/loader:1069:32)
hedgenext-app-1       |     at Function.Module._load (node:internal/modules/cjs/loader:904:12)
hedgenext-app-1       |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
hedgenext-app-1       |     at node:internal/main/run_main_module:22:47
hedgenext-app-1 exited with code 0

To Reproduce

Copy the .env file and fill it with your values (I let the gotenberg.dev for PDF, otherwise, everything is complete), then copy the docker-compose.yml file and start it with docker compose up.

Expected behavior

A working docker-compose.

Logs

Already given before.

Your Setup (please complete the following information):

  • Host OS: Debian 12 Bookworm

docker version:

Client: Docker Engine - Community
 Version:           24.0.5
 API version:       1.43
 Go version:        go1.20.6
 Git commit:        ced0996
 Built:             Fri Jul 21 20:35:35 2023
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          24.0.5
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.6
  Git commit:       a61e2b4
  Built:            Fri Jul 21 20:35:35 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.22
  GitCommit:        8165feabfdfe38c65b599c4993d227328c231fca
 runc:
  Version:          1.1.8
  GitCommit:        v1.1.8-0-g82f18fe
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker volume ls:

DRIVER    VOLUME NAME
local     hedgenext_database
local     opt_database
local     opt_uploads

Additional context

I found this issue that might be related...

@libnewton
Copy link
Owner

Thanks for the detailed report, let me know if my latest release fixed your issue

@remyd1
Copy link
Author

remyd1 commented Aug 21, 2023

Hi,

Yes, thank you. Indeed, it works using this new dockerfile; can you publish a new container on dockerhub ?

Thanks,
Best regards,

@libnewton
Copy link
Owner

Glad it works now.
I already published a new version of the image to GHCR. It is replacing Dockerhub:
https://github.com/libnewton/hedgenext-server/pkgs/container/hedgenext-server

@remyd1
Copy link
Author

remyd1 commented Aug 21, 2023

Oh, Ok ! Can you update the docker-compose.yml file ?

@libnewton
Copy link
Owner

Oh good catch, will do

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