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

Cannot change ownership to uid 197609, gid 197121: Invalid argument #54

Open
botagas opened this issue Nov 25, 2024 · 3 comments
Open

Comments

@botagas
Copy link

botagas commented Nov 25, 2024

Describe the bug

Install script fails after the unpacking phase. It is unable to set UID/GID with the error: Invalid argument.
This might be only relevant to LXCs.

Context

  • Hardware: LXC in Proxmox. 32GB RAM (nonECC), Ryzen 7 2700, RTX 2060, Asrock X370 Taichi MB.
  • YunoHost version: 12.0.7
  • I have access to my server: SSH, webadmin, keyboard/mouse
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no / yes
    • If yes, please explain:
  • Using, or trying to install package version/branch: 0.8.3.2~ynh2
  • If upgrading, current package version:

Steps to reproduce

  1. Try to install Kavita.
  2. Fail to do so.

Expected behavior

Successful install.

Logs

The log can be found here.

This error is most likely due to the default UID/GID used in Kavita, which is discussed in here. However, that was last year.
Various resources online have suggested a workaround using the arg --no-same-owner, such as here.

To do so, we have to edit the _common.sh file to add an arg to the ynh_setup_source function's tar command. I have tried to edit the _common.sh and install scripts in a separate fork here, which allows the app to successfully install.

@orhtej2
Copy link
Contributor

orhtej2 commented Nov 25, 2024

Perhaps this --no-same-owner trick should go into core 🤔

@botagas
Copy link
Author

botagas commented Nov 25, 2024

Perhaps this --no-same-owner trick should go into core 🤔

The code should be reviewed before it goes into core. This was a quick 30 minute brainstorm, and I am no programmer - I've just seen enough code to be able to understand it, but not write it. I edit a lot, but don't really write anything since I don't got the knowledge for that.

If the edits are good, I am willing to request a pull. However, I am not sure if this fix will be permanent. If helpers were to ever change, it would break the app installation script most likely. That is pure speculation though.

@botagas
Copy link
Author

botagas commented Jan 7, 2025

Update: restore script also doesn't work due to this same issue.

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