Hello!
I have an instance on raspberry pi 4, and I have two problems.
- I can’t log in to nextcloud. The server works, but I can’t get into my files. Logging site just refreshes.
- I can’t upgrade raspberry pi. I attached output of command lower.
Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 10 (buster)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38-3+deb10u7
PHP version (eg, 7.4): 7.3
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
The output of your Nextcloud log in Admin > Logging:
Debug no app in context OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at 2022-02-08T08:45:33+00:00
.../Middleware/Security/SecurityMiddleware.php line 153
0. .../AppFramework/Middleware/MiddlewareDispatcher.php line 97
OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(OCA\Files\Controller\ViewController {}, "index")
1. lib/private/AppFramework/Http/Dispatcher.php line 118
OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(OCA\Files\Controller\ViewController {}, "index")
2. lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files\Controller\ViewController {}, "index")
3. lib/private/Route/Router.php line 302
OC\AppFramework\App::main(
"OCA\\Files\\Controller\\ViewController",
"index",
OC\AppFramework\DependencyInjection\DIContainer {},
{_route:"files.view.index"}
)
4. lib/base.php line 1006
OC\Route\Router->match("\/apps\/files\/")
5. index.php line 36
OC::handleRequest(
)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => '192.168.0.215',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'dbtype' => 'mysql',
'version' => '23.0.0.10',
'overwrite.cli.url' => 'http://192.168.0.215/nextcloud',
'dbname' => 'nextcloudd',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'updater.secret' => ',
'theme' => '',
'loglevel' => 0,
'updater.release.channel' => 'stable',
'app_install_overwrite' =>
array (
0 => 'whiteboard',
),
'maintenance' => false,
'data-fingerprint' => '7cec5200c21be3db80b2c4092445f104',
);
I removed passwords etc.
The output of your Apache/nginx/system log in /var/log/____
:
192.168.0.67 - - [08/Feb/2022:09:45:19 +0100] "GET /nextcloud/index.php/login?redirect_url=/nextcloud/index.php/apps/files/?dir%3D/ HTTP/1.1" 200 7711 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
192.168.0.67 - - [08/Feb/2022:09:45:33 +0100] "POST /nextcloud/index.php/login HTTP/1.1" 303 1303 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
192.168.0.67 - - [08/Feb/2022:09:45:33 +0100] "GET /nextcloud/index.php/apps/files/?dir=/ HTTP/1.1" 303 812 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
192.168.0.67 - - [08/Feb/2022:09:45:33 +0100] "GET /nextcloud/index.php/login?redirect_url=/nextcloud/index.php/apps/files/?dir%3D/ HTTP/1.1" 200 7707 "-" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0"
Sys info:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
When I try to upgrade raspi, I get this:
root@raspberrypi:/home/pi# sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up libpam-systemd:armhf (241-7~deb10u8+rpi1) ...
open(/var/lib/pam/seen) failed: No such file or directory at /usr/sbin/pam-auth-update line 232, <STDIN> line 16.
dpkg: error processing package libpam-systemd:armhf (--configure):
installed libpam-systemd:armhf package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of policykit-1:
policykit-1 depends on libpam-systemd; however:
Package libpam-systemd:armhf is not configured yet.
dpkg: error processing package policykit-1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpam-systemd:armhf
policykit-1
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:/home/pi#
There are sources:
root@raspberrypi:/home/pi# cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
So, what should I do to log in to instance? I tried occ commands, like maintenance:repair. I checked disk, and there weren’t any problems. Nothing helped.