• Offizieller Beitrag

    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.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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:


    After pressing the Done button I klicked the Syncthing button in the Services pane and the an error was thrown out:

    Code
    Error #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

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

    • Offizieller Beitrag

    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!

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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

    • Offizieller Beitrag

    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.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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.
    etc


    Could 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.

    • Offizieller Beitrag

    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

    • Offizieller Beitrag

    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?

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

    • Offizieller Beitrag

    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.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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.

    OpenMediaVault 6.x (most recent stable version) -- 64 bit -- OMV-Extras 6.x (most recent stable version) -- Default Kernel

    Einmal editiert, zuletzt von topi ()

  • I am getting a error code 1 after installing syncthing. I get this error through ssh and the GUI.
    any ideas


    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 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:~#

    • Offizieller Beitrag

    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.

    • Offizieller Beitrag

    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-syncthing


    Also 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.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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-syncthing





    root@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:~#

    • Offizieller Beitrag

    What is the output of:


    uname -a
    ls -al /etc/init.d/

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • 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/Linux


    And


Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!