Произошла ошибка при проверке настроек сервера nextcloud

Steps to reproduce

  1. Login as Admin
  2. Go to Settings -> Administration -> Overview

Expected behaviour

Checking server setup should pass.

Actual behaviour

Get error under «Security & setup warning»

grafik

Server configuration

Operating system: CentsOS 7.5

Web server: nginx 1.15.3

Database: mariadb 10.3.9

PHP version: 7.2.9

Nextcloud version: 14.0.0

Updated from an older Nextcloud/ownCloud or fresh install: yes

Where did you install Nextcloud from: docker image

Signing status:
The error is about the server setup checking.

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Firefox 62.0

Operating system: ArchLinux

Logs

Web server error log

nothing here

Nextcloud log (data/nextcloud.log)

Nextcloud log

{"reqId":"qruZgYucXWF7sk27q0O9","level":3,"time":"2018-09-06T12:57:27+02:00","remoteAddr":"xx.xx.xx.x","user":"admin_user","app":"index","method":"GET","url":"/settings/ajax/checksetup","message":"Exception":"TypeError","Message":"Argument 1 passed to OC\SettingsController\CheckSetupController::getAppDirsWithDifferentOwnerForAppRoot() must be of the type array, boolean given, called in /nextcloud/settings/Controller/CheckSetupController.php on line 551","Code":0,"Trace":[{"file":"/nextcloud/settings/Controller/CheckSetupController.php","line":551,"function":"getAppDirsWithDifferentOwnerForAppRoot","class":"OC\Settings\Controller\CheckSetupController","type":"->","args":[false,{"path":"/apps2","url":"/apps2","writable":true}]},{"file":"/nextcloud/settings/Controller/CheckSetupController.php","line":624,"function":"getAppDirsWithDifferentOwner","class":"OC\Settings\Controller\CheckSetupController","type":"->","args":[]},{"file":"/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"check","class":"OC\Settings\Controller\CheckSetupController","type":"->","args":[]},{"file":"/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\CheckSetupController"},"check"]},{"file":"/nextcloud/lib/private/AppFramework/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\CheckSetupController"},"check"]},{"file":"/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\CheckSetupController","check",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"settings.CheckSetup.check"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":{"_route":"settings.CheckSetup.check"}]},{"file":"/nextcloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"settings.CheckSetup.check"}]},{"file":"/nextcloud/lib/base.php","line":989,"function":"match","class":"OC\Route\Router","type":"->","args":["/settings/ajax/checksetup"]},{"file":"/nextcloud/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/nextcloud/settings/Controller/CheckSetupController.php","Line":568,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0","version":"14.0.0.19"}

Browser log

nothing

CityCat4

CityCat4

@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

Глеб, ну ешкин кот! Не видишь, что ли, что прав не хватает на запись конфига? Семен Семеныч…

  • CityCat4,

    Не видишь, что ли, что прав не хватает на запись конфига?

    Вы на время вообще смотрели? Я знаю, что была ошибка по правам. Я её исправил. Файл config.php успешно создался. Теперь другая ошибка: Failed to start session
    В чём может быть дело и как её решить?

  • CityCat4,

    {«reqId»:»T8g6e9yEVmJ2YsTeDLTP»,»level»:3,»time»:»2022-08-18T23:31:11+00:00″,»remoteAddr»:»1.1.1.1″,»user»:»—«,»app»:»base»,»method»:»GET»,»url»:»/nextcloud/»,»message»:»Failed to start session»,»userAgent»:»Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36″,»version»:»»,»exception»:{«Exception»:»Exception»,»Message»:»Failed to start session»,»Code»:0,»Trace»:[{«file»:»/usr/local/nginx/html/nextcloud/lib/base.php»,»line»:431,»function»:»__construct»,»class»:»OC\Session\Internal»,»type»:»->»},{«file»:»/usr/local/nginx/html/nextcloud/lib/base.php»,»line»:659,»function»:»initSession»,»class»:»OC»,»type»:»::»},{«file»:»/usr/local/nginx/html/nextcloud/lib/base.php»,»line»:1104,»function»:»init»,»class»:»OC»,»type»:»::»},{«file»:»/usr/local/nginx/html/nextcloud/index.php»,»line»:34,»args»:[«/usr/local/nginx/html/nextcloud/lib/base.php»],»function»:»require_once»}],»File»:»/usr/local/nginx/html/nextcloud/lib/private/Sess» while reading response header from upstream, client: 1.1.1.1, server: domain.com, request: «GET /nextcloud/ HTTP/1.1», upstream: «fastcgi://unix:/var/run/php-fpm.sock:», host: «domain.com»
    2022/08/19 02:32:53 [error] 41545#106517: *10 FastCGI sent in stderr: «PHP message:

  • CityCat4

    WSGlebKavash, Проблемы с php-fpm, однако. Ошибка чтения заголовка ответа. Тут однозначного ответа дать нельзя, нужно доки грызть. А, пардон, на куа тебе nextcloud именно на FreeBSD? Шоб було?

  • CityCat4,

    Ошибка чтения заголовка ответа.

    Таков он на фряхе. На Ubuntu всё с первого раза заработало.

    А, пардон, на куа тебе nextcloud именно на FreeBSD?

    Обязательно будет вопрос на эту тему. Пожалуйста, подождите. Будьте готовы дать ответ.

    нужно доки грызть.

    Доки чего? Nextcloud? PHP 8.0?

  • CityCat4

    WSGlebKavash, И того и другого, а еще fastCGI, php-fpm и всего, что там задействовано. У меня кстати на генте nextcloud взлетел вообще без проблем

  • CityCat4,

    У меня кстати на генте nextcloud взлетел вообще без проблем

    То ж Linux. Более того, самый True GNU/Linux. А не BSD, где программы работают только с патчами, а некоторые линуксовые системные вызовы вообще невозможно реализовать.

  • DevMan

    CityCat4, это же глебушка.
    для него Per Aspera Ad Astra — походу смысл существования.

  • CityCat4

    DevMan, Ниче, вырастет, начнет работать (а не балду околачивать) — будет у него дохрена бесполезных знаний :)

  • DevMan

    CityCat4, чел, который на фрю пытается натянуть туксовые привычки, в нормального не вырастет.

  • CityCat4

    DevMan, Ну, как человек, который перешел с FreeBSD на линух, могу сказать, что если есть моск — разница нащупывается очень быстро и приходит понимание, что почем. Обратно на FreeBSD я кстати точно не вернусь :)

  • CityCat4

    WSGlebKavash, Глеб, твое обслуждение (ты кого-то обслуживать собрался?) уже пристрелил модератор :)

  • DevMan

    WSGlebKavash, ты до сих пор (после кучи снесенных акков) не понял, что
    тут не социалочка и обсуждений не ведут?
    ну не клоун ли ты после этого?

  • CityCat4

    DevMan, Да ладно. Все-таки растет. Раньше любой его вопрос приводил к дикому ржачу. Сейчас уже более-менее серьезные вопросы пошли (этот конечно не в счет)

  • DevMan

    CityCat4, так я о чем? он же хочет развлекалочки, как в дотку погонять.

07.04.2021

nextcloud-logo

В предыдущей статье я писал как можно установить и настроить nextcloud на операционной системе Ubuntu Server 20.04 с web-сервером nginx+php-fpm и базой данных postgresql. Почитать можно тут.

После успешного запуска nextcloud в панели администратора Вы можете в пункте общие сведения, увидеть следующие предупреждения:

Индексирование файлов

Для устранения запустим команды для ускорения индексирования файлов. В терминале набираем:

cd /var/www/nextcloud/

Включаем режим обслуживания:

sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on

И вводим данные строки:

sudo -u www-data php occ db:add-missing-indices
sudo -u www-data php occ db:convert-filecache-bigint

Выключаем режим обслуживания

sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

После данной манипуляции ошибка должна исчезнуть.

Предупреждения о текущей конфигурации /.well-known/.

  • Веб-сервер не настроен должным образом для разрешения «/.well-known/webfinger».
  • Веб-сервер не настроен должным образом для разрешения «/.well-known/nodeinfo».
  • Веб-сервер не настроен должным образом для разрешения «/.well-known/caldav».
  • Веб-сервер не настроен должным образом для разрешения «/.well-known/carddav».

Чтобы исправить данные предупреждения в конфигурационный файл nginx вашего облака внесем следующую location:

    location /.well-known {
      location = /.well-known/carddav { return 301 https://$host/remote.php/dav/; }
      location = /.well-known/caldav { return 301 https://$host/remote.php/dav/; }
      location ~ /.well-known/acme-challenge { allow all; }
      rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
      rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
      location  ^~ /.well-known { return 301 https://host/index.php$uri; }
         try_files $uri $uri/ =404;
     }

Адрес https://mynextcloud.ru измените на свой.

Также внесём следующие строки в файл .htaccess

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{HTTP_USER_AGENT}  DavClnt
  RewriteRule ^$ https://%{SERVER_NAME}/remote.php/webdav/ [L,R=302]
  RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  RewriteRule ^.well-known/host-meta https://%{SERVER_NAME}/public.php?service=host-meta [QSA,L]
  RewriteRule ^.well-known/host-meta.json https://%{SERVER_NAME}/public.php?service=host-meta-json [QSA,L]
  RewriteRule ^.well-known/webfinger https://%{SERVER_NAME}/public.php?service=webfinger [QSA,L]
  RewriteRule ^.well-known/carddav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
  RewriteRule ^.well-known/caldav https://%{SERVER_NAME}/remote.php/dav/ [R=301,L]
  RewriteRule ^remote/(.*) https://%{SERVER_NAME}/remote.php [QSA,L]
  RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
  RewriteCond %{REQUEST_URI} !^/.well-known/(acme-challenge|pki-validation)/.*
  RewriteRule ^(?:.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>

Зависание входа в панель NextCloud

Включил https на web сервере для nextclou и появился неприятный глюк: в google chrome, opera и яндекс браузере, а также в firefox, IE и edge при входе в аккаунт и выходе из него браузер «зависает» на странице входа, но при этом авторизуется. Если нажать F5, то окажемся в своем аккаунте.
Как же победить данную проблему?

Лечится добавлением в конфигурационный файл NexCloud:

sudo nano /var/www/nextcloud/config/config.php

следующего содержимого:

'overwriteprotocol' => 'https',

Не настроена система кэширования.

Не настроена система кэширования. Для увеличения производительности сервера, по возможности, настройте memcache.

Хочу использовать Memcached. Для этого надо установите модуль для PHP и сам memcached.

Как оказалось есть два похожих пакета:

  • php-memcache — модуль Memcache для PHP,
  • php-memcached — расширение PHP для взаимодействия с memcached.

Нужен с буквой d в конце.

Установливаем:

sudo apt install memcached php8.0-memcached

настройки в /etc/php/8.0/mods-available/memcached.ini оставляю все без изменений.
В выводе phpinfo(); появился блок с описанием memcached.

Настройки запуска сервиса в /etc/systemd/system/multi-user.target.wants/memcached.service и конфигурационный файл /etc/memcached.conf тоже не менял.

Запускаем memcached:

sudo systemctl start memcached

Проверяем запустился ли сервис

sudo ps ax | grep memcached

Должно выдать что-то вроде этого

725 ?        Ssl    0:11 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 127.0.0.1 -P /var/run/memcached/memcached.pid

Теперь в конфиге NextCloud добавим строки:

sudo nano /var/www/nextcloud/config/config.php
  'memcache.local' => 'OCMemcacheMemcached',
  'memcache.distributed' => 'OCMemcacheMemcached',
  'memcached_servers' => [
     [ '127.0.0.1', 11211 ],
 ],

Модуль php-imagick не поддерживает SVG

Для устранения данного предупреждения необходимо установить модуль imagick:

sudo apt install imagemagick

Не указан регион размещения этого сервера Nextcloud

Не указан регион размещения этого сервера Nextcloud, что требуется для возможности проверки номеров телефонов без указания кода страны.

Чтобы разрешить пользователям сервера указывать номера телефонов без указания кода страны, добавьте параметр «default_phone_region» с соответствующим кодом страны в соответствии с ISO 3166-1↗.

Для устранения данного предупреждения откроем конфигурационный файл NextCloud :

sudo nano /var/www/nextcloud/config/config.php

и добавим следующие строки:

'default_phone_region' => 'RU',

Для устранения данных ошибок в терминале набираем следующее:

sudo nano /etc/nginx/conf.d/headers.conf

И заполняем данным текстом:

    add_header Referrer-Policy   "no-referrer" always;
    add_header X-Content-Type-Options   "nosniff" always;
    add_header X-Download-Options   "noopen" always;
    add_header X-Frame-Options   "SAMEORIGIN" always;
    add_header X-Permitted-Cross-Domain-Policies "none" always;
    add_header X-Robots-Tag   "none"  always;
    add_header X-XSS-Protection   "1; mode=block" always;
    add_header Cache-Control "public, max-age=7200";
    # Remove X-Powered-By, which is an information leak
    fastcgi_hide_header X-Powered-By;

Сохраняем файл (ctrl+o, ctrl+x). И перезагружаем nginx

sudo service nginx restart

Заголовок HTTP «Strict-Transport-Security»

Для устранения данного предупреждения отредактируем файл Nginx headers.conf:

sudo nano /etc/nginx/conf.d/headers.conf

Добавим следующие строки:

add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;

Перезапустим nginx:

 sudo service nginx restart

PHP не настроен для системного окружения.

PHP не настроен правильно для получения переменных системного окружения.

Запрос getenv(«PATH») возвращает пустые результаты.
Обратитесь к разделу о конфигурации PHP и примечаниям к конфигурации PHP из руководства по установке. Обратите внимание на настройку параметров PHP, особенно при использовании механизма php-fpm.

Когда вы используете php-fpm, системные переменные среды, такие как PATH, TMP или другие, не заполняются автоматически так же, как при использовании php-cli. Вызов функции PHP, такой как getenv(‘PATH’); может возвращать пустой результат. Поэтому вам может потребоваться вручную настроить переменные среды в файле конфигурации php-fpm.

Редактируем файл:

sudo nano /etc/php/8.0/fpm/pool.d/www.conf

Находим строки:

;env[HOSTNAME] = $HOSTNAME
;env[PATH] = /usr/local/bin:/usr/bin:/bin
;env[TMP] = /tmp
;env[TMPDIR] = /tmp
;env[TEMP] = /tmp

И сними с них комментарий (;).

Далее перезапустим php8.0-fpm

sudo service php8.0-fpm restart

Значение PHP ниже рекомендуемого значения .

Разрешённое максимальное значение использования памяти PHP ниже рекомендуемого значения в 512 МБ.

В терминале набираем:

sudo nano /etc/php/8.0/fpm/php.ini

Находим и редактируем следующие строки:

max_execution_time = 300
max_input_time = 600
memory_limit = 512M
post_max_size = 20M
upload_max_filesize = 40M

Не скачиваются файлы больше 1Гб

При попытках скачать из облака файлы объемом более 1гб скачивание прерывается при достижении 1гб. Такое происходит при условии использования Nginx как реверс-прокси. Решается очень просто, нужно добавить в конфигурационный файл сайта опцию «proxy_buffering off». Открываем и добавляем эту опцию:

server {
…
proxy_buffering off;
…
}

Если есть вопросы, то пишем в комментариях.

Также можете вступить в Телеграм канал, ВКонтакте или подписаться на Twitter. Ссылки в шапке страницы.
Заранее всем спасибо!!!

RSS

Если вы нашли ошибку, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.

Nextcloud community

Loading

Steps to reproduce

  1. Upgrade NC from 14 to 15 using the instructions here: https://docs.nextcloud.com/server/15/admin_manual/maintenance/manual_upgrade.html (see bug: File Permissions documentation#1142)

  2. Visit your website

Expected behaviour

I expect a login screen.

Actual behaviour

I get this error:

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.
Technical details

    Remote Address: <private>
    Request ID: nI04wIe4C2WrAAVG4KBV
    Type: OCPFilesNotFoundException
    Code: 0
    Message:
    File: /var/www/nextcloud/lib/private/Files/Node/Node.php
    Line: 97


Trace

#0 /var/www/nextcloud/lib/private/Files/Node/Node.php(216): OCFilesNodeNode->getFileInfo()
#1 /var/www/nextcloud/lib/private/Files/Node/Node.php(117): OCFilesNodeNode->getPermissions()
#2 /var/www/nextcloud/lib/private/Files/Node/File.php(64): OCFilesNodeNode->checkPermissions(2)
#3 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(104): OCFilesNodeFile->putContent('/**n * @copyrig...')
#4 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(309): OCFilesSimpleFSSimpleFile->putContent('/**n * @copyrig...')
#5 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(153): OCTemplateSCSSCacher->cache('/var/www/nextcl...', '339f-319d-jquer...', 'jquery-ui-fixes...', Object(OCFilesSimpleFSSimpleFolder), '/core/css')
#6 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(109): OCTemplateSCSSCacher->process('/var/www/nextcl...', 'core/css/jquery...', 'core')
#7 /var/www/nextcloud/lib/private/Template/CSSResourceLocator.php(61): OCTemplateCSSResourceLocator->cacheAndAppendScssIfExist('/var/www/nextcl...', 'core/css/jquery...')
#8 /var/www/nextcloud/lib/private/Template/ResourceLocator.php(78): OCTemplateCSSResourceLocator->doFind('css/jquery-ui-f...')
#9 /var/www/nextcloud/lib/private/TemplateLayout.php(286): OCTemplateResourceLocator->find(Array)
#10 /var/www/nextcloud/lib/private/TemplateLayout.php(195): OCTemplateLayout::findStylesheetFiles(Array)
#11 /var/www/nextcloud/lib/private/legacy/template.php(211): OCTemplateLayout->__construct('user', 'files')
#12 /var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php(157): OC_Template->fetchPage(Array)
#13 /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php(119): OCPAppFrameworkHttpTemplateResponse->render()
#14 /var/www/nextcloud/lib/private/AppFramework/App.php(118): OCAppFrameworkHttpDispatcher->dispatch(Object(OCAFilesControllerViewController), 'index')
#15 /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php(47): OCAppFrameworkApp::main('ViewController', 'index', Object(OCAppFrameworkDependencyInjectionDIContainer), Array)
#16 [internal function]: OCAppFrameworkRoutingRouteActionHandler->__invoke(Array)
#17 /var/www/nextcloud/lib/private/Route/Router.php(297): call_user_func(Object(OCAppFrameworkRoutingRouteActionHandler), Array)
#18 /var/www/nextcloud/lib/base.php(987): OCRouteRouter->match('/apps/files/')
#19 /var/www/nextcloud/index.php(42): OC::handleRequest()
#20 {main}

The file /var/www/nextcloud/lib/private/Files/Node/Node.php exists.

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache2

Database: mariaDB (& redis)

PHP version: 7.0.32

Nextcloud version: 15

Updated from an older Nextcloud/ownCloud or fresh install: from 14

Where did you install Nextcloud from: What does this question mean?

Signing status: What does this question mean?

Signing status

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

I can’t do that because I can’t log in.

List of activated apps:

App list

root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ app:list
Enabled:
  - accessibility: 1.1.0
  - activity: 2.8.2
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - dav: 1.8.1
  - federatedfilesharing: 1.5.0
  - files: 1.10.0
  - files_external: 1.6.0
  - files_pdfviewer: 1.4.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - firstrunwizard: 2.4.0
  - gallery: 18.2.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - nextcloud_announcements: 1.4.0
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - password_policy: 1.5.0
  - provisioning_api: 1.5.0
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - support: 1.0.0
  - survey_client: 1.3.0
  - systemtags: 1.5.0
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - updatenotification: 1.5.0
  - workflowengine: 1.5.0
Disabled:
  - admin_audit
  - encryption
  - federation
  - user_ldap

Nextcloud configuration:

Config report

root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ config:list system  
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.mydomain.com",
            "files.mydomain.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https://nextcloud.mydomain.com",
        "dbtype": "mysql",
        "version": "15.0.2.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "loglevel": 2,
        "debug": true,
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
"updater.release.channel": "stable",
        "memcache.local": "OCMemcacheRedis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "memcache.locking": "OCMemcacheRedis"
    }
}

Are you using external storage, if yes which one: local/smb/sftp/…

No

Are you using encryption: yes/no

No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…

No

Client configuration

Browser:

Firefox

Operating system:

Linux

Logs

Web server error log

Web server error log

Nextcloud log (data/nextcloud.log)

Nextcloud log

Do you really want this?  It looks like a lot of HTML.

Browser log

Browser log

What do you want here?  I don't get browser errors so do you need this?

Содержание

  1. Internal Server Error в Nextcloud
  2. Nextcloud 13 — New Instalation 500 Internal Server Error #8406
  3. Comments
  4. Steps to reproduce
  5. Expected behaviour
  6. Actual behaviour
  7. Server configuration
  8. Internal Server Error #13597
  9. Comments
  10. Steps to reproduce
  11. Expected behaviour
  12. Actual behaviour
  13. Server configuration
  14. Client configuration
  15. Web server error log
  16. Nextcloud log (data/nextcloud.log)
  17. Browser log
  18. [Nextcloud 14] Internal Server Error #11205
  19. Comments
  20. Internal Server Error #911
  21. Comments

Internal Server Error в Nextcloud

Убрать ошибку “Internal Server Error” в Nextcloud

Уже сталкивался с ошибкой в статье “Ошибка nextcloud — Internal Server Error“, в этот раз попробую разобрать решение проблемы более детально.

Ошибка появилась после отключения питания на сервере

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

Немного информации о сервере:

  • FreeBSD 13.0 release p4
  • Nginx 1.20.1
  • PHP 8.0.11
  • MariaDB 10.5.12
  • Redis 6.0.15
  • memcached
  • APCu
  • OPcache

Кеширование Nextcloud (часть конфига nextcloud)

Я сразу проверил службы отвечающие за кеш

Проверяем конфиг Редиса

Проверяем лог Redis

Файлы .rdb – это дампы на диске для резервного копирования или сохранения. Их можно безопасно удалить, конечно в рамках решения проблем c nextcloud, ну а сама база данных Redis полностью находится в памяти.

Удаляем файлы и пробуем запустить

Как видим, dump файл заново создался. Проверяем работу Nextcloud, всё работает

Источник

Nextcloud 13 — New Instalation 500 Internal Server Error #8406

Steps to reproduce

I’ve installed Nextcloud 13 with the following procedure:

apt-get install apache2 mariadb-server -y
systemctl start apache2
systemctl enable apache2
systemctl start mysql
systemctl enable mysql
apt-get install php7.1-xml php7.1 php7.1-cgi php7.1-cli php7.1-gd php7.1-curl php7.1-zip php7.1-mysql php7.1-mbstring wget unzip -y
mysql_secure_installation

created a database named «nextclouddb» and a user ‘nextcloud’@’localhost’.
Downloaded and unpacked nextcloud 13 then:

chown -R www-data:www-data /var/www/html/nextcloud/

sudo -u www-data php7.1 occ maintenance:install —database mysql —database-name nextclouddb —database-user nextcloud —admin-user admin

configured config.php and then:

sudo -u www-data php /var/www/html/nextcloud/occ maintenance:update:htaccess
sudo systemctl restart apache2

Expected behaviour

When I connect from my browser to http://127.0.0.1/nextcloud or http://localhost/nextcloud I should see the nextcloud start page.

Actual behaviour

Here is the error on the browser:

  • @author Joas Schilling * @author Jörn Friedrich Dreyer * @author Lukas Reschke * @author Morris Jobke * @author Robin Appelman * @author Sergio Bertolín * @author Thomas Müller * @author Vincent Petry * * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ require_once DIR . ‘/lib/versioncheck.php’; try < require_once DIR . ‘/lib/base.php’; OC::handleRequest(); > catch(OCServiceUnavailableException $ex) < OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); > catch (OCHintException $ex) < OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); try < OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); > catch (Exception $ex2) < OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); OC::$server->getLogger()->logException($ex2, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); > > catch (OCUserLoginException $ex) < OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage()); > catch (Exception $ex) < OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); > catch (Error $ex) < try < OC::$server->getLogger()->logException($ex, array(‘app’ => ‘index’)); > catch (Error $e) < $claimedProtocol = strtoupper($_SERVER[‘SERVER_PROTOCOL’]); $validProtocols = [ ‘HTTP/1.0’, ‘HTTP/1.1’, ‘HTTP/2’, ]; $protocol = ‘HTTP/1.1’; if(in_array($claimedProtocol, $validProtocols, true)) < $protocol = $claimedProtocol; >header($protocol . ‘ 500 Internal Server Error’); header(‘Content-Type: text/plain; charset=utf-8’); print(«Internal Server Errornn»); print(«The server encountered an internal error and was unable to complete your request.n»); print(«Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.n»); print(«More details can be found in the webserver log.n»); throw $e; > OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); >

Server configuration

Here is my config.php:

Operating system:

Web server:
Apache 2

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

Updated from an older Nextcloud/ownCloud or fresh install:

The text was updated successfully, but these errors were encountered:

Источник

Internal Server Error #13597

Steps to reproduce

Visit your website

Expected behaviour

I expect a login screen.

Actual behaviour

I get this error:

The file /var/www/nextcloud/lib/private/Files/Node/Node.php exists.

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache2

Database: mariaDB (& redis)

PHP version: 7.0.32

Nextcloud version: 15

Updated from an older Nextcloud/ownCloud or fresh install: from 14

Where did you install Nextcloud from: What does this question mean?

Signing status: What does this question mean?

I can’t do that because I can’t log in.

List of activated apps:

Nextcloud configuration:

Are you using external storage, if yes which one: local/smb/sftp/.

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/.

Client configuration

Browser:

Operating system:

Web server error log

Nextcloud log (data/nextcloud.log)

Browser log

The text was updated successfully, but these errors were encountered:

Same issue here, I first upgraded from Ubuntu 16.04 to 18.04 then used the upgrader in nextcloud web to upgrade from 13 to 14. I now have exactly the same issues. My mobile nextcloud app although still works fine. So I guess it has something to do with the changes from PHP 7.0 to 7.2.

I’m still stuck. Did you already found a solution?

Nextcloud
Interne serverfout

De server was niet in staat je aanvraag te verwerken.

Stuur de hieronder afgebeelde technische details naar de server beheerder wanneer dit opnieuw gebeurt.

Meer details in de serverlogging,
Technische details

Источник

[Nextcloud 14] Internal Server Error #11205

I have installed Nextcloud and was working for a few hours and then it’s showing an Internal Server Error. I have checked the server log and haven’t found what’s the problem.

BTW, I have other apps working fine. The issue is just with nextcloud 14.

Client Error

Server Log

The text was updated successfully, but these errors were encountered:

Your server log is incomplete. Can you please post more content of your server log?
Have a look at it with «less» or «cat» and not with «vi».

And check first that your database is reachable if you use MySQL or PostgreSQL.

This also happens for me, during first time LDAP login. The error logs are:

$ name = $ user -> getBackendClassName ();

GitMate.io thinks possibly related issues are #6839 (Nextcloud got internal Server error after update APP:OnlyOFFICE, need to remove this APP completely), #2741 (Calendar app: internal server error after upgrading to Nextcloud 11), #7622 (NextCloud Server Listener ), #8326 (Internal Server Error (Template not found) when loading Calendar after upgrade to Nextcloud 13.x), and #5056 (nextcloud 12 upgrade error).

I’m pretty sure I stumbled across this issue this morning. I had added a user through the IMAP verification, and then it disappeared from the users list and when I try logging in to the account, it errors. There is no sign of the account in the users list or under occ user:info [username] .

Источник

Internal Server Error #911

Running Docker container latest . Everything was working fine (apps installed, mobile connected, etc), until I moved the volume files to a larger volume 10GB to 50GB, and then:

Pretty useless error message and I have NO idea where to find server log . I’m not even sure what filename I’m looking for. There is a file under nextcloud_nextcloud/_data named nextcloud.log . Is that the server log ? I’ve tried removing that file to see if it would be re-created and/or update after a restart of the container and a refresh of the error page, but nothing.

sure I could just start all over again, but fyi, this is the second time I’ve tried using Nextcloud (the first was a few years ago) and I recall having the same issue back then; Internal Server Error and nothing else in terms of error details. I guess this is fine for the end-user, they just call the admin, but where’s the support for the admin? I would love nothing more than for this open-source cloud solution to work, but if nextcloud is really this fragile, then I guess its just not the solution I’m looking for. Back to Google?? (ugh!)

Obviously pretty disappointed by this, but any and all support are very much appreciated.
Cheers!

EDIT:
Went back through the docs to find mention of a Nextcloud Server Log File. Does this file NOT exist unless its enabled in the Admin Page??

Also, when I connect to the container and try to view the Webserver Log Files, this is what I get:

Does this get written somewhere on the host? This could just be a docker thing, I’m really not sure, but either way, it would be nice to find these log files, and eventually solve «Internal Server Error».

The text was updated successfully, but these errors were encountered:

Источник

  • Произошла ошибка при проверке имени этого компьютера на контроллере
  • Произошла ошибка при проведении операции homebank
  • Произошла ошибка при присоединении к сеансу gta online
  • Произошла ошибка при предварительном просмотре если запущена другая сканирующая программа windows 10
  • Произошла ошибка при попытке чтения исходного файла исходный файл поврежден