nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

internal Server Error

Open rocky-III opened this issue 4 years ago • 25 comments

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

rocky-III avatar Jun 16 '20 13:06 rocky-III

get the same error with 18.0.5~ynh1 :-(

nc

rocky-III avatar Jul 17 '20 00:07 rocky-III

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

kay0u avatar Jul 17 '20 07:07 kay0u

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

rocky-III avatar Jul 17 '20 10:07 rocky-III

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?

kay0u avatar Jul 17 '20 11:07 kay0u

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?

rocky-III avatar Jul 17 '20 12:07 rocky-III

in Jun i tried to reinstall NC 18.04 after I had a broken installation... since than I get this internal Server Error message

rocky-III avatar Jul 17 '20 12:07 rocky-III

?php phpinfo(); ? sais also:

PDO Driver for SQLite 3.x enabled
SQLite Library 3.16.2

rocky-III avatar Jul 17 '20 12:07 rocky-III

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?

kay0u avatar Jul 17 '20 12:07 kay0u

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.

jsonoctopus avatar Jul 17 '20 12:07 jsonoctopus

OK thanks

rocky-III avatar Jul 17 '20 12:07 rocky-III

I get this Error Message after I try to login

rocky-III avatar Jul 17 '20 12:07 rocky-III

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#.

jsonoctopus avatar Jul 17 '20 12:07 jsonoctopus

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 ?

jsonoctopus avatar Jul 17 '20 12:07 jsonoctopus

Ohh yes the services redis-server and rspamd faild and I can´t start them... what could I try?

rocky-III avatar Jul 17 '20 13:07 rocky-III

this are the logs: https://paste.yunohost.org/raw/ejevozarap

rocky-III avatar Jul 17 '20 13:07 rocky-III

cat /var/log/redis/redis-server.log

should give you more information :-)

kay0u avatar Jul 17 '20 13:07 kay0u

root@my:~# cat /var/log/redis/redis-server.log                                                    
root@my:~# 

the file /var/log/redis/redis-server.log is empty

rocky-III avatar Jul 17 '20 13:07 rocky-III

sudo journalctl -u redis

then?

kay0u avatar Jul 17 '20 13:07 kay0u

root@my:~# sudo journalctl -u redis                                                               
-- No entries --                                                                                  
root@my:~#    

rocky-III avatar Jul 17 '20 13:07 rocky-III

Does this make sence to you? https://paste.yunohost.org/raw/efuxenotun

rocky-III avatar Jul 17 '20 14:07 rocky-III

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.

jsonoctopus avatar Jul 17 '20 14:07 jsonoctopus

Coooool - YES login does work after comment out the Redis section :-)

Now how can I fix Redis or can I leave it like this?

rocky-III avatar Jul 17 '20 16:07 rocky-III

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?

kay0u avatar Jul 17 '20 16:07 kay0u

Yes this line does exist

rocky-III avatar Jul 17 '20 17:07 rocky-III

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

changemenemo avatar Sep 02 '20 21:09 changemenemo

Closing, as the issue is stale and hopefully solved. Feel free to reopen if needed.

tituspijean avatar Oct 16 '23 09:10 tituspijean