YunoHost-Apps / ihatemoney_ynh

Ihatemoney package for YunoHost
Other
9 stars 6 forks source link

Borg backup sometimes stops app ? #55

Open pagiraud opened 1 year ago

pagiraud commented 1 year ago

Hi,

Describe the bug

When I want to go to the app, may it be by clicking the tile or entering the URL, I’m redirected to the Yunohost home page (with all the tiles).

Context

Steps to reproduce

  1. Install the app
  2. Try to open the app

Expected behavior

I expect to see the app home page.

JocelynDelalande commented 1 year ago

Is it installed on a subpath (which ?) or at domain root ?

Le 14 juin 2023 23:30:06 GMT+02:00, Melchisedech @.***> a écrit :

Hi,

Describe the bug

When I want to go to the app, may it be by clicking the tile or entering the URL, I’m redirected to the Yunohost home page (with all the tiles).

Context

  • Hardware: Raspberry Pi at home with VPN
  • YunoHost version: 11.1.21.4
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  1. Install the app
  2. Try to open the app

Expected behavior

I expect to see the app home page.

-- Reply to this email directly or view it on GitHub: https://github.com/YunoHost-Apps/ihatemoney_ynh/issues/55 You are receiving this because you are subscribed to this thread.

Message ID: @.***> -- Jocelyn

pagiraud commented 1 year ago

It’s installed on the default subpath. It’s of the form https://main.domain.tld/ihatemoney

Salamandar commented 1 year ago

Could you please go in the yunohost web admin and send the logs of the ihatemoney service ?

pagiraud commented 1 year ago

Ok… I went to the service page, saw that the service had failed, restarted it… and now it seems to work well. Sorry for your time, and thank you for your help…

Salamandar commented 1 year ago

That's actually interesting. We may need to fix something in the install script. There is some database initialization stuff that we need before starting the service and we may not be doing things perfectly.

pagiraud commented 1 year ago

I see. So here are the full logs of the app.

-- Journal begins at Tue 2022-11-08 19:39:40 CET, ends at Sun 2023-06-18 23:51:07 CEST. --
juin 12 02:15:39 systemd[1]: Started I hate money.
juin 12 02:15:39 gunicorn[1405016]: [2023-06-12 02:15:39 +0200] [1405016] [INFO] Starting gunicorn 20.1.0
juin 12 02:15:39 gunicorn[1405016]: [2023-06-12 02:15:39 +0200] [1405016] [INFO] Listening at: unix:/tmp/budget.gunicorn_ihatemoney.sock (1405016)
juin 12 02:15:39 gunicorn[1405016]: [2023-06-12 02:15:39 +0200] [1405016] [INFO] Using worker: sync
juin 12 02:15:39 gunicorn[1405022]: [2023-06-12 02:15:39 +0200] [1405022] [INFO] Booting worker with pid: 1405022
juin 12 02:15:39 gunicorn[1405024]: [2023-06-12 02:15:39 +0200] [1405024] [INFO] Booting worker with pid: 1405024
juin 12 02:15:39 gunicorn[1405025]: [2023-06-12 02:15:39 +0200] [1405025] [INFO] Booting worker with pid: 1405025
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade  -> b9a10d5d63ce, Initial migration
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade b9a10d5d63ce -> 26d6a218c329, Add Person.weight column
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade 26d6a218c329 -> f629c8ef4ab0, Initialize all members weights to 1
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade f629c8ef4ab0 -> b78f8a8bdb16, hash project passwords
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade b78f8a8bdb16 -> afbf27e6ef20, add bill.import_date field
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade afbf27e6ef20 -> a67119aa3ee5, Migrate negative weights
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade a67119aa3ee5 -> 6c6fb2b7f229, empty message
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade 6c6fb2b7f229 -> 2dcb0c0048dc, autologger
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade 2dcb0c0048dc -> cb038f79982e, sqlite_autoincrement
juin 12 02:15:40 gunicorn[1405022]: INFO  [alembic.runtime.migration] Running upgrade cb038f79982e -> 927ed575acbd, Add currencies
juin 12 02:15:40 gunicorn[1405024]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 12 02:15:40 gunicorn[1405024]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
juin 12 02:15:40 gunicorn[1405025]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 12 02:15:40 gunicorn[1405025]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
juin 12 21:28:04 systemd[1]: Stopping I hate money...
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [INFO] Handling signal: term
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405024 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405025 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405022 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [INFO] Shutting down: Master
juin 12 21:28:04 systemd[1]: ihatemoney.service: Succeeded.
juin 12 21:28:04 systemd[1]: Stopped I hate money.
juin 12 21:28:04 systemd[1]: ihatemoney.service: Consumed 18.543s CPU time.
juin 18 18:58:03 systemd[1]: Started I hate money.
juin 18 18:58:03 gunicorn[2265020]: [2023-06-18 18:58:03 +0200] [2265020] [INFO] Starting gunicorn 20.1.0
juin 18 18:58:03 gunicorn[2265020]: [2023-06-18 18:58:03 +0200] [2265020] [INFO] Listening at: unix:/tmp/budget.gunicorn_ihatemoney.sock (2265020)
juin 18 18:58:03 gunicorn[2265020]: [2023-06-18 18:58:03 +0200] [2265020] [INFO] Using worker: sync
juin 18 18:58:03 gunicorn[2265056]: [2023-06-18 18:58:03 +0200] [2265056] [INFO] Booting worker with pid: 2265056
juin 18 18:58:04 gunicorn[2265063]: [2023-06-18 18:58:04 +0200] [2265063] [INFO] Booting worker with pid: 2265063
juin 18 18:58:04 gunicorn[2265067]: [2023-06-18 18:58:04 +0200] [2265067] [INFO] Booting worker with pid: 2265067
juin 18 18:58:04 gunicorn[2265063]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 18 18:58:04 gunicorn[2265063]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
juin 18 18:58:05 gunicorn[2265056]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 18 18:58:05 gunicorn[2265056]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
juin 18 18:58:05 gunicorn[2265067]: INFO  [alembic.runtime.migration] Context impl MySQLImpl.
juin 18 18:58:05 gunicorn[2265067]: INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
Salamandar commented 1 year ago

It looks like ihatemoney was up when you installed it (at 02:15) but was shut down at 21:28.

juin 12 21:28:04 systemd[1]: Stopping I hate money...
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [INFO] Handling signal: term
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405024 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405025 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [WARNING] Worker with pid 1405022 was terminated due to signal 15
juin 12 21:28:04 gunicorn[1405016]: [2023-06-12 21:28:04 +0200] [1405016] [INFO] Shutting down: Master
juin 12 21:28:04 systemd[1]: ihatemoney.service: Succeeded.
juin 12 21:28:04 systemd[1]: Stopped I hate money.
juin 12 21:28:04 systemd[1]: ihatemoney.service: Consumed 18.543s CPU time.

Do you have borg backup installed ? I have the same issue at home when ihatemoney sometimes is gracefully stopped but i can’t understand why.

pagiraud commented 1 year ago

Do you have borg backup installed ?

Indeed… So maybe this issue should remain open but with another name.