OpenMediaVault-Plugin-Developers / installScript

script that installs omv-extras and openmediavault if not installed already.
1.1k stars 207 forks source link

installation script failed on odroid-hc2 #5

Closed JanJenicek closed 4 years ago

JanJenicek commented 4 years ago

SBC: Odroid-HC2 Running: Armbian_19.11.7_Odroidxu4_buster_current_5.4.3_minimal.7z Script output:

Setting up samba (2:4.9.5+dfsg-5+deb10u1) ...
Adding group `sambashare' (GID 118) ...
Done.
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Job for smbd.service failed because a timeout was exceeded.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
● smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; disabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Sat 2020-01-11 15:18:11 UTC; 32ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 21491 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
  Process: 21492 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=killed, signal=KILL)
 Main PID: 21492 (code=killed, signal=KILL)

Jan 11 15:14:54 odroidxu4 systemd[1]: Starting Samba SMB Daemon...
Jan 11 15:16:24 odroidxu4 systemd[1]: smbd.service: Start operation timed out. Terminating.
Jan 11 15:17:55 odroidxu4 systemd[1]: smbd.service: State 'stop-sigterm' timed out. Killing.
Jan 11 15:17:55 odroidxu4 systemd[1]: smbd.service: Killing process 21492 (smbd) with signal SIGKILL.
Jan 11 15:18:11 odroidxu4 systemd[1]: smbd.service: Main process exited, code=killed, status=9/KILL
Jan 11 15:18:11 odroidxu4 systemd[1]: smbd.service: Failed with result 'timeout'.
Jan 11 15:18:11 odroidxu4 systemd[1]: Failed to start Samba SMB Daemon.
dpkg: error processing package samba (--configure):
 installed samba package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of openmediavault:
 openmediavault depends on samba; however:
  Package samba is not configured yet.

dpkg: error processing package openmediavault (--configure):
 dependency problems - leaving unconfigured
Setting up wsdd (0.5-1) ...
wsdd.service is a disabled or a static unit, not starting it.
Setting up liblvm2cmd2.03:armhf (2.03.02-3) ...
Setting up dmeventd (2:1.02.155-3) ...
Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket.
dm-event.service is a disabled or a static unit, not starting it.
Setting up lvm2 (2.03.02-3) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket.
Processing triggers for dbus (1.12.16-1) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-5.4.3-odroidxu4
update-initramfs: Converting to u-boot format
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for rsyslog (8.1901.0-1) ...
Processing triggers for systemd (241-7~deb10u2) ...
Processing triggers for php7.3-fpm (7.3.11-1~deb10u1) ...
Errors were encountered while processing:
 samba
 openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to install openmediavault package.
JanJenicek commented 4 years ago

I wrote this issue after several attempts to install OVM. After many more attempts and several SD cards I managed to install it. The problem was not in the installer. I did not use old SD cards, most of them was barely used. But still cause problems. Please close the issue.

JanJenicek commented 4 years ago

Probably not an installer issue but still I am experiencing lot of troubles after installation.

When I try to add interface in Network section: {"response":null,"error":{"code":0,"message":"The property 'options' does not exist in the model 'conf.system.network.interface'.","trace":"OMV\\AssertException: The property 'options' does not exist in the model 'conf.system.network.interface'. in \/usr\/share\/php\/openmediavault\/config\/configobject.inc:71\nStack trace:\n#0 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(186): OMV\\Config\\ConfigObject->assertExists('options')\n#1 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(271): OMV\\Config\\ConfigObject->set('options', '', true)\n#2 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(233): OMV\\Config\\ConfigObject->setFlatAssoc(Array, true, false)\n#3 \/usr\/share\/openmediavault\/engined\/rpc\/network.inc(135): OMV\\Config\\ConfigObject->setAssoc(Array)\n#4 \/usr\/share\/openmediavault\/engined\/rpc\/network.inc(542): Engined\\Rpc\\Network->setInterfaceConfig(Array, Array)\n#5 [internal function]: Engined\\Rpc\\Network->setEthernetIface(Array, Array)\n#6 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#7 \/usr\/share\/php\/openmediavault\/rpc\/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('setEthernetIfac...', Array, Array)\n#8 \/usr\/sbin\/omv-engined(537): OMV\\Rpc\\Rpc::call('Network', 'setEthernetIfac...', Array, Array, 1)\n#9 {main}"}} Via firstaid I was able to configure it.

But still getting similar error while trying to enable samba: {"response":null,"error":{"code":0,"message":"The property 'localmaster' does not exist in the model 'conf.service.smb'.","trace":"OMV\\AssertException: The property 'localmaster' does not exist in the model 'conf.service.smb'. in \/usr\/share\/php\/openmediavault\/config\/configobject.inc:71\nStack trace:\n#0 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(186): OMV\\Config\\ConfigObject->assertExists('localmaster')\n#1 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(271): OMV\\Config\\ConfigObject->set('localmaster', true, true)\n#2 \/usr\/share\/php\/openmediavault\/config\/configobject.inc(233): OMV\\Config\\ConfigObject->setFlatAssoc(Array, true, false)\n#3 \/usr\/share\/openmediavault\/engined\/rpc\/smb.inc(81): OMV\\Config\\ConfigObject->setAssoc(Array)\n#4 [internal function]: Engined\\Rpc\\Smb->setSettings(Array, Array)\n#5 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#6 \/usr\/share\/php\/openmediavault\/rpc\/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('setSettings', Array, Array)\n#7 \/usr\/sbin\/omv-engined(537): OMV\\Rpc\\Rpc::call('SMB', 'setSettings', Array, Array, 1)\n#8 {main}"}}

Error occurs also when entering Notification section: {"response":null,"error":{"code":0,"message":": The value is not an object.","trace":"OMV\\Json\\SchemaValidationException: : The value is not an object. in \/usr\/share\/php\/openmediavault\/json\/schema.inc:391\nStack trace:\n#0 \/usr\/share\/php\/openmediavault\/json\/schema.inc(285): OMV\\Json\\Schema->validateObject(Array, Array, '')\n#1 \/usr\/share\/php\/openmediavault\/json\/schema.inc(257): OMV\\Json\\Schema->validateType(Array, Array, '')\n#2 \/usr\/share\/php\/openmediavault\/rpc\/paramsvalidator.inc(59): OMV\\Json\\Schema->validate(Array)\n#3 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(179): OMV\\Rpc\\ParamsValidator->validate('[]')\n#4 \/usr\/share\/openmediavault\/engined\/rpc\/notification.inc(149): OMV\\Rpc\\ServiceAbstract->validateMethodParams(Array, 'rpc.common.obje...')\n#5 [internal function]: Engined\\Rpc\\Notification->get(Array, Array)\n#6 \/usr\/share\/php\/openmediavault\/rpc\/serviceabstract.inc(123): call_user_func_array(Array, Array)\n#7 \/usr\/share\/php\/openmediavault\/rpc\/rpc.inc(86): OMV\\Rpc\\ServiceAbstract->callMethod('get', Array, Array)\n#8 \/usr\/sbin\/omv-engined(537): OMV\\Rpc\\Rpc::call('Notification', 'get', Array, Array, 1)\n#9 {main}"}}

ryecoaaron commented 4 years ago

Clear your browser cache.

JanJenicek commented 4 years ago

Thank You! It seems to work fine now.