Posts by sbocquet
-
-
Quick update...
I manage to get it work with HTTP with that conf file...Code
Display Moreserver { server_name torrent.mydomain.com; listen [::]:80; listen [::]:443 ssl; ssl_certificate /etc/ssl/certs/openmediavault-0e5a4bc0-4754-40ca-b31a-e55f79f57621.crt; ssl_certificate_key /etc/ssl/private/openmediavault-0e5a4bc0-4754-40ca-b31a-e55f79f57621.key; access_log /var/log/nginx/qbittorrent-webgui_access.log; error_log /var/log/nginx/qbittorrent-webgui_error.log; location / { proxy_pass http://127.0.0.1:8080; proxy_hide_header Referer; proxy_hide_header Origin; proxy_set_header Referer ''; proxy_set_header Origin ''; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $server_name:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; add_header Front-End-Https on; } }Unfortunatly, when I try to use https://torrent.mydomain.com, I'm still redirected to OMV web UI

Any idea ?EDIT : After some web browser cleaning (cookies, etc...), this qbittorrent.conf file seems to work !
-
Hi,
I currently have an OMV5 server with a LetsEncrypt wildcard certificate configured.
It can be acceded by https://home-server.mydomain.com from the internet.I also have a qBittorrent web UI that I can access from the internet with http://torrent.mydomain.com:8080
I'm trying to have a reverse proxy set in nginx for my qBittorrent web UI with the following URL at first : http://torrent.mydomain.com
Will try to set it to HTTPS in a second time with my wildcard certificate.I have created a nginx conf file for qbittorrent.
Code
Display Moreroot@home-server:/etc/nginx/sites-enabled# ls -al total 8 drwxr-xr-x 2 root root 4096 Aug 5 10:13 . drwxr-xr-x 9 root root 4096 Aug 1 15:47 .. lrwxrwxrwx 1 root root 40 Jul 30 22:05 openmediavault-webgui -> ../sites-available/openmediavault-webgui lrwxrwxrwx 1 root root 37 Aug 5 10:11 qbittorrent-webgui -> ../sites-available/qbittorrent-webgui root@home-server:/etc/nginx/sites-enabled# cat qbittorrent-webgui server { listen 80; server_name torrent.mydomain.com; access_log /var/log/nginx/qbittorrent-webgui_access.log; error_log /var/log/nginx/qbittorrent-webgui_error.log; location / { proxy_pass http://localhost:8080/; proxy_set_header X-Forwarded-Host $server_name:$server_port; proxy_hide_header Referer; proxy_hide_header Origin; proxy_set_header Referer ''; proxy_set_header Origin ''; add_header X-Frame-Options "SAMEORIGIN"; } }Here is the OMV5 conf file for nginx :
Code
Display Moreroot@home-server:/etc/nginx/sites-enabled# cat openmediavault-webgui # This file is auto-generated by openmediavault (https://www.openmediavault.org) # WARNING: Do not edit this file, your changes will get lost. server { server_name openmediavault-webgui; root /var/www/openmediavault; index index.php; autoindex off; server_tokens off; sendfile on; large_client_header_buffers 4 32k; client_max_body_size 25M; error_log /var/log/nginx/openmediavault-webgui_error.log error; access_log /var/log/nginx/openmediavault-webgui_access.log combined; error_page 404 = /404.php; location /404.html { internal; } location /extjs6/ { alias /usr/share/javascript/extjs6/; expires 2d; } location ~ ^/(css|js|images)/ { expires 2d; } location /favicon { expires 14d; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/run/php/php7.3-fpm-openmediavault-webgui.sock; fastcgi_index index.php; fastcgi_read_timeout 60s; include fastcgi.conf; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PHP_ADMIN_VALUE session.cookie_secure=On; } listen [::]:80 default_server ipv6only=off; listen [::]:443 default_server ipv6only=off ssl deferred; ssl_certificate /etc/ssl/certs/openmediavault-0e5a4bc0-4754-40ca-b31a-e55f79f57621.crt; ssl_certificate_key /etc/ssl/private/openmediavault-0e5a4bc0-4754-40ca-b31a-e55f79f57621.key; include /etc/nginx/openmediavault-webgui.d/*.conf; }
Anyway, it doesn't work but I can't see what I'm doing wrong here.Any idea ? Thx a lot.
-
Thx a lot. I think it will do the job for me.
-
Hi,
I've just setup a new OMV with OMV5 and just realized that there's no more links created in the /sharefolders directory.
Also, I have noticed that I have no sharedfolders-xxxxxx.mount file generated in /etc/systemd/system each time I create a new one.Is it a bug or not ? Seems strange to me.
Thx
-
Yes, I can... if I can make it work

-
Yep. I just installed it.
Strangely, openIPMI needs mysql-common and mariadb-common ! Can't understand why as they are not listed in this page
https://packages.debian.org/buster/openipmiCode
Display Moreroot@home-server:/etc/collectd/collectd.conf.d# apt install openipmi Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libmariadb3 libsnmp-base libsnmp30 mariadb-common mysql-common Suggested packages: snmp-mibs-downloader The following NEW packages will be installed: libmariadb3 libsnmp-base libsnmp30 mariadb-common mysql-common openipmi 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 4,428 kB of archives. After this operation, 8,490 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://deb.debian.org/debian buster/main amd64 mysql-common all 5.8+1.0.5 [7,324 B] Get:2 http://deb.debian.org/debian buster/main amd64 mariadb-common all 1:10.3.23-0+deb10u1 [32.0 kB] Get:3 http://deb.debian.org/debian buster/main amd64 libmariadb3 amd64 1:10.3.23-0+deb10u1 [171 kB] Get:4 http://deb.debian.org/debian buster/main amd64 libsnmp-base all 5.7.3+dfsg-5 [1,595 kB] Get:5 http://deb.debian.org/debian buster/main amd64 libsnmp30 amd64 5.7.3+dfsg-5 [2,324 kB] Get:6 http://deb.debian.org/debian buster/main amd64 openipmi amd64 2.0.25-2.1 [299 kB] Fetched 4,428 kB in 0s (19.1 MB/s) Selecting previously unselected package mysql-common. (Reading database ... 61100 files and directories currently installed.) Preparing to unpack .../0-mysql-common_5.8+1.0.5_all.deb ... Unpacking mysql-common (5.8+1.0.5) ... Selecting previously unselected package mariadb-common. Preparing to unpack .../1-mariadb-common_1%3a10.3.23-0+deb10u1_all.deb ... Unpacking mariadb-common (1:10.3.23-0+deb10u1) ... Selecting previously unselected package libmariadb3:amd64. Preparing to unpack .../2-libmariadb3_1%3a10.3.23-0+deb10u1_amd64.deb ... Unpacking libmariadb3:amd64 (1:10.3.23-0+deb10u1) ... Selecting previously unselected package libsnmp-base. Preparing to unpack .../3-libsnmp-base_5.7.3+dfsg-5_all.deb ... Unpacking libsnmp-base (5.7.3+dfsg-5) ... Selecting previously unselected package libsnmp30:amd64. Preparing to unpack .../4-libsnmp30_5.7.3+dfsg-5_amd64.deb ... Unpacking libsnmp30:amd64 (5.7.3+dfsg-5) ... Selecting previously unselected package openipmi. Preparing to unpack .../5-openipmi_2.0.25-2.1_amd64.deb ... Unpacking openipmi (2.0.25-2.1) ... Setting up mysql-common (5.8+1.0.5) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up libsnmp-base (5.7.3+dfsg-5) ... Setting up mariadb-common (1:10.3.23-0+deb10u1) ... update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up libmariadb3:amd64 (1:10.3.23-0+deb10u1) ... Setting up libsnmp30:amd64 (5.7.3+dfsg-5) ... Setting up openipmi (2.0.25-2.1) ... Processing triggers for systemd (241-7~deb10u4) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10) ... -
So far... the one from the collectd site
-
Hi,
I've just upgraded my NAS with a ASROCK x470D4U motherboard which have IPMI support.
I can see various stats from CPU or motherboard Temp to FAN speed, etc... with the ipmitool package from debian.Code
Display Moreroot@home-server:/etc/collectd# ipmitool sensor list 3VSB | 3.380 | Volts | ok | 2.880 | 3.040 | na | na | 3.700 | 3.880 5VSB | 5.070 | Volts | ok | 4.260 | 4.500 | na | na | 5.490 | 5.730 VCPU | 1.040 | Volts | ok | na | na | na | na | 1.650 | 1.730 VSOC | 1.040 | Volts | ok | 0.340 | 0.360 | na | na | 1.540 | 1.610 VCCM | 1.200 | Volts | ok | 1.020 | 1.080 | na | na | 1.320 | 1.380 APU_VDDP | 0.950 | Volts | ok | 0.770 | 0.810 | na | na | 1.160 | 1.210 3V | 3.400 | Volts | ok | 2.800 | 2.980 | na | na | 3.620 | 3.780 5V | 4.980 | Volts | ok | 4.260 | 4.500 | na | na | 5.490 | 5.730 12V | 12.100 | Volts | ok | 10.200 | 10.800 | na | na | 13.200 | 13.800 MB Temp | 40.000 | degrees C | ok | na | na | na | 55.000 | na | na Card side Temp | 41.000 | degrees C | ok | na | na | na | 68.000 | na | na CPU Temp | 46.000 | degrees C | ok | na | na | na | 93.000 | 94.000 | na DDR4_A2_Temp | na | degrees C | na | na | na | na | 84.000 | 85.000 | na DDR4_A1_Temp | 36.000 | degrees C | ok | na | na | na | 84.000 | 85.000 | na DDR4_B2_Temp | na | degrees C | na | na | na | na | 84.000 | 85.000 | na DDR4_B1_Temp | na | degrees C | na | na | na | na | 84.000 | 85.000 | na FAN1 | 1300.000 | RPM | ok | na | na | 100.000 | na | na | na FAN2 | 600.000 | RPM | ok | na | na | 100.000 | na | na | na FAN3 | 700.000 | RPM | ok | na | na | 100.000 | na | na | na FAN4 | 1300.000 | RPM | ok | na | na | 100.000 | na | na | na FAN5 | na | RPM | na | na | na | 100.000 | na | na | na FAN6 | na | RPM | na | na | na | 100.000 | na | na | na ChassisIntr | 0x0 | discrete | 0x0080| na | na | na | na | na | na CPU_PROCHOT | 0x0 | discrete | 0x0080| na | na | na | na | na | na CPU_THERMTRIP | 0x0 | discrete | 0x0080| na | na | na | na | na | na 1.05V_PROM_S5 | 1.060 | Volts | ok | 0.890 | 0.950 | na | na | 1.160 | 1.210 2.5V_PROM | 2.600 | Volts | ok | 2.120 | 2.260 | na | na | 2.740 | 2.880 1.05V_PROM_RUN | 1.020 | Volts | ok | 0.890 | 0.950 | na | na | 1.160 | 1.210 BAT | 3.060 | Volts | ok | 2.000 | 2.700 | na | na | 3.400 | 3.560However, i've tried to run the ipmi plugin in collectd with that config.
Coderoot@home-server:/etc/collectd/collectd.conf.d# cat ipmi.conf <Plugin "ipmi"> #Sensor "fanspeed" #Sensor "temperature" #Sensor "voltage" Sensor "FAN1" IgnoreSelected false </Plugin>but I have this error in the log file and no rrd data file is writen for ipmi in the data dir of collectd.
Code
Display More[2020-08-03 16:41:24] plugin_load: plugin "cpu" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "df" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "disk" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "interface" successfully loaded. [2020-08-03 16:41:24] Found a configuration for the `ipmi' plugin, but the plugin isn't loaded or didn't register a configuration callback. [2020-08-03 16:41:24] Found a configuration for the `ipmi' plugin, but the plugin isn't loaded or didn't register a configuration callback. [2020-08-03 16:41:24] plugin_load: plugin "load" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "memory" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "rrdcached" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "smart" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "syslog" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "unixsock" successfully loaded. [2020-08-03 16:41:24] plugin_load: plugin "uptime" successfully loaded. [2020-08-03 16:41:24] Systemd detected, trying to signal readyness. [2020-08-03 16:41:24] Initialization complete, entering read-loop.Maybe I forgot something, like a lib to install or load (probably)...
I know that there are some person with serious server knowledge here, so any idea will be appreciated to make it work

Cheers. -
Just an update folks, I was able to get temperatures working with OMV5 using the code and guidance provided earlier in this thread by sbocquet. Not as a plugin but by adding a couple of lines here and there, I expect I will have to repeat the process when the next update comes out but the pain in minimal. I needed to keep an eye on the temps on my new OMV5 hardware (BeeLink T4 fanless Atom 8500) that has replaced my trusty Odroid XU4 finally died after 3 yrs of hard service.

Hi,
If you want to make your updates easy, just save your modified files in a .sav files, than copy them after each OMV update.
There are not much changes even none in those files...Cheers,
-
Hi !
Same here since 4.19 too...

-
HI,
I have done the same steps a few days ago and asking me the same question...

-
OK, I'm gonna try this but wasn't it supposed to be renewed automatically ?

EDIT: It works, but still... it should have been done automatically I think.
-
Google is your friend

https://itsfoss.com/use-google-drive-linux/
Rdrive seems nice but there are a lot of other solutions.
Personnaly, I use (and contribute a little) on that project https://github.com/abraunegg/onedrive to sync my docs with OneDrive. Works very nice and Alex is doing a very nice job.
-
Hi,
I'm facing a strange thing.
My certificate is just been renewed last week and I cannot connect to OMV WebUI due to the old certificat expiration date !!
The renew was made by CLI with : certbot renew as I was forced to open my port 80 so that letsencrypt renewal works.Code
Display Moreroot@home-server:~# certbot certificates Saving debug log to /var/log/letsencrypt/letsencrypt.log ------------------------------------------------------------------------------- Found the following certs: Certificate Name: FAMILLE-BOCQUET.FR Domains: home-server.famille-bocquet.fr Expiry Date: 2018-09-02 10:47:40+00:00 (VALID: 80 days) Certificate Path: /etc/letsencrypt/live/FAMILLE-BOCQUET.FR/fullchain.pem Private Key Path: /etc/letsencrypt/live/FAMILLE-BOCQUET.FR/privkey.pem -------------------------------------------------------------------------------But it seems that the new certificate haven't been update for the web server.
How can I fix this ?
Thx
-
-
I managed to make it work in active mode.
-
Tried remote yesterday's afternoon, then local yesterday's evening.
That's not a firewall problem as there is a connection, and I opened the port 21 on my internet box to make the tests.
-
Hi Subzero,
I've tried with another user (and root), and still cannot get the folder list.
Is there a default folder to set in Filezilla when the connection start ?
I have set proftpd to be in passive mode and permit root login.
It seems to be some kind of folder rights to me, but cannot resolve it.Cheers,
-
Hi,
I have the same problem. Probably a misconfiguration problem but cannot find where…
Proftpd is configured with OMV GUI without any changes. I have tried with Filezilla and WinSCP, both fail. The connection seems to happen but no folder is visible.Here is my conf file.
Code
Display Moreroot@home-server:/sharedfolders# cat /etc/proftpd/proftpd.conf Include /etc/proftpd/modules.conf LoadModule mod_vroot.c UseIPv6 on ServerName "home-server" ServerType standalone DeferWelcome on MultilineRFC2228 on DefaultServer on ShowSymlinks on DisplayChdir .message true ListOptions "-l" MaxInstances 30 DenyFilter \*.*/ User proftpd Group nogroup Umask 000 000 PersistentPasswd off TimesGMT off AllowOverwrite on AuthOrder mod_auth_pam.c* mod_auth_unix.c DefaultTransferMode ascii #SystemLog /var/log/proftpd/proftpd.log <IfModule mod_facl.c> FACLEngine on </IfModule> <IfModule mod_quotatab.c> QuotaEngine off </IfModule> <IfModule mod_ratio.c> Ratios off </IfModule> <IfModule mod_delay.c> DelayEngine on </IfModule> <IfModule mod_ctrls.c> ControlsEngine on ControlsMaxClients 2 ControlsLog /var/log/proftpd/controls.log ControlsInterval 5 ControlsSocket /var/run/proftpd/proftpd.sock </IfModule> <IfModule mod_ctrls_admin.c> AdminControlsEngine off </IfModule> <IfModule mod_vroot.c> VRootEngine on VRootLog /var/log/proftpd/vroot.log </IfModule> Port 21 TransferLog /var/log/proftpd/xferlog IdentLookups off UseReverseDNS off TimeoutIdle 1200 TimeoutNoTransfer 600 TimeoutStalled 600 AllowRetrieveRestart on AllowStoreRestart on DeleteAbortedStores off MaxConnectionsPerHost 5 <Directory /> HideFiles (welcome.msg) </Directory> <IfModule mod_vroot.c> VRootAlias "/srv/dev-disk-by-id-ata-SAMSUNG_MZ7LN512HCHP-000L1_S1ZKNXAG526958-part5/FTP" "FTP" </IfModule> <Directory /FTP> <Limit ALL> AllowUser OR root AllowGroup OR root DenyAll </Limit> <Limit READ DIRS> AllowUser OR root AllowGroup OR root DenyAll </Limit> </Directory> <IfModule mod_auth.c> DefaultRoot /srv/ftp MaxClients 3 MaxLoginAttempts 3 RequireValidShell on RootLogin on # This option is useless because this is handled via the PAM # pam_listfile.so module, so set it to 'off' by default. UseFtpUsers off </IfModule> <IfModule mod_auth_pam.c> AuthPAM on AuthPAMConfig proftpd </IfModule> <IfModule mod_ban.c> BanEngine off BanControlsACLs all allow user root BanLog /var/log/proftpd/ban.log BanMessage Host %a has been banned BanTable /var/run/proftpd/ban.tab </IfModule> DisplayLogin /srv/ftp/welcome.msg <IfModule mod_wrap.c> TCPAccessFiles /etc/hosts.allow /etc/hosts.deny TCPAccessSyslogLevels info warn TCPServiceName ftpd </IfModule>
Any idea of what is going wrong ?