Support intro
Sorry to hear youâre facing problems
help.nextcloud.com is for home/non-enterprise users. If youâre running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isnât supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 24.0.1snap1
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): unknown: packaged in snap
PHP version (eg, 7.4): unknown: packaged in snap
The issue you are facing:
when I run sudo snap refresh nextcloud
, it sucessfully refreshes the snap with no issue. But when upgrading from the web instance and nextcloud.occ, it âupgrades sucessfullyâ but it remains in upgrade mode.
I have had this error since trying to upgrade to 24.0.3 and the problem remains when upgrading to 24.0.4.
I have looked for an answer to this but it seems no one else has had this issue.
Is this the first time youâve seen this error? N
Steps to replicate it:
- Run
sudo snap refresh nextcloud
- Go to nc.mydomain.com in browser and click
Start Update
and wait for update to finish. - The âUpdate is successful Redirecting you to Nextcloud in 3â
- Browser is refreshed and itâs the same update page with the
Start Update
button.
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Error: file_get_contents(/media/nextcloud/data/appdata_ocfiwivi7nwk/js/core/merged-template-prepend.js.deps): Failed to open stream: No such file or directory at /snap/nextcloud/31033/htdocs/lib/private/Files/Storage/Local.php#291 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError()
1. /snap/nextcloud/31033/htdocs/lib/private/Files/Storage/Local.php line 291
file_get_contents()
2. /snap/nextcloud/31033/htdocs/lib/private/Files/View.php line 1177
OC\Files\Storage\Local->file_get_contents()
3. /snap/nextcloud/31033/htdocs/lib/private/Files/View.php line 606
OC\Files\View->basicOperation()
4. /snap/nextcloud/31033/htdocs/lib/private/Files/Node/File.php line 56
OC\Files\View->file_get_contents()
5. /snap/nextcloud/31033/htdocs/lib/private/Files/SimpleFS/SimpleFile.php line 90
OC\Files\Node\File->getContent()
6. /snap/nextcloud/31033/htdocs/lib/private/Template/JSCombiner.php line 119
OC\Files\SimpleFS\SimpleFile->getContent()
7. /snap/nextcloud/31033/htdocs/lib/private/Template/JSCombiner.php line 94
OC\Template\JSCombiner->isCached()
8. /snap/nextcloud/31033/htdocs/lib/private/Template/JSResourceLocator.php line 123
OC\Template\JSCombiner->process()
9. /snap/nextcloud/31033/htdocs/lib/private/Template/JSResourceLocator.php line 76
OC\Template\JSResourceLocator->cacheAndAppendCombineJsonIfExist()
10. /snap/nextcloud/31033/htdocs/lib/private/Template/ResourceLocator.php line 78
OC\Template\JSResourceLocator->doFind()
11. /snap/nextcloud/31033/htdocs/lib/private/TemplateLayout.php line 377
OC\Template\ResourceLocator->find()
12. /snap/nextcloud/31033/htdocs/lib/private/TemplateLayout.php line 205
OC\TemplateLayout::findJavascriptFiles()
13. /snap/nextcloud/31033/htdocs/lib/private/legacy/OC_Template.php line 185
OC\TemplateLayout->__construct()
14. /snap/nextcloud/31033/htdocs/lib/public/AppFramework/Http/TemplateResponse.php line 204
OC_Template->fetchPage()
15. /snap/nextcloud/31033/htdocs/lib/private/AppFramework/Http/Dispatcher.php line 178
OCP\AppFramework\Http\TemplateResponse->render()
16. /snap/nextcloud/31033/htdocs/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
17. /snap/nextcloud/31033/htdocs/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
18. /snap/nextcloud/31033/htdocs/lib/base.php line 1023
OC\Route\Router->match()
19. /snap/nextcloud/31033/htdocs/index.php line 36
OC::handleRequest()
GET /index.php/login
from 10.xx.xx.69 at 2022-09-22T03:17:27+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/snap/nextcloud/current/htdocs/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/snap/nextcloud/current/nextcloud/extra-apps',
'url' => '/extra-apps',
'writable' => true,
),
),
'supportedDatabases' =>
array (
0 => 'mysql',
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/tmp/sockets/redis.sock',
'port' => 0,
),
'log_type' => 'file',
'logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log',
'logfilemode' => 416,
'instanceid' => 'instanceid',
'passwordsalt' => 'password',
'secret' => 'secret',
'trusted_domains' =>
array (
0 => '10.xx.xx.251',
1 => 'nc.mydomain.com',
),
'datadirectory' => '/media/nextcloud/data',
'dbtype' => 'mysql',
'version' => '24.0.1.1',
'overwrite.cli.url' => 'http://10.xx.xx.251',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:/tmp/sockets/mysql.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'password',
'installed' => true,
'maintenance' => true,
'overwritehost' => 'nc.mydomain.com',
'overwriteprotocol' => 'https',
);
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
{"reqId":"UtHu0Oub7htZ9U0K7YDS","level":3,"time":"2022-09-22T03:17:27+00:00","remoteAddr":"10.14.22.69","user":"--","app":"PHP","method":"GET","url":"/index.php/login","message":"file_get_contents(/media/nextcloud/data/appdata_ocfiwivi7nwk/js/core/merged-template-prepend.js.deps): Failed to open stream: No such file or directory at /snap/nextcloud/31033/htdocs/lib/private/Files/Storage/Local.php#291","userAgent":"Uptime-Kuma/1.18.0","version":"24.0.1.1","exception":{"Exception":"Error","Message":"file_get_contents(/media/nextcloud/data/appdata_ocfiwivi7nwk/js/core/merged-template-prepend.js.deps): Failed to open stream: No such file or directory at /snap/nextcloud/31033/htdocs/lib/private/Files/Storage/Local.php#291","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Files/Storage/Local.php","line":291,"function":"file_get_contents"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Files/View.php","line":1177,"function":"file_get_contents","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Files/View.php","line":606,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Files/Node/File.php","line":56,"function":"file_get_contents","class":"OC\\Files\\View","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Files/SimpleFS/SimpleFile.php","line":90,"function":"getContent","class":"OC\\Files\\Node\\File","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Template/JSCombiner.php","line":119,"function":"getContent","class":"OC\\Files\\SimpleFS\\SimpleFile","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Template/JSCombiner.php","line":94,"function":"isCached","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Template/JSResourceLocator.php","line":123,"function":"process","class":"OC\\Template\\JSCombiner","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Template/JSResourceLocator.php","line":76,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Template/ResourceLocator.php","line":78,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/TemplateLayout.php","line":377,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/TemplateLayout.php","line":205,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/legacy/OC_Template.php","line":185,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/public/AppFramework/Http/TemplateResponse.php","line":204,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/AppFramework/Http/Dispatcher.php","line":178,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/snap/nextcloud/31033/htdocs/lib/base.php","line":1023,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/snap/nextcloud/31033/htdocs/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/snap/nextcloud/31033/htdocs/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}