onedrive-d-old
onedrive-d-old copied to clipboard
Error starting onedrive-d or onedrive-pref
When I try to onedrive-d or one-drive-pref i got the following error:
CRITICAL: MainThread: onedrive-d config file does not exist. Exit.
OS: OpenSuse 13.1 with all updates installed. uname -a output: Linux mydesktop 3.11.10-25-desktop #1 SMP PREEMPT Wed Dec 17 17:57:03 UTC 2014 (8210f77) x86_64 x86_64 x86_64 GNU/Linux
Is this bug fixed? getting the same error in Fedora 21
I don't have Fedora 21, but on my Xubuntu and Ubuntu MATE VMs the problem is gone. Considering the cause of that problem, I think it has been solved. Could you check if your onedrive_d/od_pref_cli.py
is the latest?
I have LinuxMint 17.1 and have had a few issues but I can get the CLI prefs working but not the GUI and I get the same CRITICAL message.
GUI not implemented yet.
Sincerely, Xiangyu Bu
Sent from my Windows Phone
From: Andy3252mailto:[email protected] Sent: 3/17/2015 8:03 PM To: xybu/onedrive-dmailto:[email protected] Cc: Xiangyu Bumailto:[email protected] Subject: Re: [onedrive-d] Error starting onedrive-d or onedrive-pref (#134)
I have LinuxMint 17.1 and have had a few issues but I can get the CLI prefs working but not the GUI and I get the same CRITICAL message.
Reply to this email directly or view it on GitHub: https://github.com/xybu/onedrive-d/issues/134#issuecomment-82647792
Yes sorry I have just realised when I read od_pref_gtk.py
anyone solve this problem?
Now its working for me in openSuse. Using commit c255c089f7e986c26d292ff373e0fb5503a43006.
Having same problem. Noticed MainThread: failed to dump config to file "/home/kevin/.onedrive/config_v2.json". during setup
here is the output: kevin@Acer-Netbook:~/Downloads/onedrive-d-future/onedrive_d$ onedrive-pref Loading configuration ... OK [2015-04-16 07:17:15,681] DEBUG: thread_mgr: started. Setting up onedrive-d... (STEP 1/4) Do you want to authorize sign in with your OneDrive account? [Y/n] y
You will need to visit the OneDrive sign-in page in a browser, log in and authorize onedrive-d, and then copy and paste the callback URL, which should start with "https://login.live.com/oauth20_desktop.srf".
The callback URL is the URL where the sign-in page finally goes blank.
Please visit the sign-in URL in your browser:
https://login.live.com/oauth20_authorize.srf?client_id=<SNIP>&scope=wl.skydrive+wl.skydrive_update+wl.offline_access&display=touch&response_type=code&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf&locale=en
Please paste the callback URL: https://login.live.com/oauth20_desktop.srf?code=<SNIP> [2015-04-16 07:18:16,447] WARNING: MainThread: failed to dump config to file "/home/kevin/.onedrive/config_v2.json". onedrive-d has been successfully authorized.
(STEP 2/4) Do you want to specify path to local OneDrive repository? [Y/n] y Please enter the abs path to sync with your OneDrive (default: /home/kevin/OneDrive): /media/kevin/Mondo/onedrive [2015-04-16 07:18:51,065] WARNING: MainThread: failed to dump config to file "/home/kevin/.onedrive/config_v2.json". Path successfully set.
(STEP 3/4) Do you want to change the numeric settings? [Y/n] n Skipped.
(STEP 4/4) Do you want to edit the ignore list file? [Y/n] y Calling your default editor... You have exited from the text editor.
All steps are finished.
Exact same problem with me, Ubunbtu 14.04
Check this out to help with failing to dump config file: https://github.com/xybu/onedrive-d/issues/142
Hi, guys My two cents: I had the same error. The issue was that I needed to run onederive-pref first after installation and select Y for all steps even thought I wanted the defaults. If you click N to any one of the steps you will get all sorts of errors. Hope it helps.
The problem is that it was installed as root, by running:
sudo ./install.sh #WRONG
so the .onedrive folder is owned by root. When you run onedrive-pref, it cannot write the configuration file config_v2.json into the folder because it doesn't have permissions. The installation script should be run as
./install.sh
and it will ask for permissions later. An update in the install.sh could be to ask the user at the beginning of the script if he really wants to install as root.
To fix it after installation I ran
sudo chown -R <username>:<group> ~/.onedrive
where username and group are my local username and group, and then I ran onedrive-pref again.
I'm getting stirls@Stirls-MacBook:~/onedrive-d$ sudo chown -R stirls-stirls /.onedrive chown: invalid user: ‘stirls-stirls’ stirls@Stirls-MacBook:~/onedrive-d$ man groups stirls@Stirls-MacBook:~/onedrive-d$ when i try this what am i doing wrong?
chown from SU to my local user for the .onedrive directory worked fine with me. I ran onedrive-pref right after and didn't get the "failed to dump... .json" error message anymore. I started the daemon with onedrive-d start and it launched like a breeze. Still have to check if my files are being downloaded now, though...!!!
Quick update : my Onedrive files were correctly downloaded locally... Well, a big THANKS to Xybu !! By the way, I'm running Ubuntu 16.04 on an Acer Aspire Z3 8Gb/1Tb.
I ran ./install.sh a second time and i worked.
Try changing the ownership to yourself and using CHMOD 777 for the file <home/xxx/.config> directory. It worked for me.