Backend broken, update->"whoops,looks like sth went wrong.Chek...."

So I missed that the sda1 part ot full and now the backend is broken. How can one fix the sql “connection” to the backend ? sql seems to be fine.

I fiddled around and now the webb interface doesnt load

 ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS  | 1.43-59-g387a79e
DB Schema | 267
PHP       | 7.0.30-0ubuntu0.16.04.1
MySQL     | 10.0.36-MariaDB-0ubuntu0.16.04.1
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.7.2
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct


./daily.sh
Updating to latest codebase                        OK
Updating Composer packages                         OK
Updating SQL-Schema                                OK
Updating submodules                                OK
Cleaning up DB                                     OK
Fetching notifications                             OK
Caching PeeringDB data                             OK

Output from “mysqlcheck -A --auto-repair” reports “OK”

output from librenms.log

[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:162 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 Illegal offset type
[2018-09-12 15:28:09] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:128 Undefined index: hostname
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:138 Undefined index: state
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:159 Undefined variable: isup
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:160 Undefined variable: isdown
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:161 Undefined variable: admindown
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/includes/dbFacile.php:467 Undefined index: file
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/includes/dbFacile.php:467 Undefined index: line
[2018-09-12 15:28:09] production.ERROR: SQLSTATE[HY093]: Invalid parameter number (SQL: SELECT `ifSpeed` FROM `ports` AS `I`, `devices` AS `D`, `devices_perms` AS `P`, `ports_perms` AS `PP` WHERE ((`P`.`user_id` = 0 AND `P`.`device_id` = `D`.`device_id`) OR (`PP`.`user_id` = ? AND `PP`.`port_id` = `I`.`port_id` AND `I`.`device_id` = `D`.`device_id`)) AND `D`.`device_id` = `I`.`device_id` GROUP BY `ifSpeed` ORDER BY `ifSpeed`) (SQL: SELECT `ifSpeed` FROM `ports` AS `I`, `devices` AS `D`, `devices_perms` AS `P`, `ports_perms` AS `PP` WHERE ((`P`.`user_id` = 0 AND `P`.`device_id` = `D`.`device_id`) OR (`PP`.`user_id` = ? AND `PP`.`port_id` = `I`.`port_id` AND `I`.`device_id` = `D`.`device_id`)) AND `D`.`device_id` = `I`.`device_id` GROUP BY `ifSpeed` ORDER BY `ifSpeed`)
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php:80 Array to string conversion
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:236 Undefined index: ifAlias
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:245 Undefined variable: ifaliasvalue
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/LibreNMS/Authentication/UserProxy.php:42 Undefined index: userlevel
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:263 Undefined index: ignore
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:269 Undefined index: disabled
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:275 Undefined index: deleted
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:289 Undefined index: section
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:289 Undefined index: bare
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:405 Undefined variable: query_sort
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports.inc.php:413 Undefined index: sort
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:17 Undefined index: errors
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:20 Undefined index: errors
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:110 Undefined index: device_id
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:111 Undefined index: hostname
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:112 Undefined index: state
[2018-09-12 15:28:09] production.ERROR: 8 /opt/librenms/html/pages/ports/list.inc.php:113 Undefined index: ifSpeed

and some more from librenms.log

[2018-09-12 15:28:30] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 Illegal offset type
[2018-09-12 15:28:30] production.ERROR: 2 /opt/librenms/LibreNMS/Component.php:163 ksort() expects parameter 1 to be array, null given
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/common.php:1571 Undefined index: override_device_type
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/common.php:1571 Undefined index: override_device_type
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/device-header.inc.php:37 Undefined variable: descr
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:55 Undefined index: overview
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:62 Undefined index: graphs
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:75 Undefined index: health
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:115 Undefined index: ports
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:148 Undefined index: in
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:148 Undefined index: out
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:225 Undefined variable: loadbalancer_tabs
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:264 Undefined index: Cisco-OTV
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:270 Undefined index: routing
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:309 Undefined index: entphysical
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:324 Undefined index: services
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:339 Undefined index: logs
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:345 Undefined index: alerts
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:351 Undefined index: alert-stats
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:358 Undefined index: rancid_configs
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:359 Undefined index: rancid_configs
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:387 Undefined index: showconfig
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:423 Undefined variable: nfsen_rrd_file
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:432 Undefined index: performance
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:439 Undefined index: notes
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device.inc.php:446 Undefined index: mib
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device/port.inc.php:14 Undefined index: port_id
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device/port.inc.php:19 Undefined index: name
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/rewrites.php:110 Undefined index: rewrite_if
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:19 Undefined variable: int_colour
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:63 Undefined variable: break
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/common.php:630 Undefined variable: neg
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/common.php:630 Undefined variable: neg
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:156 Undefined variable: ifHardType
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:182 Undefined variable: graph_type
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:237 Undefined variable: int_links
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:243 Undefined variable: int_link
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:244 Undefined variable: int_links
[2018-09-12 15:28:30] production.ERROR: 2 /opt/librenms/html/includes/print-interface.inc.php:244 Invalid argument supplied for foreach()
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/includes/rewrites.php:110 Undefined index: rewrite_if
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:315 Undefined variable: br
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:329 Undefined variable: graph_type
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-interface.inc.php:335 Undefined variable: graph_type
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device/port.inc.php:102 Undefined offset: 30
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/pages/device/port/graphs.inc.php:4 Undefined variable: id
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-graphrow.inc.php:5 Undefined index: widescreen
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-graphrow.inc.php:55 Undefined variable: return_data
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-graphrow.inc.php:55 Undefined variable: return_data
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-graphrow.inc.php:55 Undefined variable: return_data
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/includes/print-graphrow.inc.php:55 Undefined variable: return_data
[2018-09-12 15:28:30] production.ERROR: 8 /opt/librenms/html/legacy_index.php:271 Undefined variable: no_refresh
[2018-09-12 15:28:30] production.ERROR: 2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122 file_put_contents(/opt/librenms/storage/framework/sessions/Pw00xWk6mWANhFeNcO8S2woh85Q6nB8aI9cH2EEF): failed to open stream: Permission denied
[2018-09-12 15:30:56] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:30:56] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/Pw00xWk6mWANhFeNcO8S2woh85Q6nB8aI9cH2EEF): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:11] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:11] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/Pw00xWk6mWANhFeNcO8S2woh85Q6nB8aI9cH2EEF): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:47] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:47] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:49] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:49] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:50] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:50] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:51] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:52] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:52] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:54] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:31:54] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/UX3xi4VmUoDindSUVVhKoVXSfetqfpr0Fny8opmj): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 15:33:33] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/Pw00xWk6mWANhFeNcO8S2woh85Q6nB8aI9cH2EEF): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 16:54:15] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/a2/e3/a2e33a1054e69b8e67fdec79e8e92f7ef1097c07): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 16:54:15] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/sessions/Pw00xWk6mWANhFeNcO8S2woh85Q6nB8aI9cH2EEF): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-12 19:46:55] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 03:49:01] production.ERROR: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_5d3_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") (SQL: SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME = device_id) (SQL: SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME = device_id)
[2018-09-13 03:49:01] production.ERROR: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_5d3_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") (SQL: SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME LIKE "%\_id") (SQL: SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME LIKE "%\_id")
[2018-09-13 03:49:01] production.ERROR: SQLSTATE[42000]: Syntax error or access violation: 1065 Query was empty (SQL: ) (SQL: )
[2018-09-13 03:49:02] production.ERROR: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_5d3_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") (SQL: SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME = device_id) (SQL: SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME = device_id)
[2018-09-13 03:49:02] production.ERROR: SQLSTATE[HY000]: General error: 1021 Disk full (/tmp/#sql_5d3_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") (SQL: SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME LIKE "%\_id") (SQL: SELECT COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_NAME = bgpPeers && COLUMN_NAME LIKE "%\_id")
[2018-09-13[2018-09-13 08:36:59] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/cache/data/65/f8/65f8644b13887f77d753261f41de4ea25d3c4382): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:37:00] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:37:02] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:37:03] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:37:31] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:38:45] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:38:46] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:38:47] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:38:47] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:38:47] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
[2018-09-13 08:46:32] production.ERROR: ErrorException: file_put_contents(/opt/librenms/storage/framework/views/150fa18cabc0b9c27bb552ef57facdf4ccd4525f.php): failed to open stream: Permission denied in /opt/librenms/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122

Any tips ?

I added debug in .env

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/opt/librenms/v...', 122, Array)
#3 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(37): Illuminate\View\Compilers\BladeCompiler->compile('/opt/librenms/r...')
#9 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/opt/librenms/s...', Array)
#14 /opt/librenms/vendor/symfony/http-foundation/Response.php(206): Illuminate\Http\Response->setContent(Object(Wpb\String_Blade_Compiler\View))
#18 /opt/librenms/app/Http/Middleware/RedirectIfAuthenticated.php(24): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /opt/librenms/app/Http/Middleware/LegacySession.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#27 /opt/librenms/app/Http/Middleware/LegacyExternalAuth.php(38): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#69 /opt/librenms/html/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#70 {main}

Stack trace:
#1 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/opt/librenms/s...', Array)
#6 /opt/librenms/vendor/symfony/http-foundation/Response.php(206): Illuminate\Http\Response->setContent(Object(Wpb\String_Blade_Compiler\View))
#10 /opt/librenms/app/Http/Middleware/RedirectIfAuthenticated.php(24): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#16 /opt/librenms/app/Http/Middleware/LegacySession.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /opt/librenms/app/Http/Middleware/LegacyExternalAuth.php(38): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#61 /opt/librenms/html/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#62 {main}
/opt/librenms/discovery.php new 2018-09-13 15:25:01 - 0 devices discovered in 0.001 secs
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/opt/librenms/v...', 122, Array)
#3 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(37): Illuminate\View\Compilers\BladeCompiler->compile('/opt/librenms/r...')
#9 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/opt/librenms/s...', Array)
#14 /opt/librenms/vendor/symfony/http-foundation/Response.php(206): Illuminate\Http\Response->setContent(Object(Wpb\String_Blade_Compiler\View))
#18 /opt/librenms/app/Http/Middleware/RedirectIfAuthenticated.php(24): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#24 /opt/librenms/app/Http/Middleware/LegacySession.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#27 /opt/librenms/app/Http/Middleware/LegacyExternalAuth.php(38): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#69 /opt/librenms/html/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#70 {main}

Stack trace:
#1 /opt/librenms/vendor/wpb/string-blade-compiler/src/Engines/CompilerEngine.php(45): Illuminate\View\Engines\PhpEngine->evaluatePath('/opt/librenms/s...', Array)
#6 /opt/librenms/vendor/symfony/http-foundation/Response.php(206): Illuminate\Http\Response->setContent(Object(Wpb\String_Blade_Compiler\View))
#10 /opt/librenms/app/Http/Middleware/RedirectIfAuthenticated.php(24): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#16 /opt/librenms/app/Http/Middleware/LegacySession.php(44): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /opt/librenms/app/Http/Middleware/LegacyExternalAuth.php(38): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#61 /opt/librenms/html/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#62 {main}

The sda1 partition got full, resulted in the error message in the gui “problem with backend” I increased the disk in (its a vm) and resized the partition via gparted.

I solved the issue by issuing these commands:

setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
1 Like

The commands I’ve linked you from another post :wink:

Yes! thanx! :slight_smile:

Thank you so much.
I solved the issue by your suggestion.