[Support] lnxd - github-backup


Recommended Posts

This may sound stupid, but how do I use this?  I don't see any instructions in the project other than how to get your GitHub token,  which I got.     I start the docker, get into the console and have no idea what to run to make this work.   I went thru the posts hoping I'd see a similar post, but to no avail.   Any guidance on getting started would be appreciated.   Thanks.

Link to comment
  • 1 month later...

it seems this is out of date and doesn't handle permissions inside/outside container gracefully.   At the moment this is a dead end for users who don't fully understand the unraid / docker file permissions rules and an app doesn't work with mainline unraid release without special workarounds.  Community spotlight app should be working out of the box; and not an experience like this.  can we have the spotlight removed if it's such a bad experience?

 

Otherwise this looks quite handy

 

Running chown scripts in cron is definitely **not** the right answer.   Shouldn't this be a user:group mapping fix? 

Link to comment
  • 1 month later...

Hello! I found you docker and would love to have it backing up my repos. Ive generated the Github token with the "repo" box ticked (the first categorys box). But all I get in the logs  is:

"chown /directory/to/my/local/backup/share: Operation not Permitted"

 

Ive tried both:

1 Giving the container "priviliged" permissions

2 Adding PUID=99 / PGID=100 as variables

 

But nothing seems to fix this permission issue. Does anybody know what I am missing? 

Link to comment
  • 2 months later...
On 4/3/2023 at 2:23 PM, Vinywalk3r said:

Hello! I found you docker and would love to have it backing up my repos. Ive generated the Github token with the "repo" box ticked (the first categorys box). But all I get in the logs  is:

"chown /directory/to/my/local/backup/share: Operation not Permitted"

 

Ive tried both:

1 Giving the container "priviliged" permissions

2 Adding PUID=99 / PGID=100 as variables

 

But nothing seems to fix this permission issue. Does anybody know what I am missing? 

I am having the same problem. Please fix this! Not what we expect from a CA Monthly badged repository.

Link to comment
  • 3 weeks later...
  • 3 months later...

I think this is happening because the docker image is running as user id 99, which doesn't actually exist and this non-existent user doesn't have access to chmod so it can't change that directory. This can be fixed by switching to "Advanced View" and putting the following in the "Extra Parameters" field:

--user 65534:65534

Then in the Unraid command line, set matching permissions to your share:

chown -R 65534 /mnt/user/backup/github # Or wherever you're putting the files


I have a suspicion this approach might break with container updates and it will certainly break if/when your permissions get reset, so as an alternative to the above, you can simply put in the "Extra Parameters" field:

--user 0:0

This will run the docker as root which we should all know by now isn't ideal, but it is the default for docker (you probably have others that do this too like mariadb and redis) and this shouldn't be a problem because docker provides isolation between the container and host, but make sure you do not run this as "privileged".

 

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.