January 1, 20233 yr 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.
February 8, 20233 yr 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?
April 3, 20233 yr 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?
June 15, 20233 yr 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.
July 9, 20232 yr Same here. Was using this for years with no problems... now "Operation not Permitted" filling the log file. I wonder if it is b/c I turned on 2FA in Github after the token was created. I'm definitely not an expert.
October 23, 20232 yr 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".
September 17, 20241 yr Hi I get following error now. I changed to personal access token within github. It worked for a long time without any issues. cp: can't create '/home/docker/github-backup/config/config.json': File exists Traceback (most recent call last): File "github-backup.py", line 105, in <module> main() File "github-backup.py", line 89, in main user = next(get_json("https://api.github.com/user", token)) File "github-backup.py", line 20, in get_json response.raise_for_status() File "/usr/lib/python3.6/site-packages/requests/models.py", line 960, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/user Project: github-backup Author: lnxd Base: Alpine 3.9 Target: Unraid Does someone know what I'm missing here? Thank you for your help!
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.