Nextcloud installation problem


#1

Hello. I’m stuck with Nextcloud installation. Disk sda is formatted with “Storage” on btrfs. I followed https://doc.turris.cz/doc/cs/howto/nextcloud a ked sa pokusam spustit nextcloud_install but I got this error:

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/pdo_mysql.so’ - Error loading shared library libmysqlclient.so.16: No such file or directory (needed by /usr/lib/php/pdo_mysql.so) in Unknown on line 0
Nextcloud is not installed - only a limited number of commands are available
No database drivers (sqlite, mysql, or postgresql) installed.

When I open http://192.168.1.1/nextcloud/, it reports this:

Error
No database drivers (sqlite, mysql, or postgresql) installed.
PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.

Device: Turris Omnia - rtrom01
Turris OS version: 3.11.2
Kernel version: 4.4.169-7bc33afbb1b35f5830b2b1b42c9cd8a0-2
Firmware Version: OpenWrt omnia 15.05 r47055 / LuCI 96366054565006474c39e02dca00c9d45dcb9e15 branch (git-18.328.59464-9636605)
foris version: 99.1

Have somebody addressed this problem? Any suggestions? Thank you.


NextCloud instalace
Nextcloud & nextcloud_install bugs/issues
#2

hi… i same problem with mysql:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/mysql.so’ - File not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/mysqli.so’ - File not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/pdo_mysql.so’ - File not found in Unknown on line 0
other extension load fine


#3

[quote]# opkg files php7-mod-pdo-mysql

Package php7-mod-pdo-mysql (7.1.23-1) is installed on root and has the following files:

/usr/lib/php/pdo_mysql.so
/etc/php7/20_pdo_mysql.ini
[/quote]

So perhaps install php7-mod-pdo-mysql?


#4

@justsomeguy sorry, I don’t understand. What do you mean?


#5

Zde je dočasné řešení (Here’s a temporary solution): Php7 mysqli - > Class 'mysqli' not found Problém je dozajista v php (The problem is certainly in php).


#6

Run the command

opkg install php7-mod-pdo-mysql

#7

echo ‘Install (“nextcloud-install”)’ >> /etc/updater/conf.d/auto.lua pkgupdate

But without success, I couldn’t get access to http://192.168.1.1/nextcloud (503 - Service Not Available).


#8
  1. Don’t you have a typo in there? “pkgupdate” should be the second ssh command.
  2. Then you may still need to run the script: nextcloud_install

Instructions: https://doc.turris.cz/doc/en/howto/nextcloud


#9

Thank you very much :grinning:


#10

Funguje va, instalacia nextcloud?

Aktualne po instalacii podla https://doc.turris.cz/doc/en/howto/nextcloud
mi po spusteni nextcloud_install vypise:

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/pdo_mysql.so’ - Error loading shared library libmysqlclient.so.16: No such file or directory (needed by /usr/lib/php/pdo_mysql.so) in Unknown on line 0
The current PHP memory limit is below the recommended value of 512MB.
No database drivers (sqlite, mysql, or postgresql) installed.

Skusal som doinstalovat libmysqlclient, ale potom po spusteni

echo ‘Install(“nextcloud-install”)’ >> /etc/updater/conf.d/auto.lua
pkgupdate

mi vypise:

ARN:Requested package foris-storage-plugin-l10n-de that is missing, ignoring as requested.
WARN:Requested package luci-i18n-ddns-en that is missing, ignoring as requested.
WARN:Requested package luci-i18n-ddns-sk that is missing, ignoring as requested.
INFO:Queue removal of libmysqlclient
Press return to continue, CTRL+C to abort

INFO:Executing preupdate hook: 05_schnapps.sh
Snapshot number 195 created
INFO:Unpacking download packages
INFO:Checking for file collisions between packages
INFO:Running pre-install scripts and merging packages to root file system
INFO:Running post-install and post-rm scripts
INFO:Running prerm of libmysqlclient
INFO:Removing packages and leftover files
INFO:Cleaning up control files
INFO:Executing postupdate hook: 05_schnapps.sh
Snapshot number 196 created
INFO:Executing postupdate hook: 99_approvals_cleanup
INFO:Executing postupdate hook: update_alternatives.sh

php7-mod-pdo-mysql spomenute v predchadzajucich prispevkoch nepomoze:

root@turris:~# opkg install php7-mod-pdo-mysql
Package php7-mod-pdo-mysql (7.1.23-1) installed in root is up to date.


#11

Zdravím,
problém je ve verzi PHPčka a řešení (doufám dočasné) je i v tomto vláknu (aspoň co se týče NextCloud).


#12

Dakujem, ano to som videl
Dufal som, ze po mesiaci bude existovat … no, viac korektne riesenie.

Je to take hodne vseobecne. Co je to stara verzia? Odkial ju stiahnut? Kde prepisat dane subory.

Pri dalsom update sa to pravdepodobne prepise.

Chcel som sa trocha pohrat s moznostami nextcloud, co to vie, ako sa to da realne pouzivat. Takto sa mi do toho moc nechce.


#13

Asi je to složitější problém, pač PHPčko se bere přímo z OpenWrt a není to něco, co by v repozitáři chybělo. Nemám ponětí, jak by Turris Tým tuto závadu napravil (možná do repo vrátit tu původní verzi), ale bohužel to záleží na Turris Týmu.

Co se týče toho “vycucnutí”, tak tady https://repo.turris.cz/archive/ je archív turris repozitáře a zde naleznete starší buildy takže stáhnout, rozbalit, najít ty knihovny, přes WinSCP nahradit ty původní a restartovat - asi takhle v rychlosti.

A ano, další aktualizace (ale jenom možná) přepíše knihovny zpět - je to jen dočasné řešení, než-li Tým opraví repozitář. Ještě bych počkal, možná se tady z Turris Týmu někdo ozve a pokud né, kontaktujte technickou podporu na tech.support@turris.cz.