Insync-headless add_account not accept Terms and Conditions


#1

I can’t add new account, because insync-headless hangs on [yes/no] question - I type yes or y, press Enter and nothing happens long time. On pressing ^C here is traceback output:

$ insync-headless -v
1.5.5.37367
$ insync-headless add_account 
By adding an account, you are agreeing to our Terms and Conditions (insynchq.com/agreement). [yes/no]
yes
^CTraceback (most recent call last):
  File "isyncd/linux/headless/cli.py", line 111, in ipc_insync
KeyboardInterrupt

#2

I’m seeing the same thing. I ran the client with --no-daemon and eventually got this error message (it repeated 3 times)

INFO     2018-12-02 20:00:28,905 [clienthttpconnection:read:52] Error during reading of response!
ERROR    2018-12-02 20:00:28,951 [clientlogging:_logged_report_error:223] Uncaught error from <AddAccountHeadlessTask at 0x7fea70c31f50>
Traceback (most recent call last):
  File "gevent/greenlet.py", line 390, in run
  File "ideskmain/clienttasks/_add_account.py", line 153, in _run
  File "ideskmain/clienttasks/_add_account.py", line 328, in _ext_login
  File "ideskmain/clienttasks/_add_account.py", line 323, in read_line
  File "idesknet/clienthttpconnection.py", line 50, in read
  File "httplib.py", line 612, in read
  File "socket.py", line 384, in read
  File "gevent/ssl.py", line 232, in recv
  File "gevent/ssl.py", line 116, in read
  File "gevent/socket.py", line 169, in wait_read
  File "gevent/hub.py", line 164, in switch
SSLError: ('The read operation timed out',)

I had strace running on the daemon and it looked like the connection that timed out was to 35.201.97.85

$ host 35.201.97.85
85.97.201.35.in-addr.arpa domain name pointer 85.97.201.35.bc.googleusercontent.com.

I can ping that IP address successfully.

Ubuntu 18.04.1 Server
Insync 1.5.5.37367


#3

My apologies for this!

Tagging our engineer @Kurt_Ko for further assistance


#4

I am experiencing the same issue.
Fresh install via yum repo on RHEL 7
Please advise


#5

Hi @deekue @Chris_Paquin

Can you try updating your system packages and try again?
Let me know what happens. Thanks!


#6

@Kurt_Ko I’ll follow this up with you. =)

$ insync-headless start
To add accounts in headless mode, use the "insync-headless add_account" command. Run "insync-headless help add_account" for more details.

$ insync-headless add_account
By adding an account, you are agreeing to our Terms and Conditions (insynchq.com/agreement). [yes/no]
yes
^CTraceback (most recent call last):
  File "isyncd/linux/headless/cli.py", line 111, in ipc_insync
KeyboardInterrupt

This is a brand new Ubuntu 18.04 install. I have updated all packages.


#7

I also have exactly the same issue:
ubuntu 16.04
inSync 1.5.5.37367

:/var/backups/mysql# insync add_account
By adding an account, you are agreeing to our Terms and Conditions (insynchq.com/agreement). [yes/no]
yes
^CTraceback (most recent call last):
  File "isyncd/linux/headless/cli.py", line 111, in ipc_insync
KeyboardInterrupt

After typing yes and hitting enter the script will hang forever seemingly, until you cntrl+c out of the script


#8

I’m getting the same issue as described. I have updated packages as recommended, issue persists.
Using Ubuntu 18.04
Process hangs after responding to the y/n prompt for T&C acceptance.


#9

Hi @Jamie_Hutber and @Foxglove

Can you guys try to run the command insync-headless add_account -a AUTH_CODE

You can get the AUTH_CODE from www.insynchq.com/auth

Please let me know if this works or if you have more questions :grin:


#10

Amazing Najdc :smiley:

Adding the -a fixed the error for myself! Thank you somuch


#11

Hi @Jamie_Hutber

You’re welcome!