nextcloud_ynh
nextcloud_ynh copied to clipboard
internal Server Error
after a reninall to NC 18.04. i can´t reacht the new installation anymore... I get a page where it sais that there is a internal Sever Error and i should look into the logs...
here i see something like this:
2020/06/16 13:49:42 [error] 23200#23200: *1844 open() "/usr/share/nginx/htmlindex.php/apps/files/undefined/img/notifications-new.svg" failed (2: No such file or directory), client: xx.xxx.xx.xx, server: cloud.domain.tld, request: "GET /apps/files/undefined/img/notifications-new.svg HTTP/2.0", host: "cloud.domain.tld,"
if i try to creat in YH a new user I get this:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_pdo_sqlite.dll' - /usr/lib/php/20151012/php_pdo_sqlite.dll: cannot open shared object file: No such file or directory in Unknown on line 0
What does this mean? Thanks for help
get the same error with 18.0.5~ynh1 :-(
Hi, and thank you for your report!
Do you have any interesting logs here /home/yunohost.app/nextcloud/data/nextcloud.log
, when the server crash?
Can I have the results of this command:
sudo cat /var/www/nextcloud/config/config.php | grep dbtype
Hi kay0u, thanks for your help!
root@my:~# sudo cat /var/www/nextcloud/config/config.php | grep dbtype
'dbtype' => 'mysql',
root@my:~#
under /home/yunohost.app/nextcloud/data/nextcloud.log I see this: https://paste.yunohost.org/raw/peyihiriqi
I can't see any problem from here.
Do you still have the error message or have you restored nextcloud to a working backup?
If you have this error, you can try this:
cd /var/www/nextcloud
sudo -u nextcloud php7.3 occ maintenance:repair
sudo systemctl restart php7.3-fpm
If it still doesn't work, can you install php7.3-sqlite and see if it solves the problem?
Thanks but this did not help.
so I installed php7.3-sqlite with
sudo apt-get install php7.3-sqlite
sudo service nginx restart
?php phpinfo(); ?
sais under "Additional .ini files parsed " that
/etc/php/7.0/fpm/conf.d/20-pdo_sqlite.ini is running
also that
PHP Version 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f
is running...
is this corect?
in Jun i tried to reinstall NC 18.04 after I had a broken installation... since than I get this internal Server Error message
?php phpinfo(); ?
sais also:
PDO Driver for SQLite 3.x | enabled |
---|---|
SQLite Library | 3.16.2 |
Nextcloud use php7.3, not php7.0 (or php which should be php7.0 on stretch)
?php phpinfo(); ?
sais under "Additional .ini files parsed " that/etc/php/7.0/fpm/conf.d/20-pdo_sqlite.ini is running
also that
PHP Version 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f
is running...is this corect?
PHP Version 7.0.33-29+0~20200514.36+debian9~1.gbp126f6f
is running...is this corect?
If you have more apps installed with Yunohost this is possible. Some apps started to use newer php7 versions while others don't.
OK thanks
I get this Error Message after I try to login
if i try to creat in YH a new user I get this:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012 /php_pdo_sqlite.dll' - /usr/lib/php/20151012/php_pdo_sqlite.dll: cannot open shared object file: No such file or directory in Unknown on line 0
That is peculiar. I have Nextcloud install with Yunohost but no sqlite in use, and the php modules in /usr/lib/php/ have dot so file extension, not dot dll Dot dll I would expect on a Windows computer, or maybe with Linux and Mono C#.
under /home/yunohost.app/nextcloud/data/nextcloud.log I see this: https://paste.yunohost.org/raw/peyihiriqi
-
"Exception":"RedisException","Message":"Connection refused"
Can you check with Yunohost admin the "services" section and see whether Redis and others is running fine ?
Ohh yes
the services
redis-server
and
rspamd
faild and I can´t start them...
what could I try?
this are the logs: https://paste.yunohost.org/raw/ejevozarap
cat /var/log/redis/redis-server.log
should give you more information :-)
root@my:~# cat /var/log/redis/redis-server.log
root@my:~#
the file /var/log/redis/redis-server.log is empty
sudo journalctl -u redis
then?
root@my:~# sudo journalctl -u redis
-- No entries --
root@my:~#
Does this make sence to you? https://paste.yunohost.org/raw/efuxenotun
the file /var/log/redis/redis-server.log is empty
Can you comment out the Redis section in the Nextcloud config for the moment ? In /var/www/nextcloud/config/config.php
make it like this : 'memcache.local' => '\OC\Memcache\APCu', 'integrity.check.disabled' => true, 'filelocking.enabled' => true, // 'memcache.locking' => '\OC\Memcache\Redis', // 'redis' => // array ( // 'host' => 'localhost', // 'port' => '6379', // 'timeout' => '0.0', // 'password' => '', // ), 'hashing_default_password' => true, );
And then reload pages and see whether you still get a 500 error.
Coooool - YES login does work after comment out the Redis section :-)
Now how can I fix Redis or can I leave it like this?
Into the file /etc/redis/redis.conf
, I have the line logfile /var/log/redis/redis-server.log
can you confirm that you have the same one?
Yes this line does exist
I'm going to create a new issue with link to this one because this is slightly related but with the newer update 18.0.7 and also the new update from nginx under buster. https://github.com/YunoHost-Apps/nextcloud_ynh/issues/329
Closing, as the issue is stale and hopefully solved. Feel free to reopen if needed.