И следовательно UI стал недоступен
Как понимаю, проблема с конфигом
root@wirenboard-AAIKKZDB:~# apt update && apt upgrade
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:3 http://deb.wirenboard.com/wb6/stretch stable InRelease
Ign:4 http://deb.debian.org/debian stretch InRelease
Hit:5 http://deb.debian.org/debian stretch-updates InRelease
Hit:2 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:6 http://deb.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
wb-hwconf-manager wb-knxd-config wb-release-info
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/64.7 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LC_TERMINAL_VERSION = "3.4.12",
LC_TERMINAL = "iTerm2",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Setting up nginx-extras (1.10.3-1+deb9u7) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-11-18 13:41:09 UTC; 150ms ago
Docs: man:nginx(8)
Process: 5591 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Nov 18 13:41:08 wirenboard-AAIKKZDB systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 18 13:41:09 wirenboard-AAIKKZDB nginx[5591]: nginx: [emerg] unknown directive "upload_pass" in /etc/nginx/sites-enabled/default:42
Nov 18 13:41:09 wirenboard-AAIKKZDB nginx[5591]: nginx: configuration file /etc/nginx/nginx.conf test failed
Nov 18 13:41:09 wirenboard-AAIKKZDB systemd[1]: nginx.service: Control process exited, code=exited status=1
Nov 18 13:41:09 wirenboard-AAIKKZDB systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Nov 18 13:41:09 wirenboard-AAIKKZDB systemd[1]: nginx.service: Unit entered failed state.
Nov 18 13:41:09 wirenboard-AAIKKZDB systemd[1]: nginx.service: Failed with result 'exit-code'.
dpkg: error processing package nginx-extras (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
nginx-extras
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@wirenboard-AAIKKZDB:~# cat /etc/nginx/sites-enabled/default
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
upload_progress fwupdate 1M;
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www;
index index.html;
# Make site accessible from http://localhost/
server_name localhost;
try_files $uri $uri/ /index.html;
expires max;
location /fwupdate/upload {
limit_except POST {
deny all;
}
client_body_buffer_size 128K;
client_max_body_size 1000M;
upload_pass @fwupdate;
upload_resumable on;
upload_store /var/www/uploads;
upload_store_access user:rw;
upload_state_store /var/www/uploads/state;
upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type "$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";
# Inform backend about hash and size of a file
upload_aggregate_form_field "$upload_field_name.md5" "$upload_file_md5";
upload_aggregate_form_field "$upload_field_name.size" "$upload_file_size";
track_uploads fwupdate 5s;
}
location @fwupdate {
return 200;
}
location /fwupdate/progress {
report_uploads fwupdate;
}
location /mqtt {
proxy_pass http://localhost:18883;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
}