New Headless version: 3.0.1

Release notes:

  • Fix expired token errors when resuming old OneDrive for Business uploads
  • Linux: Fix Insync not running issues in multi user environments
  • Fix error when a base folder gets deleted
  • Linux: Update APT/Yum repo GPG keys
  • Linux: Include Zorin OS when adding APT repo sources file
  • Linux: Add completions command for bash/zsh/fish shell autocompletion
  • Fix re-authentication prompt not showing up in some cases
  • Enable syncing of locally-copied Google Doc files to the cloud

Debian Buster and later
Debian Stretch
Debian Jessie
Ubuntu 20.04 and later
Ubuntu 18.04 and below
Fedora 31 and later
Fedora 30
Fedora 29
Fedora 28
Fedora 27

May I ask why the cron dependency on Buster? it’s really a thing of the past. Is Inysnc really using it? Insync is already running as a daemon, why it needs a crontab?

p.s. Can you not conflict with the desktop Insync edition? like change the Unix socket filename and the installation dir under /usr/lib.

p.s.2 Can you please not enabled analytics by default? it should be opt-in. If you add a quick-setup CLI wizard then you could ask the user if he/she wants to enable it.

@tinywrkb

May I ask why the cron dependency on Buster? it’s really a thing of the past. Is Inysnc really using it? Insync is already running as a daemon, why it needs a crontab?

We will be switching to using systemd in the future and cron is being used to start Insync on startup, you can disable this by using insync-headless config run_on_startup 0

p.s. Can you not conflict with the desktop Insync edition? like change the Unix socket filename and the installation dir under /usr/lib.

Both versions can’t be installed as syncing the same folders can cause syncing issues

p.s.2 Can you please not enabled analytics by default? it should be opt-in. If you add a quick-setup CLI wizard then you could ask the user if he/she wants to enable it.

Thank you for your suggestion, our product team will take a look at this. For now, you can opt-out analytics by running insync-headless config allow_analytics 0

2 Likes

Thank you for the detailed answer.

Both versions can’t be installed as syncing the same folders can cause syncing issues

Actually, the user can set the sync dir with the --path option when adding an account, so if the synced folders are not the same for the desktop and headless version then how is it different from having multiple Insync desktop sessions running on different machines?

We will be switching to using systemd in the future and cron is being used to start Insync on startup

In the AUR package we already ship systemd services so it’s good that by default the app has run_on_startup set as false.

I suggest that when switching to systemd to consider two running modes.

The most straightforward running mode is as a (personal) user service, which is what the AUR package is shipping with.
The main problem with this mode is that it requires that the user would be logged in or that the home directory would be unencrypted, and with systemd-homed the latter is not enough as homedir is not available (not mounted) when the user is not logged in.

The second running mode is running as a system service. Look at the systemd.exec.5 man page to get an idea of the common conventions.
With this mode I suggest to run as a dedicated insync user and group and to use /var/lib/insync for the stateful dir so the config and synced folders will be saved there.

I also suggest to put the Unix socket in /run/insync/insync-headless.sock when running as a system service, and in /run/user/UID/insync/insync-headless.sock or $XDG_RUNTIME_DIR/insync/insync-headless.sock when running as a user service.
The insync-headless command should have a --user and --system options to choose to which socket to connect to, and if the user want to connect to the system service then just adding the user to the insync group should give the proper permissions to communicate with the service.

That’s great. But why is the version installed from your own repository version 3.0.0?

There’s not much use releasing a new version and not updating your repos.

sudo apt upgrade insync-headless
Reading package lists... Done
Building dependency tree       
Reading state information... Done
insync-headless is already the newest version (3.0.0.10585-buster).

Regards

Steve.