Posts by godzinilla

    If these drives are USB drives, you can use the USB backup plugin. It is made for this kind of usage.

    Once it is configured, this is the workflow:

    • manually connect the drive using USB
    • the drive is automatically mounted
    • the rsync jobs are executed
    • the drive is unmounted
    • you can get an email once it is completed
    • disconnect the drive

    Sounds promising :) I will try this method today and will go back to you with the results. Thanks :)

    macom is there any log for these jobs? In rsync logs I believe? Looks like it is working correctly. So It should start automatically just after plugging in the drive(s)?

    I have a simillar "problem" with my setup. I have two backup disks scheduled for weekly rsync tasks, and both are under samba shares. I am connecting these disks manually to my OMV machine only for backup purposes.

    Because of that I have a lot Syslog and Demon logs - 36 entries in one minute.

    Maybe there is some safe wat to unmount this kind of disk in the system without disabling all sharing points?

    So I have finally found what was wrong with my installation...

    When first deploying I have copied code shared by Thormir84 directly to the Portainer editor, changed some stuff and deployed it. Everything works as expected. After messing around with the config.php file, before decided to remove everything and start over I have copied compose text from Portainer editor directly to the newly opened tab in Notepad ++ without saving it as file. For the second and further installations I was using compose text copied directly from the Notepad++ to the Portainer editor.

    Please see below path and error log:

    /srv/dev-disk-by-uuid-1234/NEXTCLOUD/data:/var/www/html/data #PATH WHERE USER’S DATA ARE STORED
    delete_file: rmdir(data\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240#PATH WHERE USER'S DATA ARE STORED) failed: Device or resource busy (16),
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3],

    In log file there is an data\ path with these strange numbers like #320\#240 etc., and at the ending there is a comment #PATH WHERE(...). So I've removed whole comment with whitespaces till the to have it directly like this:


    And container was finally deployed without problems...

    So it looks like copying from the Portainer editor to Notepad++, or from the Notepad++ to the Portainer editor messed up my text file in processing white spaces and replaced it with some non-white space chars which Portainer took as the part of the path to create.

    Containers are running and nextcloud is accessible locally now. But I still have an problem with accessing it outside.

    Here is my config.php file:

    It is an original config.php file. I've just added this entry in the 'trusted_domains' variable: 1 => '',. Without this entry I am unable to acces my nextcloud from the outside - information that this site is must be added to the config.php file under trusted_domains variable is displayed.


    Found it!

    I have found the solution here:…c-client-on-linux/47549/4

    I have added these lines to my config.php file:

    'overwrite.cli.url' => '',
    'overwriteprotocol' => 'https',
    'overwritehost' => '',
    'trusted_proxies' =>
    array (
    0 => '',

    And it is loading now.

    It is working also in both configurations:

    'trusted_domains' =>
    array (
    0 => '',
    1 => '',


    'trusted_domains' =>
    array (
    0 => '',

    and also without this variable:

    'trusted_proxies' =>
    array (
    0 => '',

    Not sure which configuration is 100% correct (or which entires are 100% required) but at least it is working, also on my Android phone :)


    So I've messed something up with my nextcloud installation.

    First of all I was looking fot the solution to fix behaviour described above and while resolving it I messed up config.php file (I does not have an copy unfortunately).

    So I've removed all data connected with nextcloud from portainer - and for some reason nextcloud data folder and nextcloud config folder were not removed in this process. I need to remove it manually from my hard drive (via SMB) - changing permissions back to User was required to do this.

    After that I was trying to deploy nextcloud container using the same compose file, also with changed path to data/config file (e.g. Config/nxtcld instead of Config/nextcloud and NXTCLD instead of NEXTCLOUD for data). For some reason I am unable to make it to work again. Both containers (main and database) are deployed, but logs of nextcloud container shows me below information again and again:


    Initializing nextcloud ...,

    rsync: [generator] delete_file: rmdir(data\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240\#302\#240#PATH WHERE USER'S DATA ARE STORED) failed: Device or resource busy (16),

    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1330) [sender=3.2.3],

    The paths are 100% correct.

    Restart of the machine didn't help.

    I've even changed the port to other - didn't help.

    And I hear constant work of my hard drive while this process is in progress.

    Please help :(


    Additional observations:

    Folders Config/nextcloud (with all data created while deploying container) and /NEXTCLOUD/data are created and are accessible, but permissions for these folders are changed - I need to restore permissions of my root folder to delete these folders.

    Previously for correct installation these folders are also created but not accessible from SMB (permissions were also updated in this case).

    I have zero issues w/ Nextcloud being slow, except for when it first installs.. After about 10min, it's very responsive. I've read lots of complaints about the Android app. I don't use it, I just shortcut my Nextcloud homepage to the desktop of my phone. The webUI is pretty mobile friendly and I've had zero issues with it.

    It works ok when I am reaching it via my ip and port (locally), but it slows down when using proxy address. Maybe my proxy configuration is incorrect in some way? Or the config.php need some additional modifications?

    I am literally stuck on the login screen and the only way to pass it is to refresh the page. Very strange behaviour. Uploading / downloading data works ok, but just the GUI behaviour is very very slow.

    Every member of the family can have a personal account with user, pass and email (for notifications).

    The admin can set the maximun space avaiable for every account (unlimited, 1GB, 5GB, etc..).

    Every account can share one or more files/folders with other account or, with a link, with every other user.

    If you ever used OneDrive, Google Drive or similar services, Nextcloud is the same thing.

    Great, thank you again. I will try to install it now :)


    Installation succesful :) Accessing via server ip and custom port is working, but I have a problem with accessing with my custom proxy address.

    I've added proper entry in my nginx settings and when accessing the site information is displayed (from nextcloud) that this site is not on the trusted list and I need to add it to te config.php file under 'trusted_domains' section (just like in the example file config.sample.php). Unfortunately I am not able to edit this file, even when both containers are off. There is an information that file cannot be opened. I am able to open config.sample.php file.

    The same information I have received when trying to connect to my server via the Android Nextcloud app.

    So I've managed to "fix" this using this manual:

    [How-To] Nextcloud with swag (Letsencrypt) using OMV and docker-compose

    but instead of filling the 'trusted_domains' like on this manual I've set it as follows:

    'trusted_domains' =>
    array (
    0 => '',
    1 => 'my.proxy.address',

    and now it works from the website and the Android app, but the connection is way to slow. While logging from the Android app I am unable to pass logging window - logging data is entered and 'Log in' button pressed, but it keeps spinning and not logging at all. I have a similar situation when logging from my pc web browser but in this case simple 'F5' pass the logging screen and takes me to the Nextcloud app browser.

    Any thoughts about it?

    I also have an additional question. So the data is stored in the H:/NEXTCLOUD/data directory. I does not have an access to it via SMB - information that I do not have a privileges to access it displayed (without pointing to specific user). Should I add this directory to my shared folders under OMV settings and gave it root (users?) ACL?

    Yes, like OneDrive, Google Drive, Dropbox, etc....

    But, make attention:

    If you have, for example, a .ISO file that is 4GB large, and make a copy inside a folder of a nextcloud's account, on the NAS now you have 2x 4GB files because the data of any user on Nextcloud are stored separately inside "/var/www/html/data".

    Okay, thank you for clarification.

    My point of installing Nextcloud is to have a safer solution than for example FTP/SFTP (or simpler than e.g. OpenVPN) to share files between me and my friends/family.

    Last technical question is: how the sharing works? I need to create separate accounts for my members by myself? And these members can share uploaded files to their private space using simple download link, or giving me an access to their space from which I should be able to download their files (to my space, or directly to the hard drive?) - just like sharing folders in Google Drive?

    So the existing folders cannot be added? Of course there is possibility to move any data from the existing folders on the hard drive to the folder(s) connected to the nextcloud accounts (from eg. Windows Explorer via SMB connection)?

    You have to change "volumes" variables with your paths.

    In Nginx, simply create a sub-domain that point to "http://NEXTCLOUD_IP:9323" (you can change the port; in my case is 9323).


    And that is it? Great, thanks!

    What about giving access to admin user / custom users to the specific directory of my hard drive?

    In example I have directories as below (H is of course my OMV main drive):




    and H:/ to gice access to all stored directories and files.


    Should I add these entries directly in above code or should it by available from the Nextcloud gui directly?

    And what about this variable:


    is this my root password which I set in omv console / omv, or should I create a new one here? What is the difference between this and MYSQL_PASSWORD=YOUR_PASSWORD? Should these password be the same?

    What about the ports? All cases uses ports 80 and 443 which in my case are used for something else. I've attached a list of all my containers and assigned ports, aso with the list of forwarded ports set on my router (nextcloud entry is a remnant of a previous installation attempt which btw was successful, but only working via proxy/domain address set in nginx, not using the ip address and below port; anyway that installation was not correct so I need to remove it).


    I need a simple solution how to install and configure Nextcloud on my machine to get:

    - access to the service for users from the outside of my network,

    - access to all or specified data of my hard drive with ability to get some users folder too (per user),

    - accessing via dns/proxy (from the outside of my network).

    Right now I have configured NGINX with some custom connections to my plex server, omv gui and something else. Some ports are configured for all my existing containers, some of them (ports) are also opened in my router settings.

    There are some solutions available in the net, but all of them are just to simple (installing nextcloud on the machine without any other containers) or too complex (installing nextcloud, nginx, even portainer or so).

    Please tell me what information you need from my side to prepare a proper setup/configuration :)

    Thank you in advance.

    Blocking YouTube ads isn't possible with Adguard (or any other adblocking solution).

    To get rid of ads you need a "special" version of YouTube like Vanced but that only works on Android devices.

    Or buy a cheap YouTube Premium subscription in India. It will cost you less than 2 dollars a month and you will get YouTube Music on top.

    Thanks, I was waiting for this kind of reply :) I am using Vanced on my phone so this is no problem for me; on Windows Chrome there is nice addon for blocking YT ads too. So I need to look out for some solution specified for the LG webOS now.

    About YT Premium - would it be working on current account (I am in Google One right now), or I need a new account (created using India VPN or so?)?

    So I have reconfigured all my network devices to have:

    - static IPs,

    - DNS set to OMV IP,

    - second DNS (for devices which has that option) to default AdGuard DNS found on their website,

    - router DNS is cleared now, DHCP is still on.

    With these settings, in YouTube:

    - on my PC with Chrome web browser ads during playing videos on are still displayed,

    - the same for my LG B8 TV with webOS system (it has dedicated app),

    - and the same for all configured phones (also dedicated apps)


    - ads during viewing relations in Instagram, Facebook app are not blocked,

    - ads while playing games are blocked correctly (and when I try to start an in-game advertisement by myself it is also not loading),

    About the regular websites looks like not all ads are blocked (on all devices). But overall it looks like AdGuard is working there.


    I am looking for a solution to stream music files which are stored on my OMV server to the Android devices with dedicated app, with capabilities to stream high resolution audio files (such as 24 bit and more than 48 kHz files, DSD, etc) without resampling it by the software (on both sides).

    Right now I have DLNA activated for music files only and the client on Android side is BubbleUPNP player. Looks that untouched, bit-perfect audio is played from it to my DAC device connected to Android phone (via USB port), but BubbleUPNP application on Android is not quite user friendly, easy to use as main audio player.

    Do you have any thoughts about it? Thank you in advance.

    Hmm that sounds good so far. Especially when your phone shows the correct DNS it should use it. Is it the same with other devices connected via wifi? Can you go to Adguard and check the devices using it? I unfortunately don't know Adguard since I use Pihole. On Pihole there is a network overview that lists all network devices and if they use the correct DNS.

    That is more funnier that it sounds. Yestarday I was added more server addresses for 'main DNS servers' in AdGuard settings. By default it looks like this:


    And I have added some addresses found on AdGuard website, finally it looks like this:


    And with these settings ads are still showing on my Android device, but adult websites are blocked due to AdGuard Parent filters set it AG settings Oo So it looks like it partialy working, but why just partialy... :(

    Additionaly I have facing some issues with Android Apple Music not loading data, which are gone using LTE data.

    I have attached screenshoot of AG Dashboard. As you can see it looks like everything is working correctly. On the 'Top Clients' section there are all my home clients. Address of my OMV server is x.50.150, my windows PC is x.50.100, my Android device x.50.56 - there are requests from it too.

    What it does and what it's supposed to do are two different things :)

    As I suggested in my post doing a google search will give the answer, the PC is using a browser, the phone and TV are probably using the youtube app, (TV's are usually Android driven). The app behaves differently to a browser, but in the information I found there is a workaround

    I am using Chrome on my Android device. All with default settings. For YouTube I am using Vanced version which has built-it adblocker so it is not a problem for me. Main problem are ads in YouTube on my TV and ads on Android devices (mostly in Chrome, but in other apps too).

    HannesJo thanks for your explanations.


    1. My router is indeed DHCP server but I set IP of my OMV server and my Windows machine to static IP. IP6 is disabled on my router.

    2. OMV IP4 was set to DHCP as default but I have changed it (as TDL said) to Static with IP given in router settings, gateway is set to my router IP. IP6 is disabled for OMV.

    3. Internet card on my Windows machine shows IP4 adres given in the router settings. It also shows an IP6 address but it is marked as local IP6. For DNS there are IPs of my router and my OMV server.

    4. For the phone - connected to the 2.4 WiFi from my router - there is IP4 from DHCP server, gateway is my router IP and DNS are my router IP and OMV IP (the same as on Windows). There is also an IP6 address visible.

    No, as this is not an 'OMV AdGuard version' OMV has nothing to do with AdGuard and vise versa, just google blocking youtube ads using adguard and you'll find some answers.

    You surely know what I meant....

    Sounds like your wifi devices are not using the correct DNS. I would check that on one of them.

    In the other hand technodads videos are always just the very very basic config. Thats why I dont like them that much. Maybe the way he configured it does not work on your environment or he forgot to explain certain settings.

    I thought I need to configure my router only to point to my DNS server. He said that DNS IP address on router need to be set to IP address of OMV machine. Or maybe it need to be set to AdGuard IP instead ( ? What about DNS IP address set on OMV? There is

    Additionaly I have checked my information about my WiFi connection on my Android phone and under DNS IP it is pointing to my router IP address and OMV machine IP address.


    I have configured AdGuard on my OMV/Portainer using below video tutorial:

    On my Asus router - RT-AC85P I set my OMV address IP under LAN/DHCP Server/DNS and WINS settings section in field IP of DNS server (there is one additional field for WINS Server but nothing more (as primary and secondary DNS server IP). Everything else was set as TechnoDadLife said on his video.

    On my Windows 10 machine (connected to my router via ethernet cable) ads are blocked very well except ads on YouTube videos and on some webpages, which I am not using anyway - previously I was using AdGuard windows version with paid subscription and it works better than OMV version. Maybe there is a possibility to connect my AdGuard subscription (it is a lifetime subscription for one device) with OMV AdGuard version? Or just use it on my router directly to block all ads on my entire network?

    Anyway, blocking ads on my Android devices and LG B8 with webOS (on YouTube) are not working. Please anyone help with that.

    Oh man, I have ran into the similar problem some time ago, looks like it is goes back. I need to figure it out how to resolve it again. Or just buy another pci-e ethernet card (this one is built-in)... Thanks.


    So I have added new PIC-E Ethernet card to my machine and it goes back to life. Funny thing is that after plugging in the new card - my old card was visible in console using ip command, but I was unable to start it. After unplugging new card - old one dissapeared again. And another nice feature of the system is that my new ethernet card has the same name as the old one - enp1s0. Looks like this name is given automatically for the main ethernet card (in use).

    Which network adapters do you get listed in omv-firstaid?

    Thank you for the reply macom.

    List looks like below:

    • br-alphanumerical ('br-6ccffc0feac0' - looks like hexadecimal address)
    • br-abc
    • br-xyz
    • br-dfg
    • docker0
    • vethalphanumerical
    • vethabc
    • vethdef
    • vethghi
    • vethjkl
    • vethmno

    So four 'br-(...)' interfaces, six 'veth(...)' and 'docker0'. I have some stuff installed on my docker such as plex, torrent client, etc.

    Everything works perfect so would be great to have it back without loosing anything :(