Beiträge von sbocquet

    Hi,

    After each OMV update, I would like to run some commands automatically... not something very complicated, like re-set my dark web theme and the graph size in OMV stats pages for example.

    This could be done with those CLI commands :


    Code
    # Dark OMV theme
    cd /var/www/openmediavault/css; cp defaults.sav defaults.scss
    make all; chown openmediavault-webgui:openmediavault-webgui *; chmod 664 *;
    
    
    # OMV Graphs
    sed -i 's/400/1400/' /usr/sbin/omv-mkrrdgraph; sed -i 's/120/200/' /usr/sbin/omv-mkrrdgraph;


    So... Should I stay with a script that I have to manually run after each upgrade, or is there a nice way to automatically execute those commands after each update (salt ?).

    Any idea is welcome... ;)

    If you have not pressed the Apply button in the UI then nothing should have happened. The latest version 5.6.21 has marked the nginx, host and postfix modules as dirty, thus their configuration is re-deployed on pressing Apply. But there are no changes in the code, except that the IPv6 detection has been improved/fixed, thus it can happen that now only IPv4 configuration is generated if IPv6 is not configured.

    Thanks Volker ( votdev), you point me in the right direction once again ;) As you said, no IPv6 was configured in those servers... but the nginx reverse proxy conf file was "misconfigured" !


    Modified the configuration from

    Code
    listen [::]:80;
    listen [::]:443 ssl http2;

    to

    Code
    listen 80;
    listen 443 ssl http2;


    Big thanks both of you for your time.

    You do not find anything in the error log, because nginx does not consider it an error, but redirects to the main server.

    Did you have a chance to compare the nginx -T between working and non working servers?

    Can you compare the versions of nginx between working and non working? (nginx -v)

    Nginx -T are the same... so same broken reverse proxy.
    Nginx is v1.14.2, the latest package from debian repo.

    The fact that I'm sure is :
    - they have exactly the same nginx/proxy config files.
    - this morning, I update from v5.6.20 to v5.6.21 the first server; reverse proxy stopped just after (<1 min).
    - this afternoon, I updated the second server, reverse proxy stopped just after (<1 min).

    Log file from QB access and error are empty since the update, and the access are logged in OMV access log file....


    OMV access log file :

    Code
    Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13"
    91.212.21.220 - - [02/Dec/2021:15:18:49 +0100] "GET / HTTP/1.1" 200 1279 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13"
    127.0.0.1 - - [02/Dec/2021:15:18:53 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"
    127.0.0.1 - - [02/Dec/2021:15:18:53 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"


    OMV error log file

    Code
    91.212.21.220 - - [02/Dec/2021:15:25:25 +0100] "GET /favicon.ico HTTP/1.1" 200 1406 "https://torrent.myURL.fr/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13"
    127.0.0.1 - - [02/Dec/2021:15:25:54 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"
    127.0.0.1 - - [02/Dec/2021:15:25:54 +0100] "GET / HTTP/1.1" 200 3436 "-" "Monit/5.26.0"

    Just updated the other server and reverse proxy is broken too with v5.6.21... so for sure, this is related to the update.

    So, started nginx in cli mode, and everything is normal... no error code. I'm lost !


    OMV Update :


    Latest known got access :


    tail -f qbittorrent-webgui_access.log

    Code
    ::ffff:91.212.21.220 - - [02/Dec/2021:09:03:54 +0100] "POST /api/v2/rss/items?kwonl09y HTTP/2.0" 200 65605 "https://torrent.myInternetURL.fr/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.20 Safari/537.36 Edg/97.0.1072.13"

    Hi,

    I'm facing a reverse proxy problem since this morning.
    I have a qbittorrent-nox server running on my NAS, listening on port 8080 for the WebUI.
    I setup a reverse proxy on nginx in order to access it from the internet with an URL on port 443.


    It used to work fine but until the last update (v5.6.21) this morning. I have checked the changelog but nothing seems related.

    Anyway, when I try to access https://torrent.myInternetURL.fr, I have the OMV WebUI page instead of the qBittorrent page, like no redirection is done.
    If I try to access directly the qBittorrent WebUI with http://torrent.myInternetURL.fr:8080, I have the correct page.

    I can't figure out what could have changed to brake te redirection...
    Any Web server expert here ?

    Thanks

    OK, I'm trying something else :

    "regex" => "^(\S+\s+\S+)[.]\S+\s+(.*)$" (don't take the milliseconds in the first parsed group)



    and

    return strpdate($v,"Y-m-d H:i:s"); (idem)

    Should work after a reboot... but this time, got nothing in the web page!


    How can I test that without rebooting my NAS every time I need to test the engined and/or the webUI ?

    Hi,

    I've just rebooted my server and... the entry is here (see attachment) !

    Still have some problems to parse the date of the log file. I use
    strpdate($v,"Y-m-d H:i:s")

    and the log format is :


    Code
    2021-Nov-29 10:36:27.3431674    Starting a sync with OneDrive
    2021-Nov-29 10:36:27.343256     Syncing changes from OneDrive ...
    2021-Nov-29 10:36:30.0845614    Sync with OneDrive is complete


    Maybe the milliseconds ? How can I solve this ?

    Thx

    Hi,

    Just started to use BorgBackup last week, and I have the same 'complain' on email spamming. . I was using rsync with scheduled jobs before, and could manage which job would send me an email.

    In fact, I run multiple backups of my filesystems , but one is running every hour on a specific directory.
    No need to say that an email every hour is a bit annoying. Even if I understand all that was said before on crontab and other, I would really appreciate if I can disable this 'feature' on a specific backup.

    All that said, thanks for the plugin @ryecoaaron

    Hi,

    Thx for the link. Unfortunatly, I can't get this too work :(

    Maybe someone could point my error. Here are the conf. files.


    root@home-server:~# ls -al /usr/share/openmediavault/engined/inc/*

    -rw-r--r-- 1 root root 1155 May 14 15:41 /usr/share/openmediavault/engined/inc/10rootdevicefile.inc

    -rw-r--r-- 1 root root 988 May 14 15:41 /usr/share/openmediavault/engined/inc/30datamodel.inc

    -rw-r--r-- 1 root root 1538 May 14 15:41 /usr/share/openmediavault/engined/inc/60filesystembackend.inc

    -rw-r--r-- 1 root root 1432 May 14 15:41 /usr/share/openmediavault/engined/inc/60networkinterfacebackend.inc

    -rw-r--r-- 1 root root 1434 May 14 15:41 /usr/share/openmediavault/engined/inc/60storagedevicebackend.inc

    -rw-r--r-- 1 root root 1393 May 14 15:41 /usr/share/openmediavault/engined/inc/90clamav.inc

    -rw-r--r-- 1 root root 11631 May 14 15:41 /usr/share/openmediavault/engined/inc/90logfilespec.inc

    -rw-r--r-- 1 root root 1383 Sep 2 16:34 /usr/share/openmediavault/engined/inc/90onedrive.inc


    90onedrive.inc


    root@home-server:~# ls -al /var/www/openmediavault/js/omv/module/admin/diagnostic/log/plugin/

    total 68

    drwxrwxr-x 2 openmediavault-webgui openmediavault-webgui 4096 Sep 2 16:57 .

    drwxrwxr-x 3 openmediavault-webgui openmediavault-webgui 4096 Jul 30 09:22 ..

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2482 Jul 4 18:55 Apt.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2163 Jul 4 18:55 Auth.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1974 Jul 4 18:55 Boot.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1998 Jun 13 13:06 ClamAV.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2167 Jul 4 18:55 Daemon.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 6380 Jul 4 18:55 Ftp.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2181 Jul 4 18:55 Messages.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2009 Sep 2 16:47 Onedrive.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2227 Jul 4 18:55 Plugin.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2027 Jul 4 18:55 Rsyncd.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 1995 Jul 4 18:55 Rsync.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2023 Jul 4 18:55 Smart.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 3725 Jul 4 18:55 Smb.js

    -rw-rw-r-- 1 openmediavault-webgui openmediavault-webgui 2167 Jul 4 18:55 Syslog.js



    I think that the parsing of the log file is maybe the error because of the milliseconds, but it should create the entry in the WebUI even if the parse doesn't work, no ?

    Code
    return strpdate($v,"Y-m-d H:i:s");"

    Here is the log file

    Code
    2021-Sep-07 09:38:16.6625359    Configuring Global Azure AD Endpoints
    2021-Sep-07 09:38:17.3047206    Initializing the Synchronization Engine ...
    2021-Sep-07 09:38:17.3047814    Initializing monitor ...
    2021-Sep-07 09:38:17.3048137    OneDrive monitor interval (seconds): 120
    2021-Sep-07 09:38:18.828254     Trying to delete item Images/Pellicule/IMG_20210819_172831.jpg
    2021-Sep-07 09:38:18.8292999    Trying to delete item Images/Pellicule/IMG_20210820_103229.jpg
    2021-Sep-07 09:38:18.8301002    Trying to delete item Images/Pellicule/IMG_20210819_172918.jpg
    2021-Sep-07 09:38:18.8308931    Trying to delete item Images/Pellicule/IMG_20210828_192632.jpg
    2021-Sep-07 09:38:18.8317183    Trying to delete item Documents/Professionnels/CV Stéphane BOCQUET - CPSI.pdf
    2021-Sep-07 09:38:18.8325246    Trying to delete item Images/Pellicule/Screenshot_20210830-140425_65dd53f706ee14f7c817b7f96db127ea.jpg


    Any Idea or Help is appreciated.

    Thanks