Failed to connect to socket: Connection refused

  • pi@OMVPi:~ $ sudo omv-engined -df

    omv-engined[3746]: Daemon process started (pid=3747)

    omv-engined[3746]:

    pi@OMVPi:~ $ Registered data models:

    conf.service

    conf.service.ftp

    conf.service.ftp.modban.rule

    conf.service.ftp.modtls

    conf.service.ftp.share

    conf.service.nfs

    conf.service.nfs.share

    conf.service.rsync.job

    conf.service.rsyncd

    conf.service.rsyncd.module

    conf.service.smartmontools

    conf.service.smartmontools.device

    conf.service.smartmontools.job

    conf.service.smb

    conf.service.smb.share

    conf.service.ssh

    conf.system.apt.distribution

    conf.system.certificate.ssh

    conf.system.certificate.ssl

    conf.system.cron.job

    conf.system.filesystem.mountpoint

    conf.system.filesystem.quota

    conf.system.hdparm

    conf.system.mdadm.device

    conf.system.monitoring.perfstats

    conf.system.network.dns

    conf.system.network.interface

    conf.system.network.iptables.rule

    conf.system.network.proxy

    conf.system.notification.email

    conf.system.notification.notification

    conf.system.omvextras

    conf.system.powermngmnt

    conf.system.resetperms

    conf.system.sharedfolder

    conf.system.sharedfolder.privilege

    conf.system.syslog.remote

    conf.system.time

    conf.system.usermngmnt.group

    conf.system.usermngmnt.homedir

    conf.system.usermngmnt.user

    conf.webadmin

    rpc.apt.getchangelog

    rpc.apt.install

    rpc.apt.setsettings

    rpc.apt.upload

    rpc.certificatemgmt.copysshid

    rpc.certificatemgmt.create

    rpc.certificatemgmt.createssh

    rpc.certificatemgmt.set

    rpc.certificatemgmt.setssh

    rpc.common.devicefile

    rpc.common.getlist

    rpc.common.objectuuid

    rpc.config.applychanges

    rpc.config.revertchanges

    rpc.cron.getlist

    rpc.cron.set

    rpc.diskmgmt.sethdparm

    rpc.diskmgmt.wipe

    rpc.emailnotification.set

    rpc.exec.getoutput

    rpc.exec.isrunning

    rpc.exec.stop

    rpc.filesystemmgmt.create

    rpc.filesystemmgmt.delete

    rpc.filesystemmgmt.enumeratemountedfilesystems

    rpc.filesystemmgmt.hasfilesystem

    rpc.filesystemmgmt.mount

    rpc.filesystemmgmt.resize

    rpc.filesystemmgmt.umount

    rpc.folderbrowser.get

    rpc.fstab.getbydir

    rpc.fstab.getbyfsname

    rpc.fstab.set

    rpc.ftp.setmodbanrule

    rpc.ftp.setmodtlssettings

    rpc.ftp.setsettings

    rpc.ftp.setshare

    rpc.iptables.setrule

    rpc.iptables.setrules

    rpc.iptables.setrules6

    rpc.logfile.clear

    rpc.logfile.getcontent

    rpc.logfile.getlist

    rpc.network.enumeratebondslaves

    rpc.network.enumeratebridgeslaves

    rpc.network.identify

    rpc.network.setbondiface

    rpc.network.setbridgeiface

    rpc.network.setethernetiface

    rpc.network.setgeneralsettings

    rpc.network.setproxy

    rpc.network.setvlaniface

    rpc.network.setwirelessiface

    rpc.nfs.setsettings

    rpc.nfs.setshare

    rpc.notification.isenabled

    rpc.notification.set

    rpc.notification.setlist

    rpc.omvextras.dobackports

    rpc.omvextras.docommand

    rpc.omvextras.dohold

    rpc.omvextras.doproxmox

    rpc.omvextras.setdocker

    rpc.omvextras.setsettings

    rpc.perfstats.set

    rpc.plugin.install

    rpc.plugin.remove

    rpc.plugin.upload

    rpc.powermgmt.set

    rpc.powermgmt.setscheduledjob

    rpc.quota.getbytypename

    rpc.quota.set

    rpc.quota.setbytypename

    rpc.raidmgmt.add

    rpc.raidmgmt.create

    rpc.raidmgmt.grow

    rpc.raidmgmt.remove

    rpc.resetperms.setsettings

    rpc.rsync.set

    rpc.rsyncd.setmodule

    rpc.rsyncd.setsettings

    rpc.session.login

    rpc.sharemgmt.copyprivileges

    rpc.sharemgmt.delete

    rpc.sharemgmt.getfileacl

    rpc.sharemgmt.getprivilegesbyrole

    rpc.sharemgmt.set

    rpc.sharemgmt.setfileacl

    rpc.sharemgmt.setprivileges

    rpc.sharemgmt.setprivilegesbyrole

    rpc.smart.setdevicesettings

    rpc.smart.setscheduledtest

    rpc.smart.setsettings

    rpc.smb.setsettings

    rpc.smb.setshare

    rpc.ssh.set

    rpc.syslog.setsettings

    rpc.system.reboot

    rpc.system.setdate

    rpc.system.settimesettings

    rpc.system.shutdown

    rpc.system.standby

    rpc.usermgmt.authuser

    rpc.usermgmt.deletegroup

    rpc.usermgmt.deleteuser

    rpc.usermgmt.getgroup

    rpc.usermgmt.getuser

    rpc.usermgmt.importgroup

    rpc.usermgmt.importuser

    rpc.usermgmt.setgroup

    rpc.usermgmt.setpasswordbycontext

    rpc.usermgmt.setsettings

    rpc.usermgmt.setuser

    rpc.usermgmt.setuserbycontext

    rpc.webgui.setsettings

    PHP Parse error: syntax error, unexpected '=' in /usr/share/php/openmediavault/system/filesystem/backend/ext2.inc on line 29



    If I edit ext2.inc:

    <?php

    /**

    * This file is part of OpenMediaVault.

    *

    * @license http://www.gnu.org/licenses/gpl.html GPL Version 3

    * @author Volker Theile <volker.theile@openmediavault.org>

    * @copyright Copyright (c) 2009-2022 Volker Theile

    *

    * OpenMediaVault is free software: you can redistribute it and/or modify

    * it under the terms of the GNU General Public License as published by

    * the Free Software Foundation, either version 3 of the License, or

    * any later version.

    *

    * OpenMediaVault is distributed in the hope that it will be useful,

    * but WITHOUT ANY WARRANTY; without even the implied warranty of

    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

    * GNU General Public License for more details.

    *

    * You should have received a copy of the GNU General Public License

    * along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>.

    */

    namespace OMV\System\Filesystem\Backend;


    class Ext2 extends Ext {

    public function __construct() {

    parent::__construct();

    $this->type = "ext2";

    $this

    >properties = self::PROT_ÍNTENT | self::PROP_QOSIX_`CL |

    self::PROPßQUOTA | sålf::PROP_RESIZE;

    $this->mntOptions explode(",", \OMV\Environmeov::get(

    "OMV_FSTAB_MNTOPS_EXT2"));

    }


    /**Š * See parent c|ass definition.

    */

    publmc fenctiOn gutFstabMntÏ0tikns

    \OMV\Sistee\Storage\StoòageDevice $sd = null) {

    $options = parent::getFstabMn4Options)$sl);

    $options[] = "ccl";

    return &options;

    }


    /**

    0* See qarent class defInition.

    */

    functio~ get mpl($abgs) {

    $object = new \OMV\System\fileSystem|Ext($args);

    $obzect->SetBackend($this);

    return $object;

    }

    }


    It seems syntax of 'this' pointer is corrupted... All ext2.inc seems corrupted.

  • I corrected manually the ext2.inc file.


    pi@OMVPi:~ $ sudo omv-engined -df

    Registered data models:

    conf.service

    conf.service.ftp

    conf.service.ftp.modban.rule

    conf.service.ftp.modtls

    conf.service.ftp.share

    conf.service.nfs

    conf.service.nfs.share

    conf.service.rsync.job

    conf.service.rsyncd

    conf.service.rsyncd.module

    conf.service.smartmontools

    conf.service.smartmontools.device

    conf.service.smartmontools.job

    conf.service.smb

    conf.service.smb.share

    conf.service.ssh

    conf.system.apt.distribution

    conf.system.certificate.ssh

    conf.system.certificate.ssl

    conf.system.cron.job

    conf.system.filesystem.mountpoint

    conf.system.filesystem.quota

    conf.system.hdparm

    conf.system.mdadm.device

    conf.system.monitoring.perfstats

    conf.system.network.dns

    conf.system.network.interface

    conf.system.network.iptables.rule

    conf.system.network.proxy

    conf.system.notification.email

    conf.system.notification.notification

    conf.system.omvextras

    conf.system.powermngmnt

    conf.system.resetperms

    conf.system.sharedfolder

    conf.system.sharedfolder.privilege

    conf.system.syslog.remote

    conf.system.time

    conf.system.usermngmnt.group

    conf.system.usermngmnt.homedir

    conf.system.usermngmnt.user

    conf.webadmin

    rpc.apt.getchangelog

    rpc.apt.install

    rpc.apt.setsettings

    rpc.apt.upload

    rpc.certificatemgmt.copysshid

    rpc.certificatemgmt.create

    rpc.certificatemgmt.createssh

    rpc.certificatemgmt.set

    rpc.certificatemgmt.setssh

    rpc.common.devicefile

    rpc.common.getlist

    rpc.common.objectuuid

    rpc.config.applychanges

    rpc.config.revertchanges

    rpc.cron.getlist

    rpc.cron.set

    rpc.diskmgmt.sethdparm

    rpc.diskmgmt.wipe

    rpc.emailnotification.set

    rpc.exec.getoutput

    rpc.exec.isrunning

    rpc.exec.stop

    rpc.filesystemmgmt.create

    rpc.filesystemmgmt.delete

    rpc.filesystemmgmt.enumeratemountedfilesystems

    rpc.filesystemmgmt.hasfilesystem

    rpc.filesystemmgmt.mount

    rpc.filesystemmgmt.resize

    rpc.filesystemmgmt.umount

    rpc.folderbrowser.get

    rpc.fstab.getbydir

    rpc.fstab.getbyfsname

    rpc.fstab.set

    rpc.ftp.setmodbanrule

    rpc.ftp.setmodtlssettings

    rpc.ftp.setsettings

    rpc.ftp.setshare

    rpc.iptables.setrule

    rpc.iptables.setrules

    rpc.iptables.setrules6

    rpc.logfile.clear

    rpc.logfile.getcontent

    rpc.logfile.getlist

    rpc.network.enumeratebondslaves

    rpc.network.enumeratebridgeslaves

    rpc.network.identify

    rpc.network.setbondiface

    rpc.network.setbridgeiface

    rpc.network.setethernetiface

    rpc.network.setgeneralsettings

    rpc.network.setproxy

    rpc.network.setvlaniface

    rpc.network.setwirelessiface

    rpc.nfs.setsettings

    rpc.nfs.setshare

    rpc.notification.isenabled

    rpc.notification.set

    rpc.notification.setlist

    rpc.omvextras.dobackports

    rpc.omvextras.docommand

    rpc.omvextras.dohold

    rpc.omvextras.doproxmox

    rpc.omvextras.setdocker

    rpc.omvextras.setsettings

    rpc.perfstats.set

    rpc.plugin.install

    rpc.plugin.remove

    rpc.plugin.upload

    rpc.powermgmt.set

    rpc.powermgmt.setscheduledjob

    rpc.quota.getbytypename

    rpc.quota.set

    rpc.quota.setbytypename

    rpc.raidmgmt.add

    rpc.raidmgmt.create

    rpc.raidmgmt.grow

    rpc.raidmgmt.remove

    rpc.resetperms.setsettings

    rpc.rsync.set

    rpc.rsyncd.setmodule

    rpc.rsyncd.setsettings

    rpc.session.login

    rpc.sharemgmt.copyprivileges

    rpc.sharemgmt.delete

    rpc.sharemgmt.getfileacl

    rpc.sharemgmt.getprivilegesbyrole

    rpc.sharemgmt.set

    rpc.sharemgmt.setfileacl

    rpc.sharemgmt.setprivileges

    rpc.sharemgmt.setprivilegesbyrole

    rpc.smart.setdevicesettings

    rpc.smart.setscheduledtest

    rpc.smart.setsettings

    rpc.smb.setsettings

    rpc.smb.setshare

    rpc.ssh.set

    rpc.syslog.setsettings

    rpc.system.reboot

    rpc.system.setdate

    rpc.system.settimesettings

    rpc.system.shutdown

    rpc.system.standby

    rpc.usermgmt.authuser

    rpc.usermgmt.deletegroup

    rpc.usermgmt.deleteuser

    rpc.usermgmt.getgroup

    rpc.usermgmt.getuser

    rpc.usermgmt.importgroup

    rpc.usermgmt.importuser

    rpc.usermgmt.setgroup

    rpc.usermgmt.setpasswordbycontext

    rpc.usermgmt.setsettings

    rpc.usermgmt.setuser

    rpc.usermgmt.setuserbycontext

    rpc.webgui.setsettings

    Registered filesystem backends:

    btrfs

    exfat

    ext

    ext2

    ext3

    ext4

    f2fs

    fuseblk

    hfsplus

    iso9660

    jfs

    msdos

    none

    ntfs

    reiserfs

    swap

    udf

    ufs

    umsdos

    vfat

    xfs

    Registered RPC services:

    apt

    certificatemgmt

    config

    cron

    diskmgmt

    emailnotification

    exec

    filesystemmgmt

    flashmemory

    folderbrowser

    fstab

    ftp

    iptables

    logfile

    network

    nfs

    notification

    omvextras

    perfstats

    plugin

    powermgmt

    quota

    raidmgmt

    resetperms

    rrd

    rsync

    rsyncd

    services

    sharemgmt

    smart

    smb

    ssh

    syslog

    system

    usermgmt

    webgui

    Registered modules:

    apt

    avahi

    certificates

    chrony

    collectd

    cpufrequtils

    cron

    cronapt

    email

    fstab

    ftp

    halt

    hdparm

    hostname

    hosts

    initramfs

    iptables

    issue

    mdadm

    monit

    nfs

    nginx

    omvextras

    pam

    phpfpm

    postfix

    profile

    proftpd

    quota

    rrdcached

    rsync

    rsyncd

    rsyslog

    samba

    sharedfolders

    smartmontools

    ssh

    sysctl

    systemd

    systemd-logind

    systemd-networkd

    task

    timezone

    webadmin

    webserver

    zeroconf

    SIGCHLD received ...

    Child process forked (pid=8696)

    Executing RPC (service=System, method=getInformation, params=null, context={"username":"admin","role":1}) ...

    RPC response (service=System, method=getInformation): {"response":{"ts":1679871502,"time":"Mon Mar 27 00:58:22 2023","hostname":"OMVPi","version":"5.6.26-1 (Usul)","cpuModelName":"ARMv7 Processor rev 4 (v7l)","cpuUsage":0,"memTotal":"968052736","memUsed":"215674880","kernel":"Linux 5.10.103-v7+","uptime":"0 days 0 hours 32 minutes 2 seconds","loadAverage":"0.60, 0.71, 0.67","configDirty":false,"rebootRequired":false,"pkgUpdatesAvailable":false},"error":null}

    SIGCHLD received ...

    Child (pid=8696) terminated with exit code 0

    Child process forked (pid=8708)

    Executing RPC (service=System, method=getInformation, params=null, context={"username":"admin","role":1}) ...

    RPC response (service=System, method=getInformation): {"response":{"ts":1679871507,"time":"Mon Mar 27 00:58:27 2023","hostname":"OMVPi","version":"5.6.26-1 (Usul)","cpuModelName":"ARMv7 Processor rev 4 (v7l)","cpuUsage":0,"memTotal":"968052736","memUsed":"216547328","kernel":"Linux 5.10.103-v7+","uptime":"0 days 0 hours 32 minutes 8 seconds","loadAverage":"0.55, 0.69, 0.67","configDirty":false,"rebootRequired":false,"pkgUpdatesAvailable":false},"error":null}

    SIGCHLD received ...

    Child (pid=8708) terminated with exit code 0

    Child process forked (pid=8715)

    Executing RPC (service=System, method=getInformation, params=null, context={"username":"admin","role":1}) ...

    RPC response (service=System, method=getInformation): {"response":{"ts":1679871512,"time":"Mon Mar 27 00:58:32 2023","hostname":"OMVPi","version":"5.6.26-1 (Usul)","cpuModelName":"ARMv7 Processor rev 4 (v7l)","cpuUsage":0,"memTotal":"968052736","memUsed":"216514560","kernel":"Linux 5.10.103-v7+","uptime":"0 days 0 hours 32 minutes 13 seconds","loadAverage":"0.83, 0.75, 0.68","configDirty":false,"rebootRequired":false,"pkgUpdatesAvailable":false},"error":null}

    SIGCHLD received ...




    I'm now able to connect using webUI but I've now following error:

    Invalid RPC response. Please check the syslog for more information.

    Error #0:

    OMV\Rpc\Exception: Invalid RPC response. Please check the syslog for more information. in /usr/share/php/openmediavault/rpc/rpc.inc:187

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call('ShareMgmt', 'enumerateShared...', Array, Array, 3)

    #1 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()

    #2 {main}

    • Offizieller Beitrag

    Did you compare the corrupted file with the source?


    openmediavault/ext2.inc at master · openmediavault/openmediavault
    openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. It contains services like SSH, (S)FTP, SMB/CIFS, DAAP…
    github.com


    What is the output of dpkg -V?

    Maybe your SD card is dead.

  • Thanks to provide the source code link of the file ;) .

    But I moved to OMV v6 8) because as mentionned v5 is obsolete.


    Regarding the SD card, I suspect like you It was dead (some sectors) but I test it succesfully using h2testw v1.4 tool.... strange :?:


    Anyway, I can't investigate anymore due to migration.

    Thanks guys for your support & help. :thumbup:

Jetzt mitmachen!

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