Shared Folders

    • OMV 5.x (beta)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Shared Folders

      When I create a folder with Shared Folderes I get the following error:
      ( I tried to solve it like this thread Samba ) but the problem persists.


      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-Dockerapp.mount', '/etc/systemd/system/sharedfolders-docker.mount'] Started: 18:59:50.027245 Duration: 1.622 ms Changes: ---------- file.find: - /etc/systemd/system/sharedfolders-Dockerapp.mount - /etc/systemd/system/sharedfolders-docker.mount---------- 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: 18:59:50.029873 Duration: 1.729 ms Changes: ---------- diff: New file mode: 0644---------- ID: configure_sharedfolder_Dockerapp_mount_unit_file Function: file.managed Name: /etc/systemd/system/sharedfolders-Dockerapp.mount Result: True Comment: File /etc/systemd/system/sharedfolders-Dockerapp.mount updated Started: 18:59:50.031670 Duration: 1.328 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: 18:59:50.033066 Duration: 0.205 ms Changes:---------- 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: 18:59:50.435947 Duration: 136.757 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: 18:59:50.572945 Duration: 19.002 ms Changes:---------- ID: enable_sharedfolder_Dockerapp_mount_unit Function: service.enabled Name: sharedfolders-Dockerapp.mount Result: True Comment: Service sharedfolders-Dockerapp.mount is already enabled, and is in the desired state Started: 18:59:50.592206 Duration: 15.794 ms Changes:---------- ID: restart_sharedfolder_Dockerapp_mount_unit Function: module.run Result: True Comment: service.restart: True Started: 18:59:50.608247 Duration: 41.641 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: 18:59:50.650123 Duration: 14.177 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: 18:59:50.664675 Duration: 0.003 ms Changes:Summary for debian------------Succeeded: 9 (changed=4)Failed: 1------------Total states run: 10Total run time: 232.258 ms
    • If you check your log carefylly, you will find following:
      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.
      Try to run "systemctl status sharedfolders-docker.mount" and check why it failed.
      For additional information you can also check "journalctl -xe", but make sure you read the log at exactly the time the error occurred.
    • This is what come up with

      systemctl status sharedfolders-docker.mount

      ● sharedfolders-docker.mount - Mount shared folder docker to /sharedfolders/docker Loaded: loaded (/etc/systemd/system/sharedfolders-docker.mount; enabled; vendor preset: enabled) Active: active (mounted) since Sat 2019-08-31 08:32:28 CEST; 46s ago Where: /sharedfolders/docker What: /dev/sda4 Tasks: 0 (limit: 4915) Memory: 120.0K CGroup: /system.slice/sharedfolders-docker.mount


      I tried to create folders in sharedfolders, the folders are created but I can confirm them with the error indicated above. And at the same time I can't delete the folders created under Sharedfolders. I have no active Samba, the home is disabled.

      The post was edited 2 times, last by mig67 ().

    • The mount can't be restarted when it is in use. If it isn't restarted, it might not get changes.
      omv 5.0.10 usul | 64 bit | 5.0 proxmox kernel | omvextrasorg 5.1.1
      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!
    • So what happens if you just stop the docker service?

      systemctl stop docker

      Can you add shares then? I've had that problem on 4.0, but after an update it went away. Assuming you can.. you can then restart docker...

      systemctl start docker
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Shared Folders

      Even if I am not an expert but a simple user, I came to the conclusion that the problem is caused by an incompatibility of the Filesystem Union or mergerfs plugin. All my problems come up (because even with Omv4 I start having the same problems) when I start using this plugin. I wanted to avoid using Raid5 or Zfs1 but I think I have no other way. I read somewhere that the problem is caused by Systemd.