Problem on installation of OpenVpn as/Openvpn on raspberry PI3 OMV 3.0.13

  • Hello !
    Here it is my configuration : Raspberry PI3 , OMV 3.0.13
    My goal is to access to my external HD (connected on my RPi3) from outside through a VPN access.
    I can't install openVPN on my RP3i. I can't even see it on the repo.
    When I try to install the plugins openmediavault-openvpn 3.0.1, I've got the following error message :


    Reading package lists...
    >>> *************** Error ***************
    Failed to execute command 'export LANG=C; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --force-yes --fix-missing --allow-unauthenticated --reinstall install openmediavault-openvpn 2>&1': Reading package lists...


    Building dependency tree...


    Reading state information...


    E: Unable to locate package openmediavault-openvpn
    <<< *************************************


    It seems that it can't find the package.


    What is the solution for my configuration ?


    What I saw in the forums doesn't work...


    Thanks in advance for the answers.

    • Offizieller Beitrag

    You need to install all updates in the Updates tab before installing any plugins.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • When I try to update the plugins, I've got the following error message :


    Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: InRelease Ign http://mirrordirector.raspbian.org jessie InRelease Err http://mirrordirector.raspbian.org jessie Release.gpg Something wicked happened resolving 'mirrordirector.raspbian.org:http' (-5 - No address associated with hostname) Ign file: Release.gpg Ign file: Release Ign http://mirrordirector.raspbian.org jessie Release Ign https://dl.bintray.com jessie InRelease Ign http://archive.raspberrypi.org jessie InRelease Ign http://packages.openmediavault.org erasmus InRelease Err http://archive.raspberrypi.org jessie Release.gpg Something wicked happened resolving 'archive.raspberrypi.org:http' (-5 - No address associated with hostname) Err http://packages.openmediavault.org erasmus Release.gpg Something wicked happened resolving ........

  • OpenVPN Access Server does not work with ARM devices. If you installed that plugin you should purge it. It only works with amd64 and i386 cpus.


    apt-get purge openmediavault-openvpnas
    apt-get purge openvpn-as

    • Offizieller Beitrag

    You weren't trying to install access server. openvpn was been hit or miss on arm devices.


    Your current problem is you need to set your dns server in network settings.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • What do you mean by

    Zitat

    Your current problem is you need to set your dns server in network settings.


    ?
    My current dns configuration is :
    IPv4
    Method : Static
    Address : 192.168.1.108
    <-- local network address of my RPi3
    Mask : 255.255.255.0
    192.168.1.1

    IPv6
    Not active

    Advance parameters:
    DNS server : 192.168.1.108 <-- local network address of my RPi3
    Domain : ....ddns.net
    <-- set by noip.com
    MTU : 1500

    • Offizieller Beitrag

    Unless you are running a dns server on your RPi (guessing you aren't), you should set the DNS server to 192.168.1.1

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • ok, my fault.
    I changed my DNS server to 192.168.1.1
    I update the plugins list.
    At the end, I've got the following error :


    Reading package lists...
    Building dependency tree...
    Reading state information...
    The following package was automatically installed and is no longer required:
    php-json-schema
    Use 'apt-get autoremove' to remove it.
    The following extra packages will be installed:
    easy-rsa libpkcs11-helper1 openmediavault openvpn pciutils
    Recommended packages:
    opensc
    The following NEW packages will be installed:
    easy-rsa libpkcs11-helper1 openmediavault-openvpn openvpn pciutils
    The following packages will be upgraded:
    openmediavault
    1 upgraded, 5 newly installed, 0 to remove and 94 not upgraded.
    Need to get 1614 kB of archives.
    After this operation, 2636 kB of additional disk space will be used.
    Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpkcs11-helper1 armhf 1.11-2 [39.4 kB]
    Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main pciutils armhf 1:3.2.1-3 [251 kB]
    Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main easy-rsa all 2.2.2-1 [17.1 kB]
    Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main openvpn armhf 2.3.4-5+deb8u1 [435 kB]
    Get:5 http://packages.openmediavault.org/public/ erasmus/main openmediavault all 3.0.24 [845 kB]
    Get:6 https://dl.bintray.com/openmed…lugin-developers/erasmus/ jessie/main openmediavault-openvpn all 3.0.2 [27.3 kB]
    Preconfiguring packages ...
    Fetched 1614 kB in 7s (226 kB/s)
    Selecting previously unselected package libpkcs11-helper1:armhf.
    (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 42586 files and directories currently installed.)
    Preparing to unpack .../libpkcs11-helper1_1.11-2_armhf.deb ...
    Unpacking libpkcs11-helper1:armhf (1.11-2) ...
    Selecting previously unselected package pciutils.
    Preparing to unpack .../pciutils_1%3a3.2.1-3_armhf.deb ...
    Unpacking pciutils (1:3.2.1-3) ...
    Preparing to unpack .../openmediavault_3.0.24_all.deb ...
    Unpacking openmediavault (3.0.24) over (3.0.13) ...


    >>> *************** Error ***************
    Gateway Time-out
    <<< *************************************


    >>> *************** Error ***************
    Failed to connect to socket: No such file or directory
    <<< *************************************



    An now, when I try to access to Openmediavault web interface, I can not see any information and I've got the following error :
    Failed to connect to socket: No such file or directory
    Erreur #0:
    exception 'OMV\Rpc\Exception' with message 'Failed to connect to socket: No such file or directory' in /usr/share/php/openmediavault/rpc/rpc.inc:135
    Stack trace:
    #0 /usr/share/php/openmediavault/rpc/proxy/json.inc(95): OMV\Rpc\Rpc::call('Services', 'getStatus', Array, Array, 3)
    #1 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
    #2 {main}

    • Offizieller Beitrag

    As root, try: omv-engined -df


    Post the error message not the entire output. It should give a message that will be very helpful.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • This is the result (connection with Putty) :


    root@openmediavault:~# omv-engined -df
    omv-engined[1585]: Daemon process started (pid=1586)
    root@openmediavault:~# Registered data models:
    conf.service.ftp
    conf.service.ftp.modban.rule
    .......... <-- outputs --> .........
    Registered filesystem backends:
    .......... <-- outputs --> .........
    PHP Fatal error: require_once(): Failed opening required 'openmediavault/config .inc' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/openmediav ault/engined/rpc/flashmemory.inc on line 19
    root@openmediavault:~#

    • Offizieller Beitrag

    Strange... What is the output of: dpkg -l | grep openm

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • The result are :
    root@openmediavault:~# dpkg -l | grep openm
    ii openmediavault 3.0.24 all Open network attached storage solution
    ii openmediavault-flashmemory 3.1 all folder2ram plugin for OpenMediaVault
    ii openmediavault-keyring 0.4 all GnuPG archive keys of the OpenMediaVault archive
    ii openmediavault-omvextrasorg 3.0.10 all OMV-Extras.org Package Repositories for OpenMediaVault
    ii openmediavault-openvpn 3.0.2 all OpenVPN plugin for OpenMediaVault.


    root@openmediavault:~# dpkg -l | grep openvpn
    ii openmediavault-openvpn 3.0.2 all OpenVPN plugin for OpenMediaVault.
    ii openvpn 2.3.4-5+deb8u1 armhf virtual private network daemon

    • Offizieller Beitrag

    You have an old version of flash memory causing the problem.


    apt-get update
    apt-get install openmediavault-flashmemory

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Still can't connect to web interface...


    Result for apt-get update (error at the end) :
    Ign file: InRelease
    Ign file: Release.gpg
    Ign file: Release
    Ign file: Translation-en_GB
    Ign file: Translation-en
    Hit http://packages.openmediavault.org erasmus InRelease
    Hit http://packages.openmediavault.org erasmus/main armhf Packages
    Get:1 https://dl.bintray.com jessie InRelease
    Ign https://dl.bintray.com jessie InRelease
    Get:2 https://dl.bintray.com jessie InRelease
    Ign https://dl.bintray.com jessie InRelease
    Hit https://dl.bintray.com jessie Release.gpg
    Hit https://dl.bintray.com jessie Release.gpg
    Hit https://dl.bintray.com jessie Release
    Ign http://packages.openmediavault.org erasmus/main Translation-en_GB
    Hit https://dl.bintray.com jessie Release
    Ign http://packages.openmediavault.org erasmus/main Translation-en
    Hit https://dl.bintray.com jessie/main armhf Packages
    Hit http://archive.raspberrypi.org jessie InRelease
    Hit http://archive.raspberrypi.org jessie/main armhf Packages
    Get:3 https://dl.bintray.com jessie/main Translation-en_GB
    Get:4 https://dl.bintray.com jessie/main Translation-en
    Hit https://dl.bintray.com jessie/main armhf Packages
    Get:5 https://dl.bintray.com jessie/main Translation-en_GB
    Hit http://mirrordirector.raspbian.org jessie InRelease
    Get:6 https://dl.bintray.com jessie/main Translation-en
    Get:7 https://dl.bintray.com jessie/main Translation-en_GB
    Get:8 https://dl.bintray.com jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
    Get:9 https://dl.bintray.com jessie/main Translation-en_GB
    Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
    Get:10 https://dl.bintray.com jessie/main Translation-en
    Ign http://archive.raspberrypi.org jessie/main Translation-en
    Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
    Get:11 https://dl.bintray.com jessie/main Translation-en_GB
    Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
    Get:12 https://dl.bintray.com jessie/main Translation-en
    Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
    Get:13 https://dl.bintray.com jessie/main Translation-en_GB
    Get:14 https://dl.bintray.com jessie/main Translation-en
    Get:15 https://dl.bintray.com jessie/main Translation-en_GB
    Get:16 https://dl.bintray.com jessie/main Translation-en
    Get:17 https://dl.bintray.com jessie/main Translation-en_GB
    Get:18 https://dl.bintray.com jessie/main Translation-en
    Get:19 https://dl.bintray.com jessie/main Translation-en_GB
    Ign https://dl.bintray.com jessie/main Translation-en_GB
    Get:20 https://dl.bintray.com jessie/main Translation-en
    Ign https://dl.bintray.com jessie/main Translation-en
    Get:21 https://dl.bintray.com jessie/main Translation-en_GB
    Ign https://dl.bintray.com jessie/main Translation-en_GB
    Get:22 https://dl.bintray.com jessie/main Translation-en
    Ign https://dl.bintray.com jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/main Translation-en
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
    Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ...
    Reading package lists... Done

    N: Ignoring file 'openvpn-install.sh' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension




    Result for root@openmediavault:~# apt-get install openmediavault-flashmemory (error at the end) :
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    php-json-schema
    Use 'apt-get autoremove' to remove it.
    The following extra packages will be installed:
    folder2ram
    The following packages will be upgraded:
    folder2ram openmediavault-flashmemory
    2 upgraded, 0 newly installed, 0 to remove and 92 not upgraded.
    Need to get 26.8 kB of archives.
    After this operation, 5,120 B disk space will be freed.
    Do you want to continue? [Y/n] Y
    Get:1 https://dl.bintray.com/openmed…lugin-developers/erasmus/ jessie/main folder2ram all 0.2.4 [11.6 kB]
    Get:2 https://dl.bintray.com/openmed…lugin-developers/erasmus/ jessie/main openmediavault-flashmemory all 3.4.1 [15.2 kB]
    Fetched 26.8 kB in 2s (12.3 kB/s)
    (Reading database ... 43006 files and directories currently installed.)
    Preparing to unpack .../folder2ram_0.2.4_all.deb ...
    Unpacking folder2ram (0.2.4) over (0.2.3) ...
    Preparing to unpack .../openmediavault-flashmemory_3.4.1_all.deb ...
    Unpacking openmediavault-flashmemory (3.4.1) over (3.1) ...
    Processing triggers for man-db (2.7.0.2-5) ...
    Processing triggers for openmediavault (3.0.24) ...
    Restarting engine daemon ...
    Socket error -- Connection refused
    Cannot connect to the monit daemon. Did you start it with http support?
    Setting up folder2ram (0.2.4) ...
    Setting up openmediavault-flashmemory (3.4.1) ...


    Welcome to folder2ram version 0.2.4 !
    folder2ram is a script-based utility that relocates the contents of a folder to RAM
    and on shutdown unmounts it safely synching the data back to the permanent storage.


    There are four main components of folder2ram system:
    --the init script in /etc/init.d or the systemd service in /etc/folder2ram that calls this main script on boot and shutdown
    --the main script in /etc/sbin/folder2ram
    --the configuration file in /etc/folder2ram/folder2ram.conf
    --the folders in /var/folder2ram, the bind-mounted folders
    they allow easy access to the original folder in permanent storage
    since if you mount folder A on folder B you lose access to folder B
    this trick allows access to B, allowing synching with the tmpfs at will


    for first startup use -configure action, edit the mount points as you wish, then -mountall


    list of actions (only one at a time):


    -enableinit
    ::::::::::sets up an appropriate autostart/stop init script, does not start it


    -enablesystemd
    ::::::::::sets up an appropriate autostart/stop systemd service, does not start it


    -disableinit
    ::::::::::removes the autostart/stop init script and unmounts all mount points


    -disablesystemd
    ::::::::::removes the autostart/stop systemd service and unmounts all mount points


    -safe-disableinit
    ::::::::::removes the autostart/stop init script but unmounts only at shutdown (hence safely)
    ::::::::::it also works if folder2ram is unistalled shortly afterwards


    -safe-disablesystemd
    ::::::::::removes the autostart/stop systemd service but unmounts only at shutdown (hence safely)
    ::::::::::it also works if folder2ram is unistalled shortly afterwards


    -status
    ::::::::::print all mountpoints and their status (mounted or unmounted)


    -syncall
    ::::::::::sync to disk the content of folder2ram's tmpfs folders


    -mountall
    ::::::::::folder2ram will mount all folders in the config file


    -umountall
    ::::::::::folder2ram will unmount all folders in the config file


    -configure
    ::::::::::folder2ram will open the configuration file in a text editor


    -reset
    ::::::::::restore default config file


    -clean
    ::::::::::unmounts all folders then removes any autostart


    Processing triggers for openmediavault (3.0.24) ...
    Updating locale files ...
    Updating file permissions ...
    Purging internal cache ...
    Restarting engine daemon ...
    Socket error -- Connection refused
    Cannot connect to the monit daemon. Did you start it with http support?
    Creating index of upgradeable packages ...
    Creating index of openmediavault plugins ..
    .
    N: Ignoring file 'openvpn-install.sh' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
    N: Ignoring file 'openvpn-install.sh' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
    N: Ignoring file 'openvpn-install.sh' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

    • Offizieller Beitrag

    rm /etc/apt/sources.list.d/openvpn-install.sh
    apt-get purge openmediavault-openvpn
    apt-get dist-upgrade
    omv-aptclean
    apt-get install openmediavault-openvpn

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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've got an error message at the secondstep...


    root@openmediavault:~# rm /etc/apt/sources.list.d/openvpn-install.sh
    root@openmediavault:~# apt-get purge openmediavault-openvpn
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    php-json-schema
    Use 'apt-get autoremove' to remove it.
    The following packages will be REMOVED:
    openmediavault-openvpn*
    0 upgraded, 0 newly installed, 1 to remove and 92 not upgraded.
    After this operation, 171 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 43008 files and directories currently installed.)
    Removing openmediavault-openvpn (3.0.2) ...
    Purging configuration files for openmediavault-openvpn (3.0.2) ...
    Processing triggers for openmediavault (3.0.24) ...
    Restarting engine daemon ...
    Socket error -- Connection refused
    Cannot connect to the monit daemon. Did you start it with http support?


    All the commands have been processed...


    I can access to the web interface...


    OpenVpn seems to be installed...


    I'll check later and let you know...

    • Offizieller Beitrag

    That error should be ok.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


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


    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!

  • Great !
    Openvpn is installed...
    Can you explain why it was so hard to install it ?
    Is something missing in the image omv_3.0.13_rpi2_rpi3.img ?
    I ask these questions for people who want to do the same as I did...

Jetzt mitmachen!

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