Shared Folders

    • OMV 5.x (beta)
    • Shared Folders

      I'm always here asking questions ...
      Now that I finally got to install Docker / Portainer, while trying to create a Shared folder, I get 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 systemd 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function) /usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function) debian: ---------- ID: remove_sharedfolder_mount_unit_files Function: module.run Result: True Comment: file.find: ['/etc/systemd/system/sharedfolders-Films.mount', '/etc/systemd/system/sharedfolders-MOD.mount', '/etc/systemd/system/sharedfolders-appdata.mount', '/etc/systemd/system/sharedfolders-docker.mount'] Started: 13:15:18.483280 Duration: 4.259 ms Changes: ---------- file.find: - /etc/systemd/system/sharedfolders-Films.mount - /etc/systemd/system/sharedfolders-MOD.mount - /etc/systemd/system/sharedfolders-appdata.mount - /etc/systemd/system/sharedfolders-docker.mount ---------- ID: configure_sharedfolder_Films_mount_unit_file Function: file.managed Name: /etc/systemd/system/sharedfolders-Films.mount Result: True Comment: File /etc/systemd/system/sharedfolders-Films.mount updated Started: 13:15:18.490824 Duration: 4.402 ms Changes: ---------- diff: New file mode: 0644 ---------- ID: configure_sharedfolder_docker_mount_unit_file Function: file.managed Name: /etc/systemd/system/sharedfolders-docker.mount Result: True Comment: File /etc/systemd/system/sharedfolders-docker.mount updated Started: 13:15:18.495370 Duration: 3.178 ms Changes: ---------- diff: New file mode: 0644 ---------- ID: configure_sharedfolder_appdata_mount_unit_file Function: file.managed Name: /etc/systemd/system/sharedfolders-appdata.mount Result: True Comment: File /etc/systemd/system/sharedfolders-appdata.mount updated Started: 13:15:18.498671 Duration: 3.079 ms Changes: ---------- diff: New file mode: 0644 ---------- ID: configure_sharedfolder_MOD_mount_unit_file Function: file.managed Name: /etc/systemd/system/sharedfolders-MOD.mount Result: True Comment: File /etc/systemd/system/sharedfolders-MOD.mount updated Started: 13:15:18.501874 Duration: 3.067 ms Changes: ---------- diff: New file mode: 0644 ---------- ID: sharedfolder_mount_units_systemctl_daemon_reload Function: module.run Name: service.systemctl_reload Result: True Comment: Started: 13:15:18.505063 Duration: 0.376 ms Changes: ---------- ID: enable_sharedfolder_Films_mount_unit Function: service.enabled Name: sharedfolders-Films.mount Result: True Comment: Service sharedfolders-Films.mount is already enabled, and is in the desired state Started: 13:15:19.368612 Duration: 383.198 ms Changes: ---------- ID: restart_sharedfolder_Films_mount_unit Function: module.run Result: True Comment: service.restart: True Started: 13:15:19.752427 Duration: 60.442 ms Changes: ---------- service.restart: True ---------- ID: enable_sharedfolder_docker_mount_unit Function: service.enabled Name: sharedfolders-docker.mount Result: True Comment: Service sharedfolders-docker.mount is already enabled, and is in the desired state Started: 13:15:19.813359 Duration: 33.628 ms Changes: ---------- ID: restart_sharedfolder_docker_mount_unit Function: module.run Result: False Comment: An exception occurred in this state: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/salt/state.py", line 1919, in call **cdata['kwargs']) File "/usr/lib/python3/dist-packages/salt/loader.py", line 1918, in wrapper return f(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 558, in _decorate return self._call_function(kwargs) File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 263, in _call_function raise error File "/usr/lib/python3/dist-packages/salt/utils/decorators/__init__.py", line 250, in _call_function return self._function(*args, **kwargs) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 294, in run func_args=kwargs.get(func)) File "/usr/lib/python3/dist-packages/salt/states/module.py", line 358, in _call_function mret = __salt__[name](*arg_type, **func_kw) File "/usr/lib/python3/dist-packages/salt/modules/systemd.py", line 906, in restart raise CommandExecutionError(_strip_scope(ret['stderr'])) salt.exceptions.CommandExecutionError: Job for sharedfolders-docker.mount failed. See "systemctl status sharedfolders-docker.mount" and "journalctl -xe" for details. Started: 13:15:19.847574 Duration: 42.302 ms Changes: ---------- ID: enable_sharedfolder_appdata_mount_unit Function: service.enabled Name: sharedfolders-appdata.mount Result: True Comment: Service sharedfolders-appdata.mount is already enabled, and is in the desired state Started: 13:15:19.890366 Duration: 39.046 ms Changes: ---------- ID: restart_sharedfolder_appdata_mount_unit Function: module.run Result: True Comment: service.restart: True Started: 13:15:19.930192 Duration: 59.132 ms Changes: ---------- service.restart: True ---------- ID: enable_sharedfolder_MOD_mount_unit Function: service.enabled Name: sharedfolders-MOD.mount Result: True Comment: Service sharedfolders-MOD.mount is already enabled, and is in the desired state Started: 13:15:19.989799 Duration: 36.434 ms Changes: ---------- ID: restart_sharedfolder_MOD_mount_unit Function: module.run Result: True Comment: service.restart: True Started: 13:15:20.026865 Duration: 61.486 ms Changes: ---------- service.restart: True ---------- ID: configure_tmp_mount_unit_file Function: file.managed Name: /etc/systemd/system/tmp.mount Result: True Comment: File /etc/systemd/system/tmp.mount is in the correct state Started: 13:15:20.088841 Duration: 33.017 ms Changes: ---------- ID: tmp_mount_unit_systemctl_daemon_reload Function: module.run Name: service.systemctl_reload Result: True Comment: State was not run because none of the onchanges reqs changed Started: 13:15:20.122760 Duration: 0.004 ms Changes: Summary for debian ------------- Succeeded: 15 (changed=8) Failed: 1 ------------- Total states run: 16 Total run time: 767.050 ms
    • Other error not previously reported:

      Errore #0: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 systemd 2>&1' with exit code '1': /usr/lib/python3/dist-packages/salt/modules/file.py:32: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function)/usr/lib/python3/dist-packages/salt/utils/decorators/signature.py:31: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly *salt.utils.args.get_function_argspec(original_function)debian:----------
    • To be honest, an error message does not really help, we need a detailed description of the workflow how to reproduce this issue.
      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
    • Hi, i have the same error.

      Did you use thie video ? ==> youtube.com/watch?v=acQyhzJNEX8

      [Blocked Image: https://imgur.com/Uax7lIV]

      I have a clean install of OMV 5.0.10 I SETUP SHAREDFOLDERS/Docker for docker storage and after that is not possible to to make change for OMV sharedfolders... after klicking apply always get this error message.

      [Blocked Image: https://imgur.com/1PJ2juT]


      Im not sure if the problem come for the change of the docker storage location ????


      Anyone have solution for this problem.



      // sorry for my english //
    • Don't use /sharedfolder/xxx path for that (it's not meant for this scenario, only on CLI). The video is doing it WRONG. You need to use the /srv/<DEVICE>/<SHAREDFOLDER> path.
      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
    • Resolved issue


      Step by step :

      1: Just check if the Docker service is active ==> systemctl status docker [screenshot imgur.com/dQAYasn ]

      2: Stop Docker service ==> service docker stop // I have no other container as active state in portainer... if you have it i think you should stop before do that.

      3: Made change in OMV Sharedfolders ( add/remove / edit /etc.. )

      // Now they have no error message like: Failed unmounting Mount shared folder docker to /sharedfolders/docker. or DeprecationWarning: Using or importing the ABCs from 'collections' instead of from
      'collections.abc' is deprecated, and in 3.8 it will stop working bla bla bla .....


      4: ReStart Docker service ==> service docker start


      5 : Check if Docker service is active [ systemctl status docker ] and go to portainer to start your container.



      have a good day :thumbsup:
    • Mick.Ordi wrote:

      Resolved issue


      Step by step :

      1: Just check if the Docker service is active ==> systemctl status docker [screenshot imgur.com/dQAYasn ]

      2: Stop Docker service ==> service docker stop // I have no other container as active state in portainer... if you have it i think you should stop before do that.

      3: Made change in OMV Sharedfolders ( add/remove / edit /etc.. )

      // Now they have no error message like: Failed unmounting Mount shared folder docker to /sharedfolders/docker. or DeprecationWarning: Using or importing the ABCs from 'collections' instead of from
      'collections.abc' is deprecated, and in 3.8 it will stop working bla bla bla .....


      4: ReStart Docker service ==> service docker start


      5 : Check if Docker service is active [ systemctl status docker ] and go to portainer to start your container.



      have a good day :thumbsup:
      Hey, I just had the same issue here and your solution worked. Thank you for sharing!
    • Users Online 2

      2 Guests