Open ShuaiJunlan opened 6 years ago
Can you double check if you have this file? /home/junlan/.config/onedrived/onedrived_config_v2.json
@derrix060 Don't have this file.
So what is the problem? The file doesn't exist and the framework is logging correctly...
@derrix060 Hi there, I have the same issue. Installed using pip (recommended) and also added ngrok to the PATH, but I get the exact same error if I try to do anything with the daemon. The reason is that I cannot correctly register ngrok backend. I get this:
root@onedrive-integration-test:~# onedrived-pref account add
WARNING:root:Failed to load config file: [Errno 2] No such file or directory: '/root/.config/onedrived/onedrived_config_v2.json'. Use default.
NOTE: To better manage your OneDrive accounts, onedrived needs permission to access your account info (e.g., email address to distinguish different accounts) and read/write your OneDrive files.
Paste this URL into your browser to sign in and authorize onedrived:
https://login.live.com/oauth20_authorize.srf?client_id=000000004010C916&response_type=code&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf&scope=wl.signin+wl.emails+wl.offline_access+onedrive.readwrite
The authentication web page will finish with a blank page whose URL starts with "https://login.live.com/oauth20_desktop.srf". Paste this URL after the prompt.
Paste URL here: https://login.live.com/oauth20_desktop.srf?code=XXXXX&lc=1033
Successfully authorized onedrived.
Failed to save account: No recommended backend was available. Install the keyrings.alt package if you want to use the non-recommended backends. See README.rst for details..
root@onedrive-integration-test:~#
I can confirm that ngrok is part of PATH and I can manually call it from the console:
root@onedrive-integration-test:~# ngrok
NAME:
ngrok - tunnel local ports to public URLs and inspect traffic
DESCRIPTION:
ngrok exposes local networked services behinds NATs and firewalls to the
public internet over a secure tunnel. Share local websites, build/test
webhook consumers and self-host personal services.
Detailed help for each command is available with 'ngrok help <command>'.
Open http://localhost:4040 for ngrok's web interface to inspect traffic.
EXAMPLES:
ngrok http 80 # secure public URL for port 80 web server
ngrok http -subdomain=baz 8080 # port 8080 available at baz.ngrok.io
ngrok http foo.dev:80 # tunnel to host:port instead of localhost
ngrok tcp 22 # tunnel arbitrary TCP traffic to port 22
ngrok tls -hostname=foo.com 443 # TLS traffic for foo.com to port 443
ngrok start foo bar baz # start tunnels from the configuration file
VERSION:
2.2.8
AUTHOR:
inconshreveable - <alan@ngrok.com>
COMMANDS:
authtoken save authtoken to configuration file
credits prints author and licensing information
http start an HTTP tunnel
start start tunnels by name from the configuration file
tcp start a TCP tunnel
tls start a TLS tunnel
update update ngrok to the latest version
version print the version string
help Shows a list of commands or help for one command
root@onedrive-integration-test:~#
Please let me know if there's anything I am doing wrong and thanks for your help.
Fixed it with solution discussed at the end of #37
Fixed it with solution discussed at the end of #37
emanuelstanciu, how did you solve this problem?
@Allexe :( apologies, cannot remember what I did to fix it - I think was just installing a keyring in Ubuntu. However, I gave up on this implementation altogether - it was too buggy