-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
bug: Dropbox service not working on 23.05 #4226
Comments
What do you get running Probably related: NixOS/nixpkgs#235345 (Oops, I see you already posted there!) |
I thought so too. But after commenting on the related issue I did a little digging and I'm not sure it's related anymore. Basically if you set So I tried doing:
What it does, understandably, is download the proprietary package into I tried running
I think it's because of this:
There is no |
@brendanhay Upon closer inspection this might actually be happening with the HM service file as well. I just don't get why the error would be swallowed. Cause I don't see any use of buildFHSEnv anywhere and it's just downloading the .dropbox-dist stuff like I did above. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/using-dropbox-on-nixos-23-05/30488/6 |
I found part of the problem. problemIf i take a look at the bin/dropbox python file ( for _ in range(int(wait_for / interval)):
if is_dropbox_running():
return True
# back off from connect for a while
time.sleep(interval) However, the problem is while dropbox is technically running, it's not ready yet. I added a bunch of def __readline(self):
try:
toret = self.f.readline().rstrip("\n")
except socket.error:
raise DropboxCommand.BadConnectionError()
if toret == '':
raise DropboxCommand.EOFError()
else:
print("INFO toret:", toret)
return toret When I manually start the modified python3 file, $ ./dropbox start -i
# various ...
INFO toret: No client link url available yet!
INFO toret: done
# various ...
Done! We can see that the login url that dropbox is supposed to hand over to a web browser (firefox in my case), is not yet available. (temporary) solutionHowever, if we modify the code and add a line to wait for it to prepare the link, for _ in range(int(wait_for / interval)):
if is_dropbox_running():
time.sleep(5) # <================ THIS RIGHT HERE
return True
# back off from connect for a while
time.sleep(interval) And run the command again, $ ./dropbox start -i
# various ...
INFO toret: link_url https://www.dropbox.com/cli_link_nonce?nonce=<some-nonce-here>
INFO toret: done
# various ...
Done! We can see that the login link is now available. Firefox also automatically opens the link. However, I don't know how to patch this yet using nix/nixpkgs ecosystem. Any help is appreciated. EDIT Nvm I don't think it's relevant. The dropbox service still won't run. |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
NixOS/nixpkgs#277422 fixed this for me, thanks @tomeon! Would be good to get that merged. |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Are you following the right branch?
Is there an existing issue for this?
Issue description
The dropbox service fails to start on NixOS 23.05.
Here's are the logs from journalctl: https://gist.github.com/denibertovic/a84301d4f6e5f4d42dae4c7dfc76649c
It seems to me that something happens on line 327 which I think corresponds to this: https://github.com/nix-community/home-manager/blob/master/modules/services/dropbox.nix#L74
Is anyone else having this issue?
Maintainer CC
@eyJhb
System information
The text was updated successfully, but these errors were encountered: