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

Manifest v2 #148

Merged
merged 36 commits into from
May 21, 2024
Merged

Manifest v2 #148

merged 36 commits into from
May 21, 2024

Conversation

Salamandar
Copy link
Member

Problem

  • Description of why you made this PR

Solution

  • And how do you fix that problem

PR Status

  • Code finished and ready to be reviewed/tested
  • The fix/enhancement were manually tested (if applicable)

Automatic tests

Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

@Salamandar Salamandar changed the title Testing Manifest v2 Jan 6, 2024
@Salamandar
Copy link
Member Author

!testme

@yunohost-bot
Copy link
Contributor

Alrighty!
Test Badge

zamentur and others added 2 commits April 10, 2024 21:12
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
@zamentur
Copy link
Contributor

!bookwormtestme

@yunohost-bot
Copy link
Contributor

📚
Test Badge

@zamentur
Copy link
Contributor

!bookwormtestme

@yunohost-bot
Copy link
Contributor

📚 🪱
Test Badge

Copy link
Contributor

@fflorent fflorent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, misclicked on approval

Copy link
Contributor

@fflorent fflorent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@Salamandar
Copy link
Member Author

Salamandar commented May 13, 2024

The app as is doesn't seem to work. Here is a log of a failed backup https://paste.yunohost.org/raw/okesisubiz

Found the issue : python3 -m venv --upgrade does not create the activate script (why ???).

Issue is coming from this line https://github.com/python/cpython/blob/76dc1bf5be3b360f7d8c476accb0d8d53c8dfb08/Lib/venv/__init__.py#L77

EDIT: fixed by 178a24b, i just call borg directly in the script instead of using activate.

@Limezy thank you for having accepted to test this branch :) Could you please try to upgrade to the latest commit and check if it’s better ?

@Limezy
Copy link

Limezy commented May 13, 2024

I have upgraded and launched a backup, it takes crazy long, as usual !
I'll give a feedback once done, hopefully

@alexAubin
Copy link
Member

(Smol poke in case you have feedback now)

@Limezy
Copy link

Limezy commented May 14, 2024

Still waiting for my server... as of now my /var/log/borg/xxx.log is empty and /var/log/borg/xxx.err says still waiting...
And the Yunohost-api is locked as if a Yunohost operation was pending

@Limezy
Copy link

Limezy commented May 15, 2024

I have restarted my server, which relaunched a backup.
I think the service should be disabled by default ?

@alexAubin
Copy link
Member

That's a known issue : #92

@Limezy
Copy link

Limezy commented May 15, 2024

So, here is my situation, it looks like a part of my backups worked, a part failed.
content of /var/log/borg/240515_0605.log : https://paste.yunohost.org/raw/holakupapu
output of yunohost log share 20240515-061238-backup_create : https://paste.yunohost.org/raw/afokajutol
content of /var/log/borg/240515_0605.err : https://paste.yunohost.org/raw/wovizigabo
last lines of journalctl for the borg service (but I think nothing interesting) : https://paste.yunohost.org/raw/ekonetohub

I must also mention that I get this weird warning when updating the config panel :
image

@Limezy
Copy link

Limezy commented May 16, 2024

@Salamandar thanks I confirm that the config panel changes are now made without any warnings.
Now launching again a backup.

@Limezy
Copy link

Limezy commented May 16, 2024

@alexAubin, looking at my logs, any clue about what's going wrong with the backup of MinIO and Outline (both apps for which I am / was the packager 😰 maybe I did something wrong ?)

Moreover it says in the doc that "The future default backup method integrated in YunoHost will be based on this software.". Is this very far future ? Would be absolutely awesome to have a nice Yunohost UX layer on top of all these geeky private keys and complex setups... And certainly a real added value of the project.

I decided to take seriously my backup pipeline after the OVH fire back in... March 21. Only tackling it now... Backup is probably a big area where self-hosting need to improve.

@Limezy
Copy link

Limezy commented May 16, 2024

I have discovered that when I launch yunohost app setting borg passphrase it outputs no value.
Whereas yunohost app setting borg repository is working well.
Is that maybe one of the clues of our problem ?

@Salamandar
Copy link
Member Author

@Limezy might be… at least yeah there's a bug in the install script for sure, but not in the upgrade script.

@Limezy
Copy link

Limezy commented May 16, 2024

Ok let me upgrade and try again even though it's probably another issue !

@Limezy
Copy link

Limezy commented May 16, 2024

I have tried to reinstall from scratch, using this branch.
In fact I have the feeling that Borg isn't installed !
Maybe it worked before because I did an upgrade only ?

EDIT: Sorry I found it here : /var/www/borg/venv/bin/borg

@alexAubin
Copy link
Member

Smol poke, is it working now ? 👀

@Limezy
Copy link

Limezy commented May 18, 2024

I have excluded dex and outline and everything is working. But the problem still remains for these two apps. What I'm not clear is whether the problem is at borg_ynh level, these apps backup script level, or Yunohost core level ? The above shared logs remain relevant.
Thanks for your help I'd really like this to be working !

@Limezy
Copy link

Limezy commented May 21, 2024

@alexAubin by chance would you have any hint about what's blocking Dex and Outline from being automatically backed up ?

@alexAubin
Copy link
Member

It's not clear to me what's the corresponding log x_x

@Limezy
Copy link

Limezy commented May 21, 2024

OK, sorry !

Basically, the auto backup + sending to Borgwarehouse repo is working for most of the apps despite throwing a Calling the custom backup method '{method}'...' error.
For two other apps (Dex and Outline), it's completely failing with an additional Moulinette error as per the log https://paste.yunohost.org/raw/wovizigabo

I'm thinking it's probably not a borgwarehouse problem since it's able to perfectly receive some other backups for other apps. Is it a borg_ynh app bug ? A dex_ynh / outline_ynh not well implemented backup script error ? A Yunohost core (moulinette) bug ?

@alexAubin
Copy link
Member

So dex seems to be failing because, i'm guessing, install_dir is not defined, which is weird and inconsistent, I'm not sure how this happened ... You can confirm this with yunohost app setting get dex install_dir (which i guess will be empty) and fix with yunohost app setting set dex install_dir -v /var/www/dex

I'm confused about outline, there's definitely a bug in the core but at the same time i think you're hitting this bug maybe because of unusual mount configuration ? Do you have symlinks / bind mounds maybe in your outline data/install folders or something ?

Anyway these two things are unrelated to borg itself

@Limezy
Copy link

Limezy commented May 21, 2024

Many thanks for your reply. Shall we continue this discussion on the forum ? In the app dev chat ? Meanwhile I'll investigate based on this first feedback.

@Limezy
Copy link

Limezy commented May 21, 2024

@alexAubin I guess the intended command was yunohost app setting dex install_dir instead ?
If yes, the return is /var/www/dex so it doesn't look like the cause of our problem 🫤

@alexAubin
Copy link
Member

Then we need to look at the full log of yunohost backup create --apps dex --debug

@Limezy
Copy link

Limezy commented May 21, 2024

Indeed you are right... I had a stupid source path unknown error. After an update of Dex the command is running. Now retrying a full server backup with Borg_ynh

@alexAubin
Copy link
Member

Soooo if there's no more issues, are we good to go ?

@alexAubin
Copy link
Member

The ljf god gave us his blessing !

@alexAubin alexAubin merged commit c4921d6 into master May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants