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

Installation script crashes while trying to install or use pgcrypto extension #52

Open
franc00018 opened this issue Nov 2, 2024 · 3 comments

Comments

@franc00018
Copy link

franc00018 commented Nov 2, 2024

Describe the bug

Installation script crashes while trying to install or use pgcrypto extension on PostgreSQL database

Context

  • Hardware: VPS bought online
  • YunoHost version: 12.0.6
  • I have access to my server: Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no, it's pretty vanilla with apps installed from the catalog, except this one.
  • Using, or trying to install package version/branch: ci-auto-update-4.0.1

Steps to reproduce

sudo yunohost app install https://github.com/YunoHost-Apps/listmonk_ynh/tree/ci-auto-update-4.0.1 --debug

Expected behavior

I expect the app to install successfully using the command line, as it's possible to do so with version 3.x
This is a new installation on a recently migrated Yunohost 12. This server never had ListMonk installed before migrating to Yunohost 12.

Logs

https://paste.yunohost.org/raw/egovaqocap

@franc00018
Copy link
Author

Same issue now with released script: https://paste.yunohost.org/raw/tosalisine

@franc00018
Copy link
Author

I was able to fix manually doing these steps:

  1. Download the new listmonk executable from GitHub Releases
  2. Backup the existing executable /var/www/listmonk/listmonk to listmonk_backup
  3. Extract the new executable and replace the existing one
  4. Do these steps to fix the PostgreSQL database

In Bash

sudo su -
su postgres
psql

In PostgreSQL

\c listmonk
CREATE EXTENSION pgcrypto;
  1. run ./listmonk --upgrade
  2. Create user on web application form in browser

Then do the upgrade for the Yunohost app (which does nothing but clears it from upgrades).

@colmoneill
Copy link

colmoneill commented Feb 4, 2025

Hi @franc00018

I'm experiencing the same issue. To your knowledge, does the fix you provided still work in Feb 2025? I need to install listmonk on my YNH instance and I'm hitting the same error on install.

My logs: https://paste.yunohost.org/raw/ovakekitec

Thanks and best regards,

Colm

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