Cannot save configuration after fresh installation

    • OMV 5.x (beta)
    • Cannot save configuration after fresh installation

      I have installed OMV on orange PI plus 2.
      Installed Debian using armbian first and using softy/OMV.

      now i cannot save configuration in web interface it gives the following error.

      Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run collectd 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/utils/path.py:265: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if not isinstance(exes, collections.Iterable): Traceback (most recent call last): File "/usr/sbin/omv-salt", line 136, in <module> sys.exit(main()) File "/usr/sbin/omv-salt", line 132, in main cli() File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/sbin/omv-salt", line 121, in deploy_run result = caller.cmd("state.orchestrate", names) File "/usr/lib/python3/dist-packages/salt/client/__init__.py", line 2135, in cmd return self.sminion.functions[fun](*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/modules/state.py", line 359, in orchestrate pillarenv=pillarenv) File "/usr/lib/python3/dist-packages/salt/runners/state.py", line 128, in orchestrate orchestration_jid=orchestration_jid) File "/usr/lib/python3/dist-packages/salt/modules/state.py", line 1296, in sls initial_pillar=_get_initial_pillar(opts)) File "/usr/lib/python3/dist-packages/salt/state.py", line 4055, in __init__ self.client = salt.fileclient.get_file_client(self.opts) File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 68, in get_file_client }.get(client, RemoteClient)(opts) File "/usr/lib/python3/dist-packages/salt/fileclient.py", line 1386, in __init__ self.channel = salt.fileserver.FSChan(opts) File "/usr/lib/python3/dist-packages/salt/fileserver/__init__.py", line 883, in __init__ self.fs.update() File "/usr/lib/python3/dist-packages/salt/fileserver/__init__.py", line 500, in update self.servers[fstr]() File "/usr/lib/python3/dist-packages/salt/fileserver/roots.py", line 166, in update line = salt.utils.stringutils.to_unicode(line) File "/usr/lib/python3/dist-packages/salt/utils/stringutils.py", line 142, in to_unicode return _normalize(to_str(s, encoding, errors)) File "/usr/lib/python3/dist-packages/salt/utils/stringutils.py", line 102, in to_str raise exc # pylint: disable=raising-bad-type File "/usr/lib/python3/dist-packages/salt/utils/stringutils.py", line 95, in to_str return _normalize(s.decode(enc, errors)) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 0: invalid start byte


      my system info





      pls help me resolve this issue.
    • Sorry, can't reproduce this and have no idea what is going wrong. What locale do you use?

      Brainfuck Source Code

      1. root@omv5box:/home/vagrant# omv-salt deploy run collectd
      2. /usr/lib/python3/dist-packages/salt/utils/jinja.py:503: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
      3. if isinstance(values, collections.Hashable):
      4. omv5box:
      5. ----------
      6. ID: remove_collectd_conf_nut_plugin
      7. Function: file.absent
      8. Name: /etc/collectd/collectd.conf.d/nut.conf
      9. Result: True
      10. Comment: File /etc/collectd/collectd.conf.d/nut.conf is not present
      11. Started: 08:02:12.158266
      12. Duration: 0.393 ms
      13. Changes:
      14. ----------
      15. ID: configure_collectd_conf_df_plugin
      16. Function: file.managed
      17. Name: /etc/collectd/collectd.conf.d/df.conf
      18. Result: True
      19. Comment: File /etc/collectd/collectd.conf.d/df.conf is in the correct state
      20. Started: 08:02:12.158751
      21. Duration: 19.68 ms
      22. Changes:
      23. ----------
      24. ID: configure_collectd_conf_syslog_plugin
      25. Function: file.managed
      26. Name: /etc/collectd/collectd.conf.d/syslog.conf
      27. Result: True
      28. Comment: File /etc/collectd/collectd.conf.d/syslog.conf is in the correct state
      29. Started: 08:02:12.178530
      30. Duration: 0.921 ms
      31. Changes:
      32. ----------
      33. ID: configure_collectd_conf_memory_plugin
      34. Function: file.managed
      35. Name: /etc/collectd/collectd.conf.d/memory.conf
      36. Result: True
      37. Comment: File /etc/collectd/collectd.conf.d/memory.conf is in the correct state
      38. Started: 08:02:12.179532
      39. Duration: 0.929 ms
      40. Changes:
      41. ----------
      42. ID: configure_collectd_conf_interface_plugin
      43. Function: file.managed
      44. Name: /etc/collectd/collectd.conf.d/interface.conf
      45. Result: True
      46. Comment: File /etc/collectd/collectd.conf.d/interface.conf is in the correct state
      47. Started: 08:02:12.180541
      48. Duration: 4.996 ms
      49. Changes:
      50. ----------
      51. ID: configure_collectd_conf_cpu_plugin
      52. Function: file.managed
      53. Name: /etc/collectd/collectd.conf.d/cpu.conf
      54. Result: True
      55. Comment: File /etc/collectd/collectd.conf.d/cpu.conf is in the correct state
      56. Started: 08:02:12.185739
      57. Duration: 1.522 ms
      58. Changes:
      59. ----------
      60. ID: configure_collectd_conf_uptime_plugin
      61. Function: file.managed
      62. Name: /etc/collectd/collectd.conf.d/uptime.conf
      63. Result: True
      64. Comment: File /etc/collectd/collectd.conf.d/uptime.conf is in the correct state
      65. Started: 08:02:12.187386
      66. Duration: 1.215 ms
      67. Changes:
      68. ----------
      69. ID: configure_collectd_conf_rrdcached_plugin
      70. Function: file.managed
      71. Name: /etc/collectd/collectd.conf.d/rrdcached.conf
      72. Result: True
      73. Comment: File /etc/collectd/collectd.conf.d/rrdcached.conf is in the correct state
      74. Started: 08:02:12.188714
      75. Duration: 1.291 ms
      76. Changes:
      77. ----------
      78. ID: configure_collectd_conf_unixsock_plugin
      79. Function: file.managed
      80. Name: /etc/collectd/collectd.conf.d/unixsock.conf
      81. Result: True
      82. Comment: File /etc/collectd/collectd.conf.d/unixsock.conf is in the correct state
      83. Started: 08:02:12.190113
      84. Duration: 1.033 ms
      85. Changes:
      86. ----------
      87. ID: configure_collectd_conf_disk_plugin
      88. Function: file.managed
      89. Name: /etc/collectd/collectd.conf.d/disk.conf
      90. Result: True
      91. Comment: File /etc/collectd/collectd.conf.d/disk.conf is in the correct state
      92. Started: 08:02:12.191263
      93. Duration: 4.092 ms
      94. Changes:
      95. ----------
      96. ID: configure_collectd_conf_load_plugin
      97. Function: file.managed
      98. Name: /etc/collectd/collectd.conf.d/load.conf
      99. Result: True
      100. Comment: File /etc/collectd/collectd.conf.d/load.conf is in the correct state
      101. Started: 08:02:12.195457
      102. Duration: 1.0 ms
      103. Changes:
      104. ----------
      105. ID: prereq_collectd_service_monit
      106. Function: salt.state
      107. Result: True
      108. Comment: States ran successfully. Updating omv5box.
      109. Started: 08:02:12.197267
      110. Duration: 333.053 ms
      111. Changes:
      112. omv5box:
      113. ----------
      114. ID: remove_monit_nut_service
      115. Function: file.absent
      116. Name: /etc/monit/conf.d/openmediavault-nut.conf
      117. Result: True
      118. Comment: File /etc/monit/conf.d/openmediavault-nut.conf is not present
      119. Started: 08:02:12.423921
      120. Duration: 0.324 ms
      121. Changes:
      122. ----------
      123. ID: configure_monit_collectd_service
      124. Function: file.managed
      125. Name: /etc/monit/conf.d/openmediavault-collectd.conf
      126. Result: True
      127. Comment: File /etc/monit/conf.d/openmediavault-collectd.conf is in the correct state
      128. Started: 08:02:12.424314
      129. Duration: 5.003 ms
      130. Changes:
      131. ----------
      132. ID: configure_monit_nginx_service
      133. Function: file.managed
      134. Name: /etc/monit/conf.d/openmediavault-nginx.conf
      135. Result: True
      136. Comment: File /etc/monit/conf.d/openmediavault-nginx.conf is in the correct state
      137. Started: 08:02:12.429403
      138. Duration: 4.979 ms
      139. Changes:
      140. ----------
      141. ID: configure_monit_omv-engined_service
      142. Function: file.managed
      143. Name: /etc/monit/conf.d/openmediavault-engined.conf
      144. Result: True
      145. Comment: File /etc/monit/conf.d/openmediavault-engined.conf is in the correct state
      146. Started: 08:02:12.434495
      147. Duration: 5.713 ms
      148. Changes:
      149. ----------
      150. ID: configure_monit_rrdcached_service
      151. Function: file.managed
      152. Name: /etc/monit/conf.d/openmediavault-rrdcached.conf
      153. Result: True
      154. Comment: File /etc/monit/conf.d/openmediavault-rrdcached.conf is in the correct state
      155. Started: 08:02:12.440295
      156. Duration: 4.516 ms
      157. Changes:
      158. ----------
      159. ID: configure_monit_php-fpm_service
      160. Function: file.managed
      161. Name: /etc/monit/conf.d/openmediavault-phpfpm.conf
      162. Result: True
      163. Comment: File /etc/monit/conf.d/openmediavault-phpfpm.conf is in the correct state
      164. Started: 08:02:12.444893
      165. Duration: 4.481 ms
      166. Changes:
      167. ----------
      168. ID: configure_monit_system_service
      169. Function: file.managed
      170. Name: /etc/monit/conf.d/openmediavault-system.conf
      171. Result: True
      172. Comment: File /etc/monit/conf.d/openmediavault-system.conf is in the correct state
      173. Started: 08:02:12.449484
      174. Duration: 11.579 ms
      175. Changes:
      176. ----------
      177. ID: configure_monit_filesystem_service
      178. Function: file.managed
      179. Name: /etc/monit/conf.d/openmediavault-filesystem.conf
      180. Result: True
      181. Comment: File /etc/monit/conf.d/openmediavault-filesystem.conf is in the correct state
      182. Started: 08:02:12.461149
      183. Duration: 7.334 ms
      184. Changes:
      185. ----------
      186. ID: configure_default_monit
      187. Function: file.managed
      188. Name: /etc/default/monit
      189. Result: True
      190. Comment: File /etc/default/monit is in the correct state
      191. Started: 08:02:12.468589
      192. Duration: 1.734 ms
      193. Changes:
      194. ----------
      195. ID: configure_monit_monitrc
      196. Function: file.managed
      197. Name: /etc/monit/monitrc
      198. Result: True
      199. Comment: File /etc/monit/monitrc is in the correct state
      200. Started: 08:02:12.470441
      201. Duration: 10.091 ms
      202. Changes:
      203. ----------
      204. ID: test_monit_config
      205. Function: cmd.run
      206. Name: monit -t
      207. Result: True
      208. Comment: Command "monit -t" run
      209. Started: 08:02:12.481021
      210. Duration: 9.188 ms
      211. Changes:
      212. ----------
      213. pid:
      214. 3237
      215. retcode:
      216. 0
      217. stderr:
      218. stdout:
      219. Control file syntax OK
      220. ----------
      221. ID: reload_monit_service
      222. Function: service.running
      223. Name: monit
      224. Result: True
      225. Comment: The service monit is already running
      226. Started: 08:02:12.499793
      227. Duration: 27.63 ms
      228. Changes:
      229. Summary for omv5box
      230. -------------
      231. Succeeded: 12 (changed=1)
      232. Failed: 0
      233. -------------
      234. Total states run: 12
      235. Total run time: 92.572 ms
      236. ----------
      237. ID: configure_collectd_conf
      238. Function: file.managed
      239. Name: /etc/collectd/collectd.conf
      240. Result: True
      241. Comment: File /etc/collectd/collectd.conf is in the correct state
      242. Started: 08:02:12.530452
      243. Duration: 8.186 ms
      244. Changes:
      245. ----------
      246. ID: start_collectd_service
      247. Function: service.running
      248. Name: collectd
      249. Result: True
      250. Comment: The service collectd is already running
      251. Started: 08:02:12.544583
      252. Duration: 21.228 ms
      253. Changes:
      254. ----------
      255. ID: monitor_collectd_service
      256. Function: module.run
      257. Name: monit.monitor
      258. Result: True
      259. Comment:
      260. Started: 08:02:12.567613
      261. Duration: 1.706 ms
      262. Changes:
      263. ----------
      264. ID: install_mkrrdgraph_cron_job
      265. Function: file.managed
      266. Name: /etc/cron.d/openmediavault-mkrrdgraph
      267. Result: True
      268. Comment: File /etc/cron.d/openmediavault-mkrrdgraph is in the correct state
      269. Started: 08:02:12.569481
      270. Duration: 1.934 ms
      271. Changes:
      272. ----------
      273. ID: generate_rrd_graphs
      274. Function: cmd.run
      275. Name: /usr/sbin/omv-mkrrdgraph
      276. Result: True
      277. Comment: Command "/usr/sbin/omv-mkrrdgraph" run
      278. Started: 08:02:12.572180
      279. Duration: 1726.168 ms
      280. Changes:
      281. ----------
      282. pid:
      283. 3248
      284. retcode:
      285. 0
      286. stderr:
      287. stdout:
      288. Summary for omv5box
      289. -------------
      290. Succeeded: 17 (changed=2)
      291. Failed: 0
      292. -------------
      293. Total states run: 17
      294. Total run time: 2.129 s
      Display All
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • I am having similar errors and it is due to salt.

      If I check file "/usr/lib/python3/dist-packages/salt/utils/path.py" at line 265

      Source Code: /usr/lib/python3/dist-packages/salt/utils/path.py

      1. if not isinstance(exes, collections.Iterable):

      that should use collections.abc to work without warnings.

      I believe salt team should make a complete rework on this area.
      Or OMV may try to ignore DeprecationWarning.

      Regards,
      Gabriele
    • G3n3r0s0 wrote:

      I believe salt team should make a complete rework on this area.
      Or OMV may try to ignore DeprecationWarning.
      It's not possible to disable this warning in external libraries, but maybe someone can tell me the opposite.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • I'm having a very similar issue on a fresh Raspbian install with a Raspberry Pi 4. Looks like salt is again the problem. It occurs when I try to enable SBM and apply the configuration change. Annoyingly, the SBM share works perfectly, but I can't apply the change.

      Anyone find a solution to this?

      Brainfuck Source Code

      1. Error #0:
      2. OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run samba 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/utils/path.py:265: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
      3. if not isinstance(exes, collections.Iterable):
      4. shn-nas-raspberry-pi:
      5. ----------
      6. ID: configure_samba_global
      7. Function: file.managed
      8. Name: /etc/samba/smb.conf
      9. Result: True
      10. Comment: File /etc/samba/smb.conf updated
      11. Started: 08:08:04.447250
      12. Duration: 151.626 ms
      13. Changes:
      14. ----------
      15. diff:
      16. ---
      17. +++
      18. @@ -40,4 +40,3 @@
      19. write cache size = 524288
      20. getwd cache = yes
      21. socket options = TCP_NODELAY IPTOS_LOWDELAY
      22. -#======================= Share Definitions =======================
      23. ----------
      24. ID: configure_samba_shares
      25. Function: file.append
      26. Name: /etc/samba/smb.conf
      27. Result: True
      28. Comment: Appended 1 lines
      29. Started: 08:08:04.599213
      30. Duration: 142.485 ms
      31. Changes:
      32. ----------
      33. diff:
      34. ---
      35. +++
      36. @@ -40,3 +40,4 @@
      37. write cache size = 524288
      38. getwd cache = yes
      39. socket options = TCP_NODELAY IPTOS_LOWDELAY
      40. +#======================= Share Definitions =======================
      41. ----------
      42. ID: configure_samba_recyclebin_cron
      43. Function: file.managed
      44. Name: /etc/cron.daily/openmediavault-samba-recycle
      45. Result: True
      46. Comment: File /etc/cron.daily/openmediavault-samba-recycle is in the correct state
      47. Started: 08:08:04.742002
      48. Duration: 4.603 ms
      49. Changes:
      50. ----------
      51. ID: remove_samba_recyclebin_cron_scripts
      52. Function: module.run
      53. Result: True
      54. Comment: file.find: []
      55. Started: 08:08:04.748111
      56. Duration: 1.829 ms
      57. Changes:
      58. ----------
      59. file.find:
      60. ----------
      61. ID: configure_default_wsdd
      62. Function: file.managed
      63. Name: /etc/default/wsdd
      64. Result: True
      65. Comment: File /etc/default/wsdd is in the correct state
      66. Started: 08:08:04.750228
      67. Duration: 6.51 ms
      68. Changes:
      69. ----------
      70. ID: test_samba_service_config
      71. Function: cmd.run
      72. Name: samba-tool testparm --suppress-prompt
      73. Result: False
      74. Comment: Command "samba-tool testparm --suppress-prompt" run
      75. Started: 08:08:04.758398
      76. Duration: 204.32 ms
      77. Changes:
      78. ----------
      79. pid:
      80. 19438
      81. retcode:
      82. 255
      83. stderr:
      84. netbios name SHN-NAS-RASPBERRY-PI is not a valid netbios name
      85. ERROR: Invalid smb.conf
      86. stdout:
      87. # Global parameters
      88. [global]
      89. disable spoolss = Yes
      90. encrypt passwords = Yes
      91. getwd cache = Yes
      92. guest account = nobody
      93. log file = /var/log/samba/log.%m
      94. logging = syslog
      95. log level = 0
      96. max log size = 1000
      97. min receivefile size = 16384
      98. pam password change = Yes
      99. panic action = /usr/share/samba/panic-action %d
      100. passdb backend = tdbsam
      101. passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
      102. passwd program = /usr/bin/passwd %u
      103. printcap name = /dev/null
      104. server string = %h server
      105. socket options = TCP_NODELAY IPTOS_LOWDELAY
      106. unix extensions = Yes
      107. workgroup = WORKGROUP
      108. fruit:aapl = yes
      109. aio read size = 16384
      110. aio write size = 16384
      111. create mask = 0777
      112. directory mask = 0777
      113. use sendfile = Yes
      114. write cache size = 524288
      115. ----------
      116. ID: start_samba_service
      117. Function: service.running
      118. Name: smbd
      119. Result: False
      120. Comment: One or more requisite failed: omv.deploy.samba.default.test_samba_service_config
      121. Started: 08:08:04.988897
      122. Duration: 0.021 ms
      123. Changes:
      124. ----------
      125. ID: start_samba_service_nmbd
      126. Function: service.running
      127. Name: nmbd
      128. Result: False
      129. Comment: One or more requisite failed: omv.deploy.samba.default.start_samba_service
      130. Started: 08:08:04.989722
      131. Duration: 0.012 ms
      132. Changes:
      133. ----------
      134. ID: start_wsdd_service
      135. Function: service.running
      136. Name: wsdd
      137. Result: True
      138. Comment: The service wsdd is already running
      139. Started: 08:08:04.989851
      140. Duration: 86.218 ms
      141. Changes:
      142. Summary for shn-nas-raspberry-pi
      143. ------------
      144. Succeeded: 6 (changed=4)
      145. Failed: 3
      146. ------------
      147. Total states run: 9
      148. Total run time: 597.624 ms in /usr/share/php/openmediavault/system/process.inc:182
      149. Stack trace:
      150. #0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(60): OMV\System\Process->execute()
      151. #1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
      152. #2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
      153. #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      154. #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(149): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
      155. #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(588): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusvn...', '/tmp/bgoutput19...')
      156. #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(159): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure))
      157. #7 /usr/share/openmediavault/engined/rpc/config.inc(189): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array)
      158. #8 [internal function]: Engined\Rpc\Config->applyChangesBg(Array, Array)
      159. #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      160. #10 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array)
      161. #11 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1)
      162. #12 {main}
      Display All
    • asollie wrote:

      netbios name SHN-NAS-RASPBERRY-PI is not a valid netbios name
      Your hostname is too long.
      omv 5.3.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.5
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • asollie wrote:

      Right you are! A clean install with a shorter host name did the trick!
      You could have just changed the hostname in System -> Network -> General tab.
      omv 5.3.4 usul | 64 bit | 5.3 proxmox kernel | omvextrasorg 5.2.5
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Users Online 1

      1 Guest