Loading
Expected behaviour
Be able to connect / use Nextcloud
Actual behaviour
Can’t get to webplatform nor sync clients
Server configuration
Operating system: Ubuntu 18.04
Database: Mysql / Maria db
PHP version: 7.2
Nextcloud version: (see Nextcloud admin page) 13.05.2
**Updated from an older Nextcloud/ownCloud or fresh install:Updated
Where did you install Nextcloud from: originally from Techandme
Login as admin user into your Nextcloud and access
http://example.com/index.php/settings/integrity/failed
paste the results here.
Blank Page (500 error)
</details>
**List of activated apps:**
<details>
<summary>App list</summary>
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
Getting error on use of occ commands
root@dnscloud:/var/www/nextcloud# sudo -u www-data php occ app:list
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/nextcloud/lib/private/DB/ConnectionFactory.php(152): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/nextcloud/lib/private/Server.php(628): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array)
#8 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#9 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OCP\IDBConnecti…’)
#10 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OCP\IDBConnecti…’)
#11 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query(‘OCP\IDBConnecti…’)
#12 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#13 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#14 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘DatabaseConnect…’)
#15 /var/www/nextcloud/lib/private/Server.php(1511): OC\ServerContainer->query(‘DatabaseConnect…’)
#16 /var/www/nextcloud/lib/private/Server.php(332): OC\Server->getDatabaseConnection()
#17 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#19 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#20 /var/www/nextcloud/lib/private/Server.php(336): OC\ServerContainer->query(‘OC\Authenticati…’)
#21 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#23 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query(‘OC\Authenticati…’)
#25 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#26 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OC\Authenticati…’)
#27 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OC\Authenticati…’)
#28 /var/www/nextcloud/lib/private/Server.php(352): OC\ServerContainer->query(‘OC\Authenticati…’)
#29 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OCP\IUserSessio…’)
#31 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OCP\IUserSessio…’)
#32 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query(‘OCP\IUserSessio…’)
#33 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#34 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘UserSession’)
#35 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘UserSession’)
#36 /var/www/nextcloud/lib/private/Server.php(1380): OC\ServerContainer->query(‘UserSession’)
#37 /var/www/nextcloud/lib/private/Server.php(688): OC\Server->getUserSession()
#38 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#39 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘OC\App\AppManag…’)
#40 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘OC\App\AppManag…’)
#41 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query(‘OC\App\AppManag…’)
#42 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}(Object(OC\Server))
#43 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet(‘AppManager’)
#44 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’)
#45 /var/www/nextcloud/lib/private/Server.php(1684): OC\ServerContainer->query(‘AppManager’)
#46 /var/www/nextcloud/lib/private/legacy/app.php(332): OC\Server->getAppManager()
#47 /var/www/nextcloud/lib/private/legacy/app.php(113): OC_App::getEnabledApps()
#48 /var/www/nextcloud/lib/base.php(662): OC_App::loadApps(Array)
#49 /var/www/nextcloud/lib/base.php(1081): OC::init()
#50 /var/www/nextcloud/console.php(46): require_once(‘/var/www/nextcl…’)
#51 /var/www/nextcloud/occ(11): require_once(‘/var/www/nextcl…’)
#52 {main}root@dnscloud:/var/www/nextcloud#
</details>
**Nextcloud configuration:**
<details>
<summary>Config report</summary>
If you have access to your command line run e.g.:
Error on occ commands
or
»,
‘secret’ => »,
‘trusted_domains’ =>
array (
0 => ‘localhost’,
1 => ‘192.168.1.110’,
2 => ‘dnscloud.dnsolutions.pt’,
3 => ‘office.dnscloud.dtdns.net’,
),
‘datadirectory’ => ‘/DNSCloud’,
‘overwrite.cli.url’ => ‘https://dnscloud.dnsolutions.pt/’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘13.0.5.2’,
‘dbname’ => ‘nextcloud_db’,
‘dbhost’ => ‘root’,
‘dbport’ => »,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘root’,
‘dbpassword’ => »,
‘installed’ => true,
‘instanceid’ => ‘ocmnpoor4wsx’,
‘maintenance’ => false,
‘mail_smtpmode’ => ‘smtp’,
‘log_rotate_size’ => ‘10485760’,
‘memcache.local’ => ‘\\OC\\Memcache\\Redis’,
‘filelocking.enabled’ => false,
‘memcache.distributed’ => ‘\\OC\\Memcache\\Redis’,
‘memcache.locking’ => ‘\\OC\\Memcache\\Redis’,
‘redis’ =>
array (
‘host’ => ‘/var/run/redis/redis.sock’,
‘port’ => 0,
‘timeout’ => 0,
‘dbindex’ => 0,
‘password’ => »,
),
‘htaccess.RewriteBase’ => ‘/’,
‘loglevel’ => ‘2’,
‘log_type’ => ‘file’,
‘logfile’ => ‘/DNSCloud/’,
‘logtimezone’ => ‘Atlantic/Madeira’,
‘mail_from_address’ => ‘online’,
‘mail_smtpauthtype’ => ‘PLAIN’,
‘mail_domain’ => »,
‘mail_smtphost’ => »,
‘mail_smtpport’ => »,
‘theme’ => »,
);
**Are you using external storage, if yes which one:** local/smb/sftp/…: No
**Are you using encryption:** yes/no: No (tryed to unencrypt all the files)
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/… NO
### Client configuration
**Browser:**
Firefox, Chrome, Edge
**Operating system:**
Windows 10
### Logs
#### Web server error log
Web server error log
«`
Insert your webserver log
[kern.log](https://github.com/nextcloud/server/files/2314207/kern.log)
«`
#### Nextcloud log (data/nextcloud.log)
Nextcloud log
«`
Insert your Nextcloud log here
«`
#### Browser log
[nextcloud1.log](https://github.com/nextcloud/server/files/2314204/nextcloud1.log)
More Info (PHP INFO)
https://dnscloud.dnsolutions.pt/phpinfo.php
Поднял Nextcloud в FreeBSD. В качестве веб-сервера используется Nginx. Однако при попытке пройти первоначальную настройку возникает ошибка: «Внутренняя ошибка сервера». Логи Nginx
Как понять, в чём проблема? Как настроить Nextcloud на FreeBSD?
Характеристики:
FreeBSD 13.1
Nextcloud 24.0.0
PHP 8.0
-
Вопрос задан
-
1516 просмотров
1
комментарий
Пригласить эксперта
Ответы на вопрос 1
@CityCat4
Жил-был у бабушки серенький троллик…
Message»:»touch(): Unable to create file /usr/local/nginx/html/nextcloud/config/config.php because Permission denied at /usr/local/nginx/html/nextcloud/lib/private/Config.php
Глеб, ну ешкин кот! Не видишь, что ли, что прав не хватает на запись конфига? Семен Семеныч…
Похожие вопросы
-
Показать ещё
Загружается…
21 сент. 2023, в 22:51
450 руб./за проект
21 сент. 2023, в 22:23
5000 руб./за проект
21 сент. 2023, в 20:54
10000 руб./за проект
Минуточку внимания
Июнь 17, 2020 — Время чтения: ~1 минут
Использую Nextcloud в docker контейнере, и после обновления столкнулся с ошибкой: Внутренняя ошибка сервера
Решил проблему следующим образом:
Проверил и исправил права на datadirectory, путь к которому посмотреть можно в файле config.php (в моем случае:
cat /config/www/nextcloud/config/config.php | grep datadirectory'datadirectory' => '/data',
chown abc:users /data/* -R
где: abc — пользователь от которого запущено nginx и php-fpm , users — группа
далее перевел в режим обслуживания и обновил db командами
sudo -u abc php /config/www/nextcloud/occ maintenance:mode --on
sudo -u abc php /config/www/nextcloud/occ maintenance:mimetype:update-db
sudo -u abc php /config/www/nextcloud/occ maintenance:mode --off
Loading