I thought the multi-user version more and now is the time to release it. Too many changes otherwise. So, 1.1 is in the repo. If you have 1.0 setup, you will need to add the syncthing user manually.
Syncthing
-
-
Dear ryecoaaron,
thanks for the super fast update
I made the update from version 1.0 to 1.1 and I think all what follows is more for the record than something to act on.
First I triggered the update via OMV-GUI:Code
Alles anzeigenReading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: openmediavault-syncthing 1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/10.0 kB of archives. After this operation, 7168 B of additional disk space will be used. WARNING: The following packages cannot be authenticated! openmediavault-syncthing Reading changelogs... Authentication warning overridden. (Reading database ... ================= Error ================= ========================================= 145771 files and directories currently installed.) Preparing to replace openmediavault-syncthing 1.0 (using .../openmediavault-syncthing_1.1_all.deb) ... Unpacking replacement openmediavault-syncthing ... Processing triggers for openmediavault ... Restarting engine daemon ... Setting up openmediavault-syncthing (1.1) ... Installing new version of config file /etc/init.d/syncthing ... Processing triggers for openmediavault ... Updating locale files ... Updating file permissions ... Purging internal cache ... Restarting engine daemon ... Creating index of upgradeable packages ... Creating index of OpenMediaVault plugins ... Done ...
After pressing the Done button I klicked the Syncthing button in the Services pane and the an error was thrown out:
CodeError #2001: exception 'OMVException' with message 'The method 'getFolders' does not exist for RPC service 'Syncthing'' in /usr/share/php/openmediavault/rpc.inc:84 Stack trace: #0 /usr/sbin/omv-engined(500): OMVRpc::exec('Syncthing', 'getFolders', Array, Array, 1) #1 {main}
and the version syncthing plugin 1.0 interface was still shown.
So I decided to reboot the machine. After the restart, the new Syncthing 1.1 plugin interface was shown an everthing seems to ok now.
Thanks again for your work on the syncthing plugin!
topi -
The error and 1.0 interface still showing happen because you should refresh the page and/or clear your browser cache when installing a new version of any plugin. Glad it is working!
-
actually to add easily a folder
syncthing gui allows for a shortcut ~ that normally links to Home/user/
on my actualy plugin install it links to : /var/lib/btsync.maybe in a future of the plugin we could have the same interface as for btsync where a omv user can manage it own syncthing instance and have a direct interface to the folders he is allowed to access to
-
i have started the registration on syncthing of your plugin
so that openmediavault-syncthing will be presented there in the installation options for syncthing
-
actually to add easily a folder
syncthing gui allows for a shortcut ~ that normally links to Home/user/
on my actualy plugin install it links to : /var/lib/btsync.maybe in a future of the plugin we could have the same interface as for btsync where a omv user can manage it own syncthing instance and have a direct interface to the folders he is allowed to access to
No idea why it would link to btsync. I didn't even use any btsync plugin code.I will look into the user pages.
-
First, a sincere thanks for creating the Syncthing plugin.
I've created a few folders which appear to sync fine but get these messages in the GUI every minute for each folder:
9:02:54: Folder "XXX" isn't making progress - check logs for possible root cause. Pausing puller for 1m0s.
9:03:00: Folder "YYY" isn't making progress - check logs for possible root cause. Pausing puller for 1m0s.
9:03:06: Folder "ZZZ" isn't making progress - check logs for possible root cause. Pausing puller for 1m0s.
9:03:21: Folder "WWW" isn't making progress - check logs for possible root cause. Pausing puller for 1m0s.
etcCould someone direct me to the location Syncthing log?
This log isn't included in the OMV webgui "system logs" but neither can I find it using eXtplorer plugin in the\var\log directory. -
I just added version 1.3 of the plugin to the repo. It adds the following:
- user page (login to omv web interface as user instead of admin)
- log file creation (no logging previously)
- log file viewer tab when logged in as user
- start of translations -
first of all a great thank to ryecoaaron for this plugin.......but why not to change this thread title properly or move the discussion to a new one? Syncthing was marked as something developers were not interested on in "Plugins that are wanted-part 5"
enjoy -
Thread has been split. Removed the comment in Part 5 about not being interested in syncthing. That changed because they start packaging for Debian.
-
I just added version 1.3 of the plugin to the repo. It adds the following:
- user page (login to omv web interface as user instead of admin)
- log file creation (no logging previously)
- log file viewer tab when logged in as user
- start of translations
Thanks ryecoaaron for the update to version 1.3 of the plugin. May I suggest to give the admin role also a way to look easily at the log files of syncthing? Perhaps they could be located in the "System Logs" tab, where the syslog, boot log etc. is located? -
That would be difficult to put logs in the System logs tab since there is a log file for each user/instance - i.e. /var/log/syncthing/syncthing_aaron.log
I will add a button to the admin list of users to show the log of the selected user.
-
I will add a button to the admin list of users to show the log of the selected user.
That would be fine! So in the admins list of users, one would oversee all syncthing users (incl. admin user) and their logs and could help others in case of problems. -
I am getting a error code 1 after installing syncthing. I get this error through ssh and the GUI.
any ideasroot@Vault:~# apt-get install openmediavault-syncthing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
openmediavault-syncthing
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/16.1 kB of archives.
After this operation, 116 kB of additional disk space will be used.
Selecting previously unselected package openmediavault-syncthing.
(Reading database ... 86891 files and directories currently installed.)
Unpacking openmediavault-syncthing (from .../openmediavault-syncthing_1.3_all.deb) ...
Processing triggers for openmediavault ...
Restarting engine daemon ...
Setting up openmediavault-syncthing (1.3) ...
insserv: script syncthing: service server already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing openmediavault-syncthing (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for openmediavault ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-syncthing
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Vault:~# -
I assume you already had syncthing installed with an init script from somewhere?
1.4 is in repo now with admin log viewer.
-
I have tried installing it before but have always has this error. i tried an "apt-get purge syncthing" and then tried installing again but I still had errors.
Also the INTERNAL address +:8384 does not work for the gui
any other ideas?Thank you all for the help!!!
root@Vault:~# syncthing
openmediavault-syncthing syncthing
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,220 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
syncthing
Install these packages without verification [y/N]? y
[monitor] 21:32:32 INFO: Starting syncthing
Selecting previously unselected package syncthing.
(Reading database ... 86884 files and directories currently installed.)
Unpacking syncthing (from .../syncthing_0.11.6_amd64.deb) ...
Selecting previously unselected package openmediavault-syncthing.
Unpacking openmediavault-syncthing (from .../openmediavault-syncthing_1.4_all.deb) ...
Processing triggers for openmediavault ...
Restarting engine daemon ...
Setting up syncthing (0.11.6) ...
Setting up openmediavault-syncthing (1.4) ...
insserv: script syncthing: service server already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing openmediavault-syncthing (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for openmediavault ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-syncthing
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
[start] 21:32:32 INFO: Generating RSA key and certificate for syncthing...
[OBLC3] 21:32:36 INFO: syncthing v0.11.6 (go1.4.2 linux-amd64 default) unknown-user@syncthing-builder 2015-05-23 23:58:46 UTC
[OBLC3] 21:32:36 INFO: My ID: **************************************************************************************8
[OBLC3] 21:32:36 INFO: No config file; starting with empty defaults
[OBLC3] 21:32:36 INFO: Edit /root/.config/syncthing/config.xml to taste or use the GUI
[OBLC3] 21:32:36 INFO: Database block cache capacity 65536 KiB
[OBLC3] 21:32:36 INFO: Starting web GUI on http://127.0.0.1:8384/
[OBLC3] 21:32:36 INFO: Loading HTTPS certificate: open /root/.config/syncthing/https-cert.pem: no such file or directory
[OBLC3] 21:32:36 INFO: Creating new HTTPS certificate
[OBLC3] 21:32:36 INFO: Generating RSA key and certificate for Vault...
[OBLC3] 21:32:43 INFO: Starting local discovery announcements
[OBLC3] 21:32:43 INFO: Starting global discovery announcements
[OBLC3] 21:32:43 OK: Ready to synchronize default (read-write)
[OBLC3] 21:32:43 INFO: Device ****************************************************************************************** is "Vault" at [dynamic]
[OBLC3] 21:32:43 INFO: Completed initial scan (rw) of folder default
[OBLC3] 21:32:55 INFO: New UPnP port mapping: external port 50477 to local port 22000. -
Try the following:
update-rc.d syncthing remove
apt-get purge syncthing openmediavault-syncthing
rm -f /etc/init.d/syncthing
reboot
omv-mkconf omvextrasorg aptclean
apt-get install syncthing
If that works without errors then:
apt-get install openmediavault-syncthingAlso the INTERNAL address +:8384 does not work for the gui
It works fine if you are using a browser locally on the system (or using port forwarding over ssh). That is why the note says use 0.0.0.0. -
update-rc.d syncthing remove
apt-get purge syncthing openmediavault-syncthing
rm -f /etc/init.d/syncthing
reboot
(these all ran without error)
here is what i got from
omv-mkconf omvextrasorg aptclean
apt-get install syncthing
fallowed by
apt-get install openmediavault-syncthingroot@Vault:~# omv-mkconf omvextrasorg aptclean
1. Cleaning apt cache files...2. Clearing available dpkg packages...
3. Removing apt lists...
removal ran just fine. but i had to remove it to fit in the post
4. Purging internal cache ...
5. Removing OpenMediaVault cache packages...
removed `/var/cache/openmediavault/archives/Packages'
6. Creating new OpenMediaVault packages file...
7. Updating apt...
Ign file: Release.gpg
Ign file: Release
Ign file: Translation-en
(shortened to fit in post)
Fetched 18.2 MB in 9s (1822 kB/s)
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
Reading package lists... Done
root@Vault:~# apt-get install syncthing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
syncthing
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,203 kB of archives.
After this operation, 0 B of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
syncthing
Install these packages without verification [y/N]? y
Get:1 http://apt.syncthing.net/ syncthing/release syncthing amd64 0.11.6 [3,203 kB]
Fetched 3,203 kB in 5s (585 kB/s)
Selecting previously unselected package syncthing.
(Reading database ... 86884 files and directories currently installed.)
Unpacking syncthing (from .../syncthing_0.11.6_amd64.deb) ...
Setting up syncthing (0.11.6) ...
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
root@Vault:~# apt-get install openmediavault-syncthing
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
openmediavault-syncthing
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 17.8 kB of archives.
After this operation, 127 kB of additional disk space will be used.
Get:1 http://packages.omv-extras.org/debian/ stoneburner-btsync/main openmediava ult-syncthing all 1.4 [17.8 kB]
Fetched 17.8 kB in 0s (37.9 kB/s)
Selecting previously unselected package openmediavault-syncthing.
(Reading database ... 86891 files and directories currently installed.)
Unpacking openmediavault-syncthing (from .../openmediavault-syncthing_1.4_all.de b) ...
Processing triggers for openmediavault ...
Restarting engine daemon ...
Setting up openmediavault-syncthing (1.4) ...
insserv: script syncthing: service server already provided!
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: error processing openmediavault-syncthing (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for openmediavault ...
Updating locale files ...
Updating file permissions ...
Purging internal cache ...
Restarting engine daemon ...
Errors were encountered while processing:
openmediavault-syncthing
Creating index of upgradeable packages ...
Creating index of OpenMediaVault plugins ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Vault:~# -
What is the output of:
uname -a
ls -al /etc/init.d/ -
Here it is.
root@Vault:~# uname -a
Linux Vault 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1~bpo70+1 (2015-04-27) x86_64 GNU/LinuxAnd
Code
Alles anzeigenroot@Vault:~# ls -al /etc/init.d/ total 516 drwxr-xr-x 2 root root 4096 May 28 07:22 . drwxrwxr-x 101 root root 4096 May 28 08:45 .. -rwxr-xr-x 1 root root 2227 Apr 15 2013 acpid -rwxr-xr-x 1 root root 2014 May 21 2012 anacron -rwxr-xr-x 1 root root 2253 Mar 6 2013 avahi-daemon -rwxr-xr-x 1 root root 2192 Jul 14 2013 bootlogd -rwxr-xr-x 1 root root 1276 Oct 15 2012 bootlogs -rwxr-xr-x 1 root root 1281 Jul 14 2013 bootmisc.sh -rwxr-xr-x 1 root root 2673 Mar 25 08:13 calibre -rwxr-xr-x 1 root root 3816 Jul 14 2013 checkfs.sh -rwxr-xr-x 1 root root 1099 Jul 14 2013 checkroot-bootclean.sh -rwxr-xr-x 1 root root 9673 Jul 14 2013 checkroot.sh -rwxr-xr-x 1 root root 9615 Jan 4 19:23 clamav-daemon -rwxr-xr-x 1 root root 7786 Jan 4 19:23 clamav-freshclam -rwxr-xr-x 1 root root 4555 Jul 15 2012 collectd -rwxr-xr-x 1 root root 1379 Dec 8 2011 console-setup -rwxr-xr-x 1 root root 2489 May 5 2012 cpufrequtils -rwxr-xr-x 1 root root 3033 Jul 3 2012 cron -rwxr-xr-x 1 root root 2813 Nov 24 2014 dbus -rw-r--r-- 1 root root 2573 May 28 07:17 .depend.boot -rw-r--r-- 1 root root 2558 May 28 07:17 .depend.start -rw-r--r-- 1 root root 3782 May 28 07:17 .depend.stop -rwxr-xr-x 1 root root 6307 Jun 25 2014 fail2ban -rwxr-xr-x 1 root root 1329 Oct 15 2012 halt -rwxr-xr-x 1 root root 10577 Jun 24 2012 hdparm -rwxr-xr-x 1 root root 1423 Oct 15 2012 hostname.sh -rwxr-xr-x 1 root root 3880 Dec 11 2012 hwclock.sh -rwxr-xr-x 1 root root 7592 Apr 28 2012 kbd -rwxr-xr-x 1 root root 1591 Sep 30 2012 keyboard-setup -rwxr-xr-x 1 root root 1293 Oct 15 2012 killprocs -rwxr-xr-x 1 root root 1990 May 20 2012 kmod -rwxr-xr-x 1 root root 869 Feb 6 2011 lm-sensors -rwxr-xr-x 1 root root 6912 May 5 2012 loadcpufreq -rwxr-xr-x 1 root root 884 May 4 2012 lvm2 -rwxr-xr-x 1 root root 2420 Jan 24 2013 mdadm -rwxr-xr-x 1 root root 6335 Oct 20 2012 mdadm-raid -rwxr-xr-x 1 root root 1199 Jan 24 2013 mdadm-waitidle -rwxr-xr-x 1 root root 4044 Jun 1 2012 monit -rwxr-xr-x 1 root root 995 Oct 15 2012 motd -rwxr-xr-x 1 root root 670 Feb 23 2013 mountall-bootclean.sh -rwxr-xr-x 1 root root 2128 Feb 23 2013 mountall.sh -rwxr-xr-x 1 root root 1508 Jul 14 2013 mountdevsubfs.sh -rwxr-xr-x 1 root root 1413 Jul 14 2013 mountkernfs.sh -rwxr-xr-x 1 root root 678 Feb 23 2013 mountnfs-bootclean.sh -rwxr-xr-x 1 root root 2440 Oct 15 2012 mountnfs.sh -rwxr-xr-x 1 root root 1731 Jul 14 2013 mtab.sh -rwxr-xr-x 1 root root 3570 Mar 20 2012 netatalk -rwxr-xr-x 1 root root 4322 Mar 14 2013 networking -rwxr-xr-x 1 root root 6491 May 11 2013 nfs-common -rwxr-xr-x 1 root root 4950 May 11 2013 nfs-kernel-server -rwxr-xr-x 1 root root 2235 Sep 18 2014 nginx -rwxr-xr-x 1 root root 1814 Dec 20 09:29 ntp -rwxr-xr-x 1 root root 822 Jan 24 2014 openmediavault -rwxr-xr-x 1 root root 497 Apr 8 2014 openmediavault-beep -rwxr-xr-x 1 root root 1955 Apr 8 2014 openmediavault-engined -rwxr-xr-x 1 root root 2890 Mar 13 23:07 openvpnas -rwxr-xr-x 1 root root 4549 Dec 30 23:27 php5-fpm -rwxr-xr-x 1 root root 1865 Apr 30 11:28 plexmediaserver -rwxr-xr-x 1 root root 1865 Apr 30 11:28 plexmediaserver.dpkg-bak -rwxr-xr-x 1 root root 7358 Mar 6 2013 postfix -rwxr-xr-x 1 root root 1346 May 19 2012 procps -rwxr-xr-x 1 root root 4978 Sep 4 2014 proftpd -rwxr-xr-x 1 root root 3092 Mar 17 2013 quota -rwxr-xr-x 1 root root 1959 Mar 17 2013 quotarpc -rwxr-xr-x 1 root root 6120 Oct 15 2012 rc -rwxr-xr-x 1 root root 782 Oct 15 2012 rc.local -rwxr-xr-x 1 root root 117 Oct 15 2012 rcS -rw-r--r-- 1 root root 2427 Oct 15 2012 README -rwxr-xr-x 1 root root 639 Oct 15 2012 reboot -rwxr-xr-x 1 root root 2918 Jun 19 2012 resolvconf -rwxr-xr-x 1 root root 1074 Jul 14 2013 rmnologin -rwxr-xr-x 1 root root 2344 Jun 15 2012 rpcbind -rwxr-xr-x 1 root root 2921 Aug 1 2012 rrdcached -rwxr-xr-x 1 root root 4395 Oct 4 2011 rsync -rwxr-xr-x 1 root root 3054 Oct 7 2014 rsyslog -rwxr-xr-x 1 root root 3023 Jun 22 2014 samba -rwxr-xr-x 1 root root 3200 Oct 15 2012 sendsigs -rwxr-xr-x 1 root root 590 Oct 15 2012 single -rw-r--r-- 1 root root 4290 Oct 15 2012 skeleton -rwxr-xr-x 1 root root 18483 Jun 19 2011 smartd -rwxr-xr-x 1 root root 3505 Jun 19 2011 smartmontools -rwxr-xr-x 1 root root 3239 Sep 21 2014 snmpd -rwxr-xr-x 1 root root 3881 Jun 28 2014 ssh -rwxr-xr-x 1 root root 567 May 19 2013 stop-bootlogd -rwxr-xr-x 1 root root 1143 May 19 2013 stop-bootlogd-single -rwxr-xr-x 1 root root 714 Jun 28 2012 sudo -rwxr-xr-x 1 root root 4249 May 27 21:02 syncthing -rwxr-xr-x 1 root root 2022 Jun 29 2012 tftpd-hpa -rwxr-xr-x 1 root root 8827 Nov 8 2012 udev -rwxr-xr-x 1 root root 1179 Aug 19 2012 udev-mtab -rwxr-xr-x 1 root root 2721 Apr 9 2013 umountfs -rwxr-xr-x 1 root root 2195 Apr 9 2013 umountnfs.sh -rwxr-xr-x 1 root root 1122 Oct 15 2012 umountroot -rwxr-xr-x 1 root root 3111 Oct 15 2012 urandom -rwxr-xr-x 1 root root 2812 Apr 5 2012 watchdog -rwxr-xr-x 1 root root 2106 Apr 5 2012 wd_keepalive -rwxr-xr-x 1 root root 2666 Mar 2 2012 x11-common -rwxr-xr-x 1 root root 3908 Apr 2 02:14 zed -rwxr-xr-x 1 root root 5870 Apr 5 21:55 zfs-mount -rwxr-xr-x 1 root root 2310 Apr 2 02:14 zfs-share
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!