10
310
Fork
You've already forked codeberg-cli
33

Failed to Save Token. Permission denied (os error 13) #263

Closed
opened 2025年11月26日 08:47:19 +01:00 by CozyCabinGames · 2 comments

I've been using the CodeBerge cli on a few devices and it's worked well so far.
However, on one regular device, I started getting this error message when trying to login.

Authentication success! 
Failed to save token
Caused by:
Permission denied (os error 13)

This is happens with the berg auth login command.

This replicates after uninstalling and reinstalling with brew as well.

I'm using ubuntu 24.04.3 LTS

Let me know if there's anything else I should try.
Any help is appreciated. Thank you!

I've been using the CodeBerge cli on a few devices and it's worked well so far. However, on one regular device, I started getting this error message when trying to login. ``` Authentication success! Failed to save token Caused by: Permission denied (os error 13) ``` This is happens with the `berg auth login` command. This replicates after uninstalling and reinstalling with brew as well. I'm using ubuntu 24.04.3 LTS Let me know if there's anything else I should try. Any help is appreciated. Thank you!

This issued was fixed by finding the token file the login.rs tries to access and changing the file read/write permissions.

Really not sure how this was changed but it seems to work fine now.

This issued was fixed by finding the token file the login.rs tries to access and changing the file read/write permissions. Really not sure how this was changed but it seems to work fine now.

Also, for future reference, the fix is doing chmod -R 0777 berg-cli on the berg-cli folder.

Also, for future reference, the fix is doing `chmod -R 0777 berg-cli` on the berg-cli folder.
Sign in to join this conversation.
No Branch/Tag specified
main
v0.5.1
v0.5.0
v0.4.11
v0.4.10
v0.4.9
v0.4.8
v0.4.7
v0.4.6
v0.4.5
v0.4.4
v0.4.3
v0.4.1
v0.4.2
v0.4.0
v0.3.5
v0.3.4
v0.3.2
v0.3.1
v0.3.0
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aviac/codeberg-cli#263
Reference in a new issue
Aviac/codeberg-cli
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?