Nextcloud ошибка передачи на сервер

При работе в Nextcloud возникают ошибки.
Для их устранения необходимо перевести облачное хранилище в режим обслуживания. Сделаем это с помощью утилиты occ находящаяся в корне web-проекта.

Переводим в режим обслуживания выполнив команду:

# sudo -u www-data php occ maintenance:mode --on

Для отключения режима обслуживания выполним команду:

# sudo -u www-data php occ maintenance:mode --off

В режиме обслуживания на Desktop-клиентах будет запрошен пароль пользователя.

Ошибка «File is locked»

Ошибка при использовании серверов с медленной дисковой подсистемой.
Для исправления потребует перевести хранилища в режим обслуживания и выполненить SQL-запрос по очистке таблицы блокировок.

> delete from oc_file_locks;

Ошибка «Файл был удален с сервера» («File was deleted from server»)

Это довольно распространенная не блокирующая ошибка и синхронизация будет продолжаться, но в логах клиента будут присутствовать соответствующие ошибки.

Для устранения этой ошибки необходимо воспользоваться встроенной функцией сканирования файлового хранилища. Эта функция может быть запущена для всех пользователей:

# sudo -u www-data php occ files:scan --all

Это доволно длительная операция и зависящая от того сколько пользователей и файлов и для устранения проблем у одного пользователя можно указать вместо параметра его имя или идентификатор из Active Directory:

# sudo -u www-data php occ files:scan 2718B513-40C2-497A-8461-5CA930CEC4E9

Если вам известно расположение сбойного файла, то можно указать какой каталог требуется пересканировать:

# sudo -u www-data php occ files:scan 2718B513-40C2-497A-8461-5CA930CEC4E9 
--path="2718B513-40C2-497A-8461-5CA930CEC4E9/files_versions/"

Когда штатные средства не помогают, придется удалить записи о файлах напрямую из базы данных, подключаемся базе данных mysql и выполняем запрос файлового идентификатора искомого файла.

> select fileid,path from oc_filecache where path like '%data/4.%';

Где, ‘%data/4.%’ — это запрос части имени файла вызывающего ошибку.

Следующим этапом удаляем идентификаторы сбойных файлов:

> delete from oc_filecache where fileid=589434;

589434 — соответственно идентификатор сбойного файла.

Ошибка «Precondition failed (An If-Match header was specified and the resource did not exist)»

Ошибка возникает на стороне клиента и оптимальным решением является переместить файл на временное хранение в другой каталог и после окончания синхронизации переместить файл обратно.

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:

Источник

Recently on a fresh installation of NextCloud, the following error appeared after logging into the dashboard:

Internal Server Error The server was unable to complete your request.

Internal Server Error The server was unable to complete your request.

Or in plain text:


Internal Server 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: XX.XX.XXX.XX
Request ID: YGwdJ99rJht4RtWzYxQ2


When checking the nextcloud.log file, the following errors stood out:

{"reqId":"zs37dGr4l9Kb6N3LGAWn","level":3,"time":"2022-01-04T16:09:00+00:00","remoteAddr":"XX.X.XXX.XXX","user":"jatak","app":"index","method":"GET","url":"/index.php","message":"An exception occurred while executing a query: SQLSTATE[HY001]: Memory allocation error: 1038 Out of sort memory, consider increasing server sort buffer size","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36","version":"23.0.0.10","exception"

So the script is going over the sort buffer size limit configured in MySQL.

This appears to be an outstanding issue with MySQL which causes this error when trying to sort on a table with a JSON column. It looks like it impacts MySQL >= 8.0.1 and MariaDB >= 10.3


Option 1. Disable Circles app

To solve this, if you do not have access to the server configuration files (you are on a shared hosting server), simply disable the Circles app in NextCloud by renaming the following folder:

/apps/circles

rename app/circles folder to disable the app

rename app/circles folder to disable the app

This will disable the Circles app which needs a higher sort buffer size limit.


Option 2. Edit my.cnf file

If you have root access to the server (VPOS or DEDICATED server) you can edit the MySQL configuration file and increase the sort_buffer_size value.

sudo nano /etc/mysql/my.cnf

and inside increase the sort_buffer_size:

[mysqld]
sort_buffer_size=5M

Edit /etc/mysql/my.cnf

Edit /etc/mysql/my.cnf

then restart MySQL

sudo service mysql restart

Comments

@IGLOU-EU

Hi,
A sharing file, cause a inconsistent sync or failure.
Capture d’écran de 2019-05-09 11-44-19

Steps to reproduce

  1. I don’t now

Expected behaviour

Success full client sync

Actual behaviour

Not success full sync, see attached file

A HTTP transmission error happened. The server file discovery reply is missing data

Server configuration

Operating system:
Debian 4.9.168-1

Web server:
Apache/2.4.25

Database:
(PostgreSQL) 10.7

PHP version:
7.3.5

Nextcloud version: (see Nextcloud admin page)
16.0.0

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

Are you using encryption: no

Logs

Web server error log

Nextcloud log (data/nextcloud.log)

Nextcloud log

{"reqId":"XOKmc38AAQEAABTkM-sAAAAI","level":3,"time":"2019-05-20T13:07:01+00:00","remoteAddr":"87.89.174.149","user":"Martin","app":"index","method":"GET","url":"/index.php/apps/recommendations/api/recommendations","message":{"Exception":"OCP\Files\NotFoundException","Message":"Node for share not found, fileid: 8488","Code":0,"Trace":[{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php","line":123,"function":"getNode","class":"OC\Share20\Share","type":"->","args":[]},{"function":"OCA\Recommendations\Service\{closure}","class":"OCA\Recommendations\Service\RecentlySharedFilesSource","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php","line":127,"function":"array_map","args":[{"__class__":"Closure"},[{"__class__":"OC\Share20\Share"},"*** sensitive parameter replaced ***",{"__class__":"OC\Share20\Share"}]]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php","line":91,"function":"getMostRecentRecommendation","class":"OCA\Recommendations\Service\RecentlySharedFilesSource","type":"->","args":[{"__class__":"OC\User\User"},6]},{"function":"OCA\Recommendations\Service\{closure}","class":"OCA\Recommendations\Service\RecommendationService","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php","line":92,"function":"array_reduce","args":[[{"__class__":"OCA\Recommendations\Service\RecentlyCommentedFilesSource"},{"__class__":"OCA\Recommendations\Service\RecentlyEditedFilesSource"},"*** sensitive parameter replaced ***"],{"__class__":"Closure"},[]]},{"file":"/srv/www/cloud/apps/recommendations/lib/Controller/RecommendationController.php","line":63,"function":"getRecommendations","class":"OCA\Recommendations\Service\RecommendationService","type":"->","args":[{"__class__":"OC\User\User"}]},{"file":"/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":166,"function":"index","class":"OCA\Recommendations\Controller\RecommendationController","type":"->","args":[]},{"file":"/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OCA\Recommendations\Controller\RecommendationController"},"index"]},{"file":"/srv/www/cloud/lib/private/AppFramework/App.php","line":126,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OCA\Recommendations\Controller\RecommendationController"},"index"]},{"file":"/srv/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Recommendations\Controller\RecommendationController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"_route":"recommendations.recommendation.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"_route":"recommendations.recommendation.index"}]},{"file":"/srv/www/cloud/lib/private/Route/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"_route":"recommendations.recommendation.index"}]},{"file":"/srv/www/cloud/lib/base.php","line":975,"function":"match","class":"OC\Route\Router","type":"->","args":["/apps/recommendations/api/recommendations"]},{"file":"/srv/www/cloud/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/srv/www/cloud/lib/private/Share20/Share.php","Line":182,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0","version":"16.0.1.1","id":"5ce2aaff7ae72"}

PGSQL

pgsql result

SELECT * FROM oc_share WHERE file_source = 8488;
 id | share_type | share_with | password | uid_owner | uid_initiator | parent | item_type | item_source | item_target | file_source |          file_target          | permissions |   stime    | accepted | expiration | token | mail_send | share_name | password_by_talk | note | hide_download | label 
----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+-------------------------------+-------------+------------+----------+------------+-------+-----------+------------+------------------+------+---------------+-------
 58 |          0 | Martin     |          | Marie     | Marie         |        | file      | 8488        |             |        8488 | /feuille de route 1er rdv.pdf |           3 | 1552413059 |        0 |            |       |         0 |            | f                |      |             0 | 
(1 row)

Resolve

Remove shared file (from web interface or psql)
ex: DELETE FROM oc_share WHERE file_source = 8488;

@skjnldsv

Formatted error

{
  "reqId": "XOKmc38AAQEAABTkM-sAAAAI",
  "level": 3,
  "time": "2019-05-20T13:07:01+00:00",
  "remoteAddr": "87.89.174.149",
  "user": "Martin",
  "app": "index",
  "method": "GET",
  "url": "/index.php/apps/recommendations/api/recommendations",
  "message": {
    "Exception": "OCP\Files\NotFoundException",
    "Message": "Node for share not found, fileid: 8488",
    "Code": 0,
    "Trace": [
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php",
        "line": 123,
        "function": "getNode",
        "class": "OC\Share20\Share",
        "type": "->",
        "args": []
      },
      {
        "function": "OCA\Recommendations\Service\{closure}",
        "class": "OCA\Recommendations\Service\RecentlySharedFilesSource",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecentlySharedFilesSource.php",
        "line": 127,
        "function": "array_map",
        "args": [
          {
            "__class__": "Closure"
          },
          [
            {
              "__class__": "OC\Share20\Share"
            },
            "*** sensitive parameter replaced ***",
            {
              "__class__": "OC\Share20\Share"
            }
          ]
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php",
        "line": 91,
        "function": "getMostRecentRecommendation",
        "class": "OCA\Recommendations\Service\RecentlySharedFilesSource",
        "type": "->",
        "args": [
          {
            "__class__": "OC\User\User"
          },
          6
        ]
      },
      {
        "function": "OCA\Recommendations\Service\{closure}",
        "class": "OCA\Recommendations\Service\RecommendationService",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Service/RecommendationService.php",
        "line": 92,
        "function": "array_reduce",
        "args": [
          [
            {
              "__class__": "OCA\Recommendations\Service\RecentlyCommentedFilesSource"
            },
            {
              "__class__": "OCA\Recommendations\Service\RecentlyEditedFilesSource"
            },
            "*** sensitive parameter replaced ***"
          ],
          {
            "__class__": "Closure"
          },
          []
        ]
      },
      {
        "file": "/srv/www/cloud/apps/recommendations/lib/Controller/RecommendationController.php",
        "line": 63,
        "function": "getRecommendations",
        "class": "OCA\Recommendations\Service\RecommendationService",
        "type": "->",
        "args": [
          {
            "__class__": "OC\User\User"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 166,
        "function": "index",
        "class": "OCA\Recommendations\Controller\RecommendationController",
        "type": "->",
        "args": []
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 99,
        "function": "executeController",
        "class": "OC\AppFramework\Http\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\Recommendations\Controller\RecommendationController"
          },
          "index"
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/App.php",
        "line": 126,
        "function": "dispatch",
        "class": "OC\AppFramework\Http\Dispatcher",
        "type": "->",
        "args": [
          {
            "__class__": "OCA\Recommendations\Controller\RecommendationController"
          },
          "index"
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/AppFramework/Routing/RouteActionHandler.php",
        "line": 47,
        "function": "main",
        "class": "OC\AppFramework\App",
        "type": "::",
        "args": [
          "OCA\Recommendations\Controller\RecommendationController",
          "index",
          {
            "__class__": "OC\AppFramework\DependencyInjection\DIContainer"
          },
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "function": "__invoke",
        "class": "OC\AppFramework\Routing\RouteActionHandler",
        "type": "->",
        "args": [
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/private/Route/Router.php",
        "line": 297,
        "function": "call_user_func",
        "args": [
          {
            "__class__": "OC\AppFramework\Routing\RouteActionHandler"
          },
          {
            "_route": "recommendations.recommendation.index"
          }
        ]
      },
      {
        "file": "/srv/www/cloud/lib/base.php",
        "line": 975,
        "function": "match",
        "class": "OC\Route\Router",
        "type": "->",
        "args": [
          "/apps/recommendations/api/recommendations"
        ]
      },
      {
        "file": "/srv/www/cloud/index.php",
        "line": 42,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/srv/www/cloud/lib/private/Share20/Share.php",
    "Line": 182,
    "CustomMessage": "--"
  },
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0",
  "version": "16.0.1.1",
  "id": "5ce2aaff7ae72"
}

@skjnldsv

@juliushaertl

For recommendations that would be rather @ChristophWurst 😉

A HTTP transmission error happened. The server file discovery reply is missing data

Which version of the desktop client are you running? This should actually be fixed in the most recent one.

For understanding why the share still exists while the node is not available anymore, it would actually be very useful to know where the share is originating from, but I guess you cannot run the following anylonger since you have deleted the entry: select * from oc_share where item_source = '8488';

@skjnldsv

@vpecinka

It happens in our setup as well. When an employee left company after some time others got these errors when they have (still) some shared resources from such left employee. Removing such a stale share resolves this issue. The employee that left is still present in the database (e.g. oc_preferences, oc_shares, oc_files) but not present on the LDAP server.

In the log I can see this for example

{"reqId":"66kl8wHwO5xuj7E9TG6d","level":3,"time":"2020-04-16T08:46:44+00:00","remoteAddr":"10.75.135.106","user":"97000F04-C4E6-4A6E-BCAF-7B5161B8F59D","app":"files","method":"PROPFIND","url":"/remote.php/dav/files/97000F04-C4E6-4A6E-BCAF-7B5161B8F59D/","message":" Backends provided no user object for 47C9694C-8C64-4B6B-A167-5B296FC76122","userAgent":"Mozilla/5.0 (Linux) mirall/2.3.3 (Nextcloud)","version":"17.0.3.1"}

where 97000F04-C4E6-4A6E-BCAF-7B5161B8F59D is still present employee and 47C9694C-8C64-4B6B-A167-5B296FC76122 is the one that left. But I am not sure this I related to displaying that error.

But.

It also happened to me today with the share from the same user 47C9694C-8C64-4B6B-A167-5B296FC76122 but recovered itself without any action needed. My case was «special» in the way that the resource was shared by this employee that left the company, but he was re-sharing a resource, that is owned by an employee still present in the company. And there is no log entry containing my uuid and the left employee uuid — like something crashed and produced no output? but I got this «discovery reply is missing data» error. Not now anymore.

@darcysabatino

I received this error due to an External Storage that was no longer available on the network. I didn’t need the External Storage connection anymore so I removed it from Nextcloud, and the error immediately stopped occurring on my desktop client.

@szaimen

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

Июнь 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

Print Friendly, PDF & Email

Задача:

Исправить ошибку nextcloud при открытии видео или аудио файлов в браузере

—————————————————————

Пробуем открыть файл и сразу смотрим, что записалось в логах: “Настройки > Журналирование”

По дате и времени находим, какая запись в логах соответствует попытке открыть файл.

[index] Error: OCPFilesNotPermittedException: Could not create folder at <<closure>>

 0. /usr/local/www/nextcloud/lib/private/Files/AppData/AppData.php line 158
    OCFilesNodeFolder->newFolder("920872")
 1. /usr/local/www/nextcloud/lib/private/Preview/Generator.php line 433
    OCFilesAppDataAppData->newFolder("920872")
 2. /usr/local/www/nextcloud/lib/private/Preview/Generator.php line 119
    OCPreviewGenerator->getPreviewFolder(OCFilesNodeFile {})
 3. /usr/local/www/nextcloud/lib/private/PreviewManager.php line 185
    OCPreviewGenerator->getPreview(OCFilesNodeFile {}, 1920, 1080, false, "fill", "image/jpeg")
 4. /usr/local/www/nextcloud/core/Controller/PreviewController.php line 172
    OCPreviewManager->getPreview(OCFilesNodeFile {}, 1920, 1080, false, "fill")
 5. /usr/local/www/nextcloud/core/Controller/PreviewController.php line 144
    OCCoreControllerPreviewController->fetchPreview(OCFilesNodeFile {}, 1920, 1080, true, true, "fill")
 6. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 170
    OCCoreControllerPreviewController->getPreviewByFileId(920872, 1920, 1080, true, true, "fill")
 7. /usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OCAppFrameworkHttpDispatcher->executeController(OCCoreControllerPreviewController {}, "getPreviewByFileId")
 8. /usr/local/www/nextcloud/lib/private/AppFramework/App.php line 125
    OCAppFrameworkHttpDispatcher->dispatch(OCCoreControllerPreviewController {}, "getPreviewByFileId")
 9. /usr/local/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OCAppFrameworkApp::main("OC\Core\Controller\PreviewController", "getPreviewByFileId", OCAppFramework ... {}, {_route: "core.P ... "})
10. <<closure>>
    OCAppFrameworkRoutingRouteActionHandler->__invoke({_route: "core.P ... "})
11. /usr/local/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OCAppFramework ... {}, {_route: "core.P ... "})
12. /usr/local/www/nextcloud/lib/base.php line 1008
    OCRouteRouter->match("/core/preview")
13. /usr/local/www/nextcloud/index.php line 38
    OC::handleRequest()

GET /core/preview?fileId=920872&x=1920&y=1080&a=true
from 192.168.17.231 by admin at 2020-05-23T11:57:51+00:00

Из логов видно, что ошибка прав доступа. Nextcloud не может создать папку.

OCPFilesNotPermittedException: Could not create folder

Авторизуемся в консоли сервера и проверяем какой веб сервер у нас используется

сurl --insecure --silent --show-error --connect-timeout 1 -I http://localhost | grep Server

Или можно узнать более короткой командой

root@cloud:/ # curl -I http://localhost
HTTP/1.1 404 Not Found
Server: nginx/1.16.1
Date: Sat, 23 May 2020 11:24:15 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive

root@cloud:/ #

Теперь необходимо узнать пользователя от кого работает nginx

root@cloud:/ # ps aux | grep nginx
root    781   0.0  0.1   32268    9500  -  Is   28Apr20      0:00.31 nginx: master process /usr/local/sbin/nginx
www    4314   0.0  0.1   29476   11756  -  S     8May20     18:37.97 nginx: worker process (nginx)
root   8480   0.0  0.0   11260    2716  0  S+   13:33        0:00.00 grep nginx
root@cloud:/ #

в какой группе состоит пользователь www

root@cloud:/ # groups www
www
root@cloud:/ # 

После того как мы получили нужную информацию, переходим в веб-директорию nextcloud

root@cloud:/ # cd /usr/local/www/
root@cloud:/usr/local/www #

назвачаем необходимые права на файлы и директории

chown -R www:www nextcloud
find nextcloud/ -type d -exec chmod 750 {} ;
find nextcloud/ -type f -exec chmod 640 {} ;

может быть, что файлы пользователей лежат в другой директории. Проверяем

root@cloud:/usr/local/www # cat nextcloud/config/config.php | grep datadir
  'datadirectory' => '/mnt/da1p1/data',
root@cloud:/usr/local/www #

назначаем нужные права на папку

root@cloud:/ # cd /mnt/da1p1
root@cloud:/mnt/da1p1 # chown -R www:www data
root@cloud:/mnt/da1p1 # find data/ -type d -exec chmod 750 {} ;
root@cloud:/mnt/da1p1 # find data/ -type f -exec chmod 640 {} ;

Пробуем генерировать файлы предварительного просмотра самостоятельно

root@cloud:/usr/local/www/nextcloud # sudo -u www php occ preview:pre-generate
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
2020-06-03T22:17:59+00:00
2020-06-03T22:17:59+00:00 In Folder.php line 164:
2020-06-03T22:17:59+00:00
2020-06-03T22:17:59+00:00   Could not create folder
2020-06-03T22:17:59+00:00
2020-06-03T22:17:59+00:00
2020-06-03T22:17:59+00:00 preview:pre-generate
2020-06-03T22:17:59+00:00
root@cloud:/usr/local/www/nextcloud #sudo -u www php occ preview:pre-generate -vvvv
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
2020-06-03T22:37:43+00:00 Generating previews for /virzai/files/Автозагрузка/WhatsApp Images/IMG-20200506-WA0019.jpg
2020-06-03T22:37:43+00:00
2020-06-03T22:37:43+00:00 In Folder.php line 164:
2020-06-03T22:37:43+00:00
2020-06-03T22:37:43+00:00   [OCPFilesNotPermittedException]
2020-06-03T22:37:43+00:00   Could not create folder
2020-06-03T22:37:43+00:00
2020-06-03T22:37:43+00:00
2020-06-03T22:37:43+00:00 Exception trace:
2020-06-03T22:37:43+00:00   at /usr/local/www/nextcloud/lib/private/Files/Node/Folder.php:164
2020-06-03T22:37:43+00:00  OCFilesNodeFolder->newFolder() at /usr/local/www/nextcloud/lib/private/Files/AppData/AppData.php:158
2020-06-03T22:37:43+00:00  OCFilesAppDataAppData->newFolder() at /usr/local/www/nextcloud/lib/private/Preview/Generator.php:433
2020-06-03T22:37:43+00:00  OCPreviewGenerator->getPreviewFolder() at /usr/local/www/nextcloud/lib/private/Preview/Generator.php:119
2020-06-03T22:37:43+00:00  OCPreviewGenerator->getPreview() at /usr/local/www/nextcloud/lib/private/PreviewManager.php:185
2020-06-03T22:37:43+00:00  OCPreviewManager->getPreview() at /usr/local/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php:205
2020-06-03T22:37:43+00:00  OCAPreviewGeneratorCommandPreGenerate->processFile() at /usr/local/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php:193
2020-06-03T22:37:43+00:00  OCAPreviewGeneratorCommandPreGenerate->processRow() at /usr/local/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php:164
2020-06-03T22:37:43+00:00  OCAPreviewGeneratorCommandPreGenerate->startProcessing() at /usr/local/www/nextcloud/apps/previewgenerator/lib/Command/PreGenerate.php:132
2020-06-03T22:37:43+00:00  OCAPreviewGeneratorCommandPreGenerate->execute() at /usr/local/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
2020-06-03T22:37:43+00:00  SymfonyComponentConsoleCommandCommand->run() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:915
2020-06-03T22:37:43+00:00  SymfonyComponentConsoleApplication->doRunCommand() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:272
2020-06-03T22:37:43+00:00  SymfonyComponentConsoleApplication->doRun() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:148
2020-06-03T22:37:43+00:00  SymfonyComponentConsoleApplication->run() at /usr/local/www/nextcloud/lib/private/Console/Application.php:214
2020-06-03T22:37:43+00:00  OCConsoleApplication->run() at /usr/local/www/nextcloud/console.php:99
2020-06-03T22:37:43+00:00  require_once() at /usr/local/www/nextcloud/occ:11
2020-06-03T22:37:43+00:00
2020-06-03T22:37:43+00:00 preview:pre-generate
2020-06-03T22:37:43+00:00
root@cloud:/usr/local/www/nextcloud #

Удаляем папку data/appdata_*

rm -r /mnt/da1p1/data/appdata_*

Пробуем пересканировать файлы приложений

root@cloud:/usr/local/www/nextcloud # sudo -u www php occ files:scan-app-data
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php

Scanning AppData for files
Path not found: /appdata_ocf5begso4j5

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 0       | 0     | 00:00:00     |
+---------+-------+--------------+

Запускаем режим восстановления и ещё раз сканирование файлов приложений

root@cloud:/usr/local/www/nextcloud # sudo -u www php occ maintenance:repair
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Repair mime types
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Fix potential broken mount points
     - No mounts updated
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - SCSS cache cleared
     - JS cache cleared
 - Clear every generated avatar on major updates
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Switches from deprecated "production" to "stable" update channel
 - Sets the enterprise logo
     - Repair step already executed
 - Reset generated avatar flag
 - Update name of the stored view
 - Fix component of birthday calendars
     - 4 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [>---------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Delete orphaned ACL rules
 - Copy default images to the app data directory
     - Icon %s copied successfully
     - Icon %s copied successfully
     - Icon %s copied successfully
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Purify and migrate collected mail addresses
    0 [>---------------------------]
 - Insert sync background job for all accounts
 1/1 [============================] 100%
 - Make Mail itinerary extractor executable
 - Migrate Mail provisioning config from config.php to the database
     - No old config found
 - Create or update provisioned Mail accounts
     - No Mail provisioning config set
 - Remove any playlist files mistakenly added to music_tracks table
 - Combine multi-disk albums and store disk numbers per track
 - Set creation date for playlists without one
 - Migrate binary status into separate boolean fields
 - Update OAuth token expiration times
 - Repair Passwords Database Objects
     - Checking 0 tag revisions
    0 [>---------------------------]
     - Fixed 0 tag revisions
     - Checking 2 folder revisions
 2/2 [============================] 100%
     - Fixed 0 folder revisions
     - Checking 38 password revisions
 38/38 [============================] 100%
     - Fixed 0 password revisions
     - Checking 0 tag models
    0 [>---------------------------]
     - Fixed 0 tag models
     - Checking 1 folder models
 1/1 [============================] 100%
     - Fixed 0 folder models
     - Checking 21 password models
 21/21 [============================] 100%
     - Fixed 0 password models
     - Checking 0 password tag relations
    0 [>---------------------------]
     - Fixed 0 password tag relations
 - Create help command
 - Invalidate access cache for projects conversation provider
     - Invalidation not required
 - Add background job to check for backup codes
 - Populating added database structures for workflows
root@cloud:/usr/local/www/nextcloud # sudo -u www php occ files:scan-app-data
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php

Scanning AppData for files

+---------+-------+--------------+
| Folders | Files | Elapsed time |
+---------+-------+--------------+
| 6       | 3     | 00:00:00     |
+---------+-------+--------------+

Запускаем создание изображений

root@cloud:/usr/local/www/nextcloud # sudo -u www php occ preview:pre-generate -vvvv
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php
2020-06-03T22:48:37+00:00 Generating previews for /virzai/files/Автозагрузка/WhatsApp Images/IMG-20200427-WA0003.jpg
2020-06-03T22:48:39+00:00 Generating previews for /virzai/files/Автозагрузка/WhatsApp Images/IMG-20200503-WA0008.jpg
2020-06-03T22:48:40+00:00 Generating previews for /virzai/files/Автозагрузка/WhatsApp Images/IMG-20200427-WA0020.jpg
2020-06-03T22:48:43+00:00 Generating previews for /virzai/files/Автозагрузка/WhatsApp Images/IMG-20200414-WA0041.jpg

После этого всё работало!

Другие статьи

Nextcloud community

Loading


Go to NextCloud


Can’t upload files to Nextcloud.

I’ve been having an issue with Nextcloud for some time. I was curious if anyone here has had issues with uploading files to Nextcloud.

If logged in I get the error «An unknown error has occurred».

When it is a shared folder and not logged in, I get the error «Could not upload «FileNameHere»»(edited)

That being said, I have no issue with extremely small files. I uploaded a 282 byte desktop.ini file with no issue but a 24.9 KB .SVG image can’t upload. On Nextcloud, it says I have 13.16 GB available so I know it shouldn’t be due to storage.

I am using Nextcloud in a docker container on an UnRAID server.

Понравилась статья? Поделить с друзьями:
  • Nextcloud ошибка 403
  • Nextcloud внутренняя ошибка сервера
  • Next rp ошибка сс23
  • Next rp ошибка запускайте игру через лаунчер
  • Next rp ошибка cd09 как решить