Cannot login on Nextcloud (Raspbian+lighttpd+MariaDB) [SOLVED]

Hi all, i cannot login into Nextcloud Server:

imagen

i follow these installation steps :

Some data :

  1. HW: Raspberry Pi (Linux raspberrypi 4.9.80+)
  2. OS: Raspbian GNU/Linux 9 (stretch)
  3. PHP: PHP 7.0.27-0+deb9u1 (cli) (built: Jan 5 2018 13:51:52) (PHP7 is already installed for others apps )
  4. Web Server: lighttpd/1.4.45 (ssl)
  5. From /var/www/nextcloud/config/config.php

‘overwrite.cli.url’ => ‘http://192.168.1.100:8080’,
‘dbtype’ => ‘sqlite3’,
‘version’ => ‘9.0.53.0’,
‘logtimezone’ => ‘UTC’,
‘installed’ => true,

  1. Tries :
    a) give permissions on /var/www/nextcloud/ for www-data user
    b) Trying to show the login usr/psw

    MariaDB [(none)]> use nextcloud
    Database changed
    MariaDB [nextcloud]> show tables;
    Empty set (0.00 sec)

In don’t know why these db is empty

So, any suggestions ?

Thanks!
Condor

Also try this:
#sudo -u www-data php /var/www/nextcloud/occ user:resetpassword admin

And get this:
“User does not exist”

Also try user:ncp user:ncp-web psw:ownyourbits

try this:

sudo -u www-data php /var/www/nextcloud/occ user:resetpassword ncp
or
sudo -u www-data php /var/www/nextcloud/occ user:resetpassword ncp-web

Thanks STrike, but same output

imagen

Check if users still exists with:

sudo -u www-data php /var/www/nextcloud/occ user:list

These is the output:

" [Symfony\Component\Console\Exception\CommandNotFoundException] _
_ Command “user:list” is not defined. _
_ Did you mean one of these? _
_ config:list _
_ app:list _
_ encryption:list-modules _
_ user:add _
_ user:delete _
_ user:lastseen _
_ user:report _
_ user:resetpassword "

sudo -u www-data php /var/www/nextcloud/occ user:report
±-----------------±–+
| User Report | |
±-----------------±–+
| Database | 1 |
| | |
| total users | 1 |
| | |
| user directories | 1 |
±-----------------±–+

does the sqlite database exists in the datadirectory?

You are using sqlite3 so, its emtpy.
Thats strange, that user:list dont work… You used NextcloudPi Image?

I installed like this :

cd /var/www/
sudo wget https://download.nextcloud.com/server/releases/nextcloud-9.0.53.zip
sudo unzip nextcloud-9.0.53.zip
sudo rm nextcloud-9.0.53.zip

I folowed this tutorial:


because i have lighttpd already instaled.

I know what the matter is:

Instalación de Nextcloud
Nos descargamos y descomprimimos Nextcloud:
cd /var/www/ sudo wget https://download.nextcloud.com/server/releases/nextcloud-9.0.53.zip sudo unzip nextcloud-9.0.53.zip sudo rm nextcloud-9.0.53.zip

You installed nextcloud 9.0.53 and not the latest :wink:

When you are using a raspberry pi, use the nextcloudpi image. Otherwise install it, how it is mentioned in the docs:

https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

1 Like

Hi STrike,

I can’t use nextcloudpi image, i have already running another apps on lighttpd on the raspberry. So i will run:

https://docs.nextcloud.com/server/13/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

i think that " Example installation on Ubuntu 16.04 LTS server" should work for raspbian, or i will seek another tutorial.

Thanks for all, i will update the topic.

Okay start with:
Or you can use .deb packages to install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:

[sudo] apt-get install apache2 mariadb-server libapache2-mod-php7.0
[sudo] apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
[sudo] apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip

You can remove the old packages of php5.x. Just type
sudo apt-get remove/purge php(oldstuff from your outdated tutorial) :wink:

STrike, i use nextcloud-13.0.1.zip (2018-03-15) for the installation in lighttpd, and it works ! I’ll be more attentive to the versions next time. :smile:

Thanks a lot!
Condor