Insync wont start

I’m running Insync on Linux Mint 17.1. For some reason Insync won’t start after I log out of my account and log in again. When I try to start it manually using the command “insync start” I get a pop-up saying “It seems that another insync app is currently running.” When I try to stop insync with the command “insync quit” I get the message “Insync doesn’t seem to be running. Start it first.”

It’s kind of like Schrodinger’s cat. It’s both running and not running.

The only way to fix this is to reboot the computer.

It there a lock file that needs to be deleted, or something?

@bozackt This is related to this issue: Log off takes minutes. We’re planning to include the fix for this in the next release.

Thanks for the response. I’ll stand by for the next release.

Hello I’ve notice this issue has returned with insync-headless-1.4.4.37065-fc24.x86_64.rpm on RHL. Installed without sudo. Was working perfectly for some time until I logged of and then promptly logged back in again. Now it won’t start.

LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 7.2 (Maipo)
Release:        7.2
Codename:       Maipo

Currently assessing Insync. Same issue. start command exits without a problem with insync-headless. All subsequent commands report the service as not having been started.

Hey @alyssackwan!

What’s your Insync version and OS? :slight_smile:

Debian Stretch, insync-headless 1.5.2.37346.

It seems to start now, and I can grep for the pid. However, when I try to add an account (initial setup), it hangs forever. SIGINT-ing the process consistently raises a KeyboardInterrupt at line 111 of isyncd/linux/headless/cli.py, inside of ipc_insync.

1 Like

This is what my ${HOME}/.config/Insync/out.txt contains:

Sign in with your Google Account

[avatar_2x]
Enter your email [ ] [ ]
[Next] Find my account
One Google Account for everything Google

• Google
• Privacy
• Terms

Change language [English (United States) ]

Hi @alyssackwan, sorry for the trouble! Tagging our engineer @Kurt_Ko for further assistance. :slight_smile:

Hi!

Can you run ‘insync start --no-daemon’ and send us the output?
Are you running a terminal only setup?

Thanks!

Hi @Kurt_Ko,

me@main:~$ insync-headless start --no-daemon
To add accounts in headless mode, use the "insync-headless add_account" command. Run "insync-headless help add_account" for more details.
INFO     2018-10-09 15:36:12,231 [__main__insync-headless__:main:50] insync version: 1.5.2.37346
INFO     2018-10-09 15:36:12,235 [__main__insync-headless__:main:51] client created <ideskmain.client.Client object at 0x7fa7eb90d850>
INFO     2018-10-09 15:36:12,236 [unix_socket_server_portable:start:49] unix socket server thread start
INFO     2018-10-09 15:36:12,237 [__main__insync-headless__:main:56] starting client
INFO     2018-10-09 15:36:12,245 [fswatch:_start:532] LinuxFSWatcher._start
INFO     2018-10-09 15:36:12,247 [fswatch:_pull_loop:267] Inotify loop enter

This is a VM in the cloud to which I am mosh’ed and tmux’ed into.

Thanks,
Alyssa

Just following up. If this is not resolved I cannot use Insync.

Hi @alyssackwan!

Can you go to ‘www.insynchq.com/auth’ , login with your google account, and then it will give you an [AUTH_CODE].
Once you have an [AUTH_CODE], add your account by running ‘insync-headless add_account -a [AUTH_CODE]’

Let me know if it works for you!

Thanks!

Thanks! I was able to move_folder afterwards as well.

1 Like

Facing a similar issue.

Output from running ‘insync start --no-daemon’:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
WARNING:root:While reading /usr/share/applications/defaults.list
Traceback (most recent call last):
  File "idesklinux/application_manager.py", line 53, in __index_default_apps
  File "configparser.py", line 696, in read
  File "configparser.py", line 1091, in _read
configparser.DuplicateOptionError: While reading from '/usr/share/applications/defaults.list' [line 263]: option 'application/xhtml+xml' in section 'Default Applications' already exists
WARNING:root:While reading /usr/share/applications/defaults.list
Traceback (most recent call last):
  File "idesklinux/application_manager.py", line 70, in __index_apps_for_mimetypes
  File "configparser.py", line 696, in read
  File "configparser.py", line 1091, in _read
configparser.DuplicateOptionError: While reading from '/usr/share/applications/defaults.list' [line 263]: option 'application/xhtml+xml' in section 'Default Applications' already exists
INFO     2022-04-03 18:45:02,751 [mainlogs:_log_run:139] Core(app_version=3.7.3.50326, platform=Linux-x86_64-ubuntu/20.04) initialized
WARNING  2022-04-03 18:45:04,760 [base_events:_run_once:1771] Executing <Task finished coro=<SettingsMain._load_settings() done, defined at ideskcore/mainsettings.py:179> exception=DBLockedError('The database file is currently locked (SettingsDBInstaller).') created at ideskcore/mainsettings.py:157> took 2.005 seconds
INFO     2022-04-03 18:45:04,763 [core:init:151] DB is locked!
ERROR    2022-04-03 18:45:07,772 [base_events:default_exception_handler:1608] Task exception was never retrieved after 3.0 seconds
future: <Task finished coro=<SyncMain._start_syncing() done, defined at ideskcore/mainsync.py:192> exception=DBLockedError('The database file is currently locked (SettingsDBInstaller).') created at ideskcore/mainsync.py:178>
source_traceback: Object created at (most recent call last):
  File "threading.py", line 885, in _bootstrap
  File "threading.py", line 917, in _bootstrap_inner
  File "threading.py", line 865, in run
  File "ideskasync/coreloop.py", line 274, in run_loop
  File "asyncio/base_events.py", line 539, in run_forever
  File "asyncio/base_events.py", line 1767, in _run_once
  File "asyncio/events.py", line 88, in _run
  File "ideskcore/core.py", line 147, in init
  File "ideskcore/core.py", line 23, in __init__
  File "ideskcore/mainsync.py", line 178, in __init__
Traceback (most recent call last):
  File "ideskdb/clientdb.py", line 149, in __init__
  File "ideskdb/clientdb.py", line 249, in execute
sqlite3.OperationalError: database is locked

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "ideskcore/core.py", line 148, in init
  File "ideskcore/mainbase.py", line 14, in init
  File "ideskcore/core.py", line 54, in _init
  File "ideskcore/mainsync.py", line 189, in _init
  File "ideskcore/mainhttp.py", line 110, in _init
  File "ideskcore/mainsettings.py", line 161, in _init
  File "ideskcore/mainsync.py", line 193, in _start_syncing
  File "ideskcore/mainsettings.py", line 197, in _load_settings
  File "ideskcore/mainsettings.py", line 24, in __init__
  File "ideskdb/clientdb.py", line 197, in __init__
ideskdb.clientdb.DBLockedError: The database file is currently locked (SettingsDBInstaller).
INFO     2022-04-03 18:45:08,773 [main:quit:64] quitting
INFO     2022-04-03 18:45:08,777 [main:stop:59] core stopped
INFO     2022-04-03 18:45:08,777 [main:stop:61] clean exit

Hey @vmuthuk2!

Could you please send the following to support@insynchq.com with the link to this post?

  • logs.db
  • settings.db
  • out.txt

Those three files can be found in ~/.config/Insync. If they’re too big to attach, feel free to upload them in the cloud then send us a shared link to download.