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

ddb self-update permission error #146

Closed
Toilal opened this issue Dec 30, 2020 · 3 comments
Closed

ddb self-update permission error #146

Toilal opened this issue Dec 30, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@Toilal
Copy link
Contributor

Toilal commented Dec 30, 2020

ddb self-update seems to work only when command is runned with ddb directory (~/.docker-devbox/bin) as the working directory.

$ ddb self-update
A new version is available: 1.4.4
[core:selfupdate] An unexpected error has occured [phase:selfupdate => SelfUpdateAction.execute()]: You don't have permission to write on ddb binary file. (ddb)
@Toilal Toilal added the bug Something isn't working label Jan 5, 2021
@Toilal
Copy link
Contributor Author

Toilal commented Jan 5, 2021

It seems to be solved, as it works with 1.4.4 using --force flag.

@Toilal Toilal closed this as completed Jan 5, 2021
@Toilal
Copy link
Contributor Author

Toilal commented Jan 8, 2021

With 1.4.3

$ ddb -x self-update
A new version is available: 1.4.4
[core:selfupdate] An unexpected error has occured [phase:selfupdate => SelfUpdateAction.execute()]: You don't have permission to write on ddb binary file. (ddb)
Traceback (most recent call last):
  File "ddb/action/runner.py", line 81, in run
  File "ddb/action/runner.py", line 96, in _execute_action

@Toilal Toilal reopened this Feb 9, 2021
@Toilal
Copy link
Contributor Author

Toilal commented Feb 9, 2021

It still occurs in some situations, with a quite recent ddb version. Using fullpath to ddb binary seems to workaround the issue.

dockeruser@ALM-ATOUT-vm:~/projects/ALM-ATOUT$ ddb self-update
[core:selfupdate] An unexpected error has occured [phase:selfupdate => SelfUpdateAction.execute()]: You don't have permission to write on ddb binary file. (ddb)
Traceback (most recent call last):
  File "ddb/action/runner.py", line 81, in run
  File "ddb/action/runner.py", line 96, in _execute_action
  File "ddb/feature/core/actions.py", line 434, in execute
  File "ddb/feature/core/actions.py", line 447, in self_update_binary
PermissionError: You don't have permission to write on ddb binary file. (ddb)
dockeruser@ALM-ATOUT-vm:~/projects/ALM-ATOUT$ ~/.docker-devbox/bin/ddb self-update
A new version is available: 1.9.2
Downloading |████████████████████████████████| 100%
ddb has been updated.

@Toilal Toilal closed this as completed in 4cd8bce Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant