onedrived-dev icon indicating copy to clipboard operation
onedrived-dev copied to clipboard

ngrok ... error, too many arguments

Open pploume opened this issue 7 years ago • 5 comments

Hi,

I've just installed onedrived and ngrok (feb, 11 2018). When "onedrived start --debug" i get the following error : "MainThread: ngrok process (pid 26162) terminated early with return code 1. Command: "ngrok http 37441 -bind-tls=true --config /home/pploume/.config/onedrived/ngrok_conf.yaml"

When running the just above command, i get : "ngrok http 37441 -bind-tls=true --config /home/pploume/.config/onedrived/ngrok_conf.yaml You may only specify one port to tunnel to on the command line, got 5: [http 37441 -bind-tls=true --config /home/pierre/.config/onedrived/ngrok_conf.yaml]"

Any suggestion ?

thks

pploume avatar Feb 11 '18 16:02 pploume

Your ngrok_conf (/home/pploume/.config/onedrived/ngrok_conf.yaml) is badly formatted. Can you paste it here?

Mine is:

console_ui: false
inspect_db_size: -1

derrix060 avatar Mar 17 '18 04:03 derrix060

I have the same issue when i started daemon

pierrepinon avatar Mar 21 '18 18:03 pierrepinon

ubuntu@Perfect:~$ onedrived start --debug Starting onedrived ... OK [2018-07-01 07:16:23,030] DEBUG: MainThread: Starting new HTTPS connection (1): api.onedrive.com [2018-07-01 07:16:23,575] DEBUG: MainThread: https://api.onedrive.com:443 "GET /v1.0/drives HTTP/1.1" 200 379 [2018-07-01 07:16:23,583] DEBUG: MainThread: Refreshing repository session. [2018-07-01 07:16:23,585] DEBUG: MainThread: Starting new HTTPS connection (1): login.live.com [2018-07-01 07:16:24,902] DEBUG: MainThread: https://login.live.com:443 "POST /oauth20_token.srf HTTP/1.1" 200 1647 [2018-07-01 07:16:24,952] INFO: MainThread: Session for account e76d7888101ae62c will expire in 3599 seconds. [2018-07-01 07:16:24,952] DEBUG: MainThread: Will refresh session in 3479 seconds. [2018-07-01 07:16:24,953] INFO: MainThread: Sweeping onedrived temporary files from local repositories. [2018-07-01 07:16:24,958] DEBUG: Worker-0: Started. [2018-07-01 07:16:24,958] DEBUG: Worker-1: Started. [2018-07-01 07:16:24,961] CRITICAL: MainThread: Error initializing webhook: Did not find ngrok executable "ngrok". [2018-07-01 07:16:24,962] INFO: MainThread: Shutting down. Code: Exiting with message: None. [2018-07-01 07:16:24,965] INFO: Worker-1: Stopped. [2018-07-01 07:16:24,965] INFO: Worker-0: Stopped. [2018-07-01 07:16:24,965] INFO: MainThread: Shut down complete. [2018-07-01 07:16:24,966] DEBUG: MainThread: Closing database "/home/ubuntu/.config/onedrived/items_e76d7888101ae62c.sqlite3". All children are gone. Parent is exiting...

vuagatay89 avatar Jul 01 '18 00:07 vuagatay89

Failed to complete tunnel connection The connection to http://96b6ecf9.ngrok.io was successfully tunneled to your ngrok client, but the client failed to establish a connection to the local address localhost:80.

Make sure that a web service is running on localhost:80 and that it is a valid address.

The error encountered was: dial tcp 127.0.0.1:80: getsockopt: connection refused

vuagatay89 avatar Jul 01 '18 00:07 vuagatay89

I ran into the same issue using ngrok from ubuntu 16.04 vanilla ppa. The solution to this is, as explained in other tutorials, to download the latest ngrok binary and put it into your binary folder:

sudo mv ~/path/to/extracted/ngrok /usr/bin/ngrok

tik0 avatar Dec 31 '18 11:12 tik0