You are not logged in.

#101 2021-03-25 09:16:40

sweetthdevil
Member
Registered: 2009-10-20
Posts: 396

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Right,

Looking into it last night I realised NC is complaining on the admin page of the following:

No Memory cache - Redis is installed, service started and installed as per the wiki (see below config.php)

<?php
$CONFIG = array (
  'debug' => true,
  'config_is_read_only' => true,
  'datadirectory' => '/mnt/hd/nextcloud',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
   'memcache.local' => '\OC\Memcache\Redis',
   'filelocking.enabled' => 'true',
   'memcache.locking' => '\OC\Memcache\Redis',
   'redis' => array(
        'host' => 'localhost',
        'port' => 6379,
        'timeout' => 0.0,
         )
  ),
  'passwordsalt' => '*******',
  'secret' => '*******',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.1.*',
    2 => '*******.duckdns.org',
  ),
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '*******',
  'installed' => true,
  'instanceid' => '*******',
);

Also, went through this topic to have a look at the right issue mentioned above. When setting all user rights and owbership as per #82 NC doesn't want to start complaining it doesn't have access to config, then apps etc. I must set all to http to gain access to nc.

Edit: Looking at the wiki - I did not install uwsgi as NC is the only one website/PHP that I am running and didn't see the point. However, I can see that in its ini there is the user/uui set for nextcloud user? Would the permission issue come from there?

Last edited by sweetthdevil (2021-03-26 09:14:38)

Offline

#102 2021-03-29 16:10:32

synt4x
Member
Registered: 2010-11-30
Posts: 9

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Anyone using Nextcloud with Lighttpd and got it working with this new setup? The wiki page for Nextcloud has seemingly not had any updates for the Lighttpd section yet, and I'm struggling trying to figure out how to configure it to use multiple php-fpm pools. I'd need it to use the nextcloud pool specifically for the /nc subdir of the http root, and the normal one for everything else. I've tried this but it just leads to an empty page saying "File not found":

fastcgi.server = (
        "/nc/" =>
        ((
           "socket" => "/run/nextcloud/nextcloud.sock",
           "broken-scriptfilename" => "enable"
        )),
        ".php" =>
        ((
           "socket" => "/run/php-fpm/php-fpm.sock",
           "broken-scriptfilename" => "enable"
        ))
)

I've configured the php-fpm pool and nextcloud's config.php like the wiki says. Removing that "/nc" part of the config and setting the usual directory permissions back to "http:http" makes things work just fine as it always has, but I wanted my install to be compliant with the package going forward. Any help would be very appreciated.

Offline

#103 2021-03-30 07:12:10

str0gg
Member
Registered: 2012-12-01
Posts: 63
Website

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

@sweetthdevil
have you adjust php-pfm service ReadWritePaths?

Offline

#104 2021-03-30 07:14:17

sweetthdevil
Member
Registered: 2009-10-20
Posts: 396

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Hi str0gg,

Thank you for your reply. I am pretty sure I did.

But to be honest, I gave up for the time being. I will wait when all those issues have been sorted and see then.

Offline

#105 2021-03-30 09:52:10

str0gg
Member
Registered: 2012-12-01
Posts: 63
Website

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

sweetthdevil wrote:

Hi str0gg,

Thank you for your reply. I am pretty sure I did.

But to be honest, I gave up for the time being. I will wait when all those issues have been sorted and see then.

No wander, however if you change your mind you might try to enabled follow symlinks  in http server and/or make more ReadWritePaths more relaxed (/usr/share/webapps/nextcloud)

Offline

#106 2021-03-30 10:01:36

sweetthdevil
Member
Registered: 2009-10-20
Posts: 396

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Thank you, I will wait till the wiki has been updated, the permission has been fixed and also that face recognition app is working with v21.

Offline

#107 2021-03-31 15:16:33

synt4x
Member
Registered: 2010-11-30
Posts: 9

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

synt4x wrote:

Anyone using Nextcloud with Lighttpd and got it working with this new setup? The wiki page for Nextcloud has seemingly not had any updates for the Lighttpd section yet, and I'm struggling trying to figure out how to configure it to use multiple php-fpm pools. I'd need it to use the nextcloud pool specifically for the /nc subdir of the http root, and the normal one for everything else. I've tried this but it just leads to an empty page saying "File not found":

fastcgi.server = (
        "/nc/" =>
        ((
           "socket" => "/run/nextcloud/nextcloud.sock",
           "broken-scriptfilename" => "enable"
        )),
        ".php" =>
        ((
           "socket" => "/run/php-fpm/php-fpm.sock",
           "broken-scriptfilename" => "enable"
        ))
)

I've configured the php-fpm pool and nextcloud's config.php like the wiki says. Removing that "/nc" part of the config and setting the usual directory permissions back to "http:http" makes things work just fine as it always has, but I wanted my install to be compliant with the package going forward. Any help would be very appreciated.

After a bit of a deeper look at this, I've ended up with this in the lighttpd config which seems to be a more proper way of doing it (?):

$HTTP["url"] =~ "^/nc" {
    fastcgi.server = (
        ".php" => (
            "nextcloud" => (
                "socket" => "/run/nextcloud/nextcloud.sock",
                "broken-scriptfilename" => "enable"
            )
        )
    )
} else {
    fastcgi.server = (
        ".php" => (
            "localhost" =>  (
                "socket" => "/run/php-fpm/php-fpm.sock",
                "broken-scriptfilename" => "enable"
            )
        )
    )
}

This still gave me the "File not found" error on the /nc/ url path, but after enabling fastcgi.debug and adding "access.log = /var/log/$pool.access.log" to the nextcloud php-fpm config, I got some errors I could google. This allowed me to realize that it's caused by wrong permissions. I then tried changing ownership of some files to be owned by nextcloud again, and then the error changed from "File not found" to a more normal 403 error. Progress!

Now to figure out the correct permissions of everything...

Offline

#108 2021-04-06 23:49:27

synt4x
Member
Registered: 2010-11-30
Posts: 9

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Another update from me. I've been somewhat successful at running nextcloud using php-fpm and lighttpd as the actual nextcloud user now. I used my above fastcgi.server lighttpd config as before.

I've been using that old script that's been going around to set nc permissions for a long time. But originally it had file permissions set to 0640 and directory permissions set to 0750. Setting them to 0644 and 0755 respectively made me go from a 403 error to an internal server error instead. Here's the script with the new permissions:

#!/bin/bash
ncpath='/usr/share/webapps/nextcloud'
htuser='nextcloud'
htgroup='nextcloud'
rootuser='root'

printf "Creating possible missing Directories\n"
mkdir -p $ncpath/data
mkdir -p $ncpath/assets

printf "chmod Files and Directories\n"
find ${ncpath}/ -type f -print0 | xargs -0 chmod 0644
find ${ncpath}/ -type d -print0 | xargs -0 chmod 0755

printf "chown Directories\n"
chown -R ${rootuser}:${htgroup} ${ncpath}/
chown -R ${htuser}:${htgroup} ${ncpath}/apps/
chown -R ${htuser}:${htgroup} ${ncpath}/config/
chown -R ${htuser}:${htgroup} ${ncpath}/data/
chown -R ${htuser}:${htgroup} ${ncpath}/themes/
chown -R ${htuser}:${htgroup} ${ncpath}/assets/

chmod +x ${ncpath}/occ

printf "chmod/chown .htaccess\n"
if [ -f ${ncpath}/.htaccess ]
 then
  chmod 0644 ${ncpath}/.htaccess
  chown ${rootuser}:${htgroup} ${ncpath}/.htaccess
fi
if [ -f ${ncpath}/data/.htaccess ]
 then
  chmod 0644 ${ncpath}/data/.htaccess
  chown ${rootuser}:${htgroup} ${ncpath}/data/.htaccess
fi

I also chowned my data directory recursively to nextcloud:nextcloud.

After inspecting the logs I noticed that Nextcloud complained about not having permissions for Redis. So I added the nextcloud user to the redis group, then restarted the lighttpd, php-fpm, and redis services. Once that was done the Nextcloud home/login page showed up again!

But, I cannot actually login. After entering the details it just takes me back to the login screen again. Looking at the nextcloud logfile there are a bunch of these kinds of exceptions:

{"reqId":"xz9o7V1piSrDMTKtuD1o","level":3,"time":"April 06, 2021 23:37:41","remoteAddr":"192.168.0.3","user":"--","app":"PHP","method":"GET","url":"/nc/index.php/svg/core/categories/workflow?color=f2f2f2&v=1","message":{"Exception":"Error","Message":"session_regenerate_id(): Session ID cannot be regenerated when there is no active session at /usr/share/webapps/nextcloud/lib/private/Session/Internal.php#137","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"session_regenerate_id(): Session ID cannot be regenerated when there is no active session","/usr/share/webapps/nextcloud/lib/private/Session/Internal.php",137]},{"file":"/usr/share/webapps/nextcloud/lib/private/Session/Internal.php","line":137,"function":"session_regenerate_id","args":[true]},{"file":"/usr/share/webapps/nextcloud/lib/private/Session/CryptoSessionData.php","line":161,"function":"regenerateId","class":"OC\\Session\\Internal","type":"->","args":[true,false]},{"file":"/usr/share/webapps/nextcloud/lib/private/Session/CryptoSessionData.php","line":90,"function":"regenerateId","class":"OC\\Session\\CryptoSessionData","type":"->","args":[true,false]},{"file":"/usr/share/webapps/nextcloud/lib/private/Session/CryptoSessionData.php","line":66,"function":"initializeSession","class":"OC\\Session\\CryptoSessionData","type":"->","args":[]},{"file":"/usr/share/webapps/nextcloud/lib/private/Session/CryptoWrapper.php","line":113,"function":"__construct","class":"OC\\Session\\CryptoSessionData","type":"->","args":[{"__class__":"OC\\Session\\Internal"},{"__class__":"OC\\Security\\Crypto"},"ZLU7mCRQQzEZCxg7saIn10kKRHjWEtpPsgXPeww3p1w7MpICgI7tBvncDAcMVxLiU4o9KSs41xeXWGR9495M1qhKxgW58N/Pm2NyckMsUqIlFEul2UCbWWGVzHsHnQoU"]},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":420,"function":"wrapSession","class":"OC\\Session\\CryptoWrapper","type":"->","args":[{"__class__":"OC\\Session\\Internal"}]},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":639,"function":"initSession","class":"OC","type":"::","args":[]},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/share/webapps/nextcloud/index.php","line":35,"args":["/usr/share/webapps/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4449.0 Safari/537.36 Edg/91.0.838.3","version":"21.0.0.18"}

Oddly however, my nextcloud desktop client was able to automatically log back in and start syncing like normal again. And same with the nextcloud app on my phone.
I'm using the TOTP app for my user, could that be the issue? On the desktop client/mobile app I'm using a login token so they will bypass the TOTP app.

Edit: I disabled the twofactor_totp app using occ and it still won't let me log in using the web interface.

Last edited by synt4x (2021-04-07 00:05:36)

Offline

#109 2021-04-10 10:30:23

doragasu
Member
Registered: 2012-03-03
Posts: 146

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

str0gg wrote:
doragasu wrote:

@ElectricPrism: Great step by step explanation, thanks!

One question, are you using the TOTP plugin? Is it working for you? I also got my setup working with PHP8, but trying to enable the TOTP plugin fails.

I've spoken with totp plugin developer, check if you have secret in config.php

2FA is working for me :-)

I had no 'secret' and also no 'passwordsalt'. Added them from my old config and now TOTP works!!! Thanks!!! BTW, is passwordsalt also needed?

Offline

#110 2021-04-13 22:52:13

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

As of today, what is the recommendation about which user to run nextcloud in? The wiki mentions user nextcloud for v21 and also mentions that the php-fpm should have an additional pool for nextcloud but then in the TroubleShooting section for Environment variables not available indicates that the env[PATH] needs to be updated in the www.conf file. So all in all, the wiki page is in a lot of flux.

when I upgraded today from 20.0.7 to 21, it created apps and data folder for me under /var/lib/nextcloud and also chowned the /etc/webapps/nextcloud/config folder to the user nextcloud. But I had to change ownership back to http just to be able to access Nextcloud. So my permissions are all over the place with folders being present but not used and such.

Do we have an agreed upon approach to move from version v20 to v21?

thanks.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#111 2021-04-14 18:40:10

synt4x
Member
Registered: 2010-11-30
Posts: 9

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Final update from me. I've managed to solve it. The last issue that prevented me from logging in was caused by /var/lib/php/session being owned by http:http. I set it to nextcloud:nextcloud and that allowed me to log in again. Found the hint in the nextcloud docs here.

So now I have Nextcloud 21 working with PHP 8 and lighttpd, with PHP-FPM running as the nextcloud user.

But I'm wondering what the correct permissions on /var/lib/php/session should really be, since that doesn't seem quite right. So far no other service seems to have broken after changing the owner to nextcloud at least.

Last edited by synt4x (2021-04-14 18:42:25)

Offline

#112 2021-04-15 23:41:57

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

synt4x wrote:

Final update from me. I've managed to solve it. The last issue that prevented me from logging in was caused by /var/lib/php/session being owned by http:http. I set it to nextcloud:nextcloud and that allowed me to log in again. Found the hint in the nextcloud docs here.

So now I have Nextcloud 21 working with PHP 8 and lighttpd, with PHP-FPM running as the nextcloud user.

But I'm wondering what the correct permissions on /var/lib/php/session should really be, since that doesn't seem quite right. So far no other service seems to have broken after changing the owner to nextcloud at least.

I don't have /var/lib/php folder at all.

But I was able to fix it eventually and have everything run under the nextcloud user. A lot of trial and error... but keep looking at the journalctl logs for nginx (or any server that you are using) until nextcloud is responsive in the webUI. Then also look at your nextcloud log (whereever that is) and keep fixing each issue.

As of now, I have

  • /var/lib/nextcloud and all subfolders/files owned by nextcloud:nextcloud

  • /usr/share/webapps/nextcloud and all subfolders/files owned by root:root

  • /etc/webapps/nextcloud owned by root:root

  • /etc/webapps/nextcloud/config and all subfolders/files owned by nextcloud:nextcloud

  • nginx running under user=http

  • php-fpm has a separate pool for nextcloud as described in the wiki. I have disable www.conf by commenting it out completely.

Hope that helps anyone with permissions issues

Last edited by Inxsible (2021-04-15 23:42:32)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#113 2021-04-16 14:13:33

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

I think I spoke a bit too soon.

My installation is working except I cannot get to the Apps/Files page at all. Here's the error I get from Admin --> Settings --> Logging

ScssPhp\ScssPhp\Exception\CompilerException: `../../../core/css/whatsnew.scss` file not found for @import: /var/lib/nextcloud/apps/files/css/merged.scss on line 5, at column 1 Call Stack: #0 import /var/lib/nextcloud/apps/files/css/merged.scss (unknown file) on line 1
/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 5377:

ScssPhp\ScssPhp\Compiler->error()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2475:

ScssPhp\ScssPhp\Compiler->findImport()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2688:

ScssPhp\ScssPhp\Compiler->compileImport()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2154:

ScssPhp\ScssPhp\Compiler->compileChild()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 5306:

ScssPhp\ScssPhp\Compiler->compileChildrenNoReturn()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2477:

ScssPhp\ScssPhp\Compiler->importFile()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2688:

ScssPhp\ScssPhp\Compiler->compileImport()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 2154:

ScssPhp\ScssPhp\Compiler->compileChild()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 570:

ScssPhp\ScssPhp\Compiler->compileChildrenNoReturn()

/usr/share/webapps/nextcloud/3rdparty/scssphp/scssphp/src/Compiler.php - line 401:

ScssPhp\ScssPhp\Compiler->compileRoot()

/usr/share/webapps/nextcloud/lib/private/Template/SCSSCacher.php - line 343:

ScssPhp\ScssPhp\Compiler->compile()

/usr/share/webapps/nextcloud/lib/private/Template/SCSSCacher.php - line 189:

OC\Template\SCSSCacher->cache()

/usr/share/webapps/nextcloud/lib/private/Template/CSSResourceLocator.php - line 111:

OC\Template\SCSSCacher->process()

/usr/share/webapps/nextcloud/lib/private/Template/CSSResourceLocator.php - line 86:

OC\Template\CSSResourceLocator->cacheAndAppendScssIfExist()

/usr/share/webapps/nextcloud/lib/private/Template/ResourceLocator.php - line 79:

OC\Template\CSSResourceLocator->doFind()

/usr/share/webapps/nextcloud/lib/private/TemplateLayout.php - line 330:

OC\Template\ResourceLocator->find()

/usr/share/webapps/nextcloud/lib/private/TemplateLayout.php - line 238:

OC\TemplateLayout::findStylesheetFiles()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_Template.php - line 183:

OC\TemplateLayout->__construct()

/usr/share/webapps/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php - line 210:

OC_Template->fetchPage()

/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 172:

OCP\AppFramework\Http\TemplateResponse->render()

/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php - line 157:

OC\AppFramework\Http\Dispatcher->dispatch()

/usr/share/webapps/nextcloud/lib/private/Route/Router.php - line 302:

OC\AppFramework\App::main()

/usr/share/webapps/nextcloud/lib/base.php - line 993:

OC\Route\Router->match()

/usr/share/webapps/nextcloud/index.php - line 37:

OC::handleRequest()

Searching about this I found this bug report : https://bugs.archlinux.org/task/69814 where @dvzrv indicates that we should NOT copy all the apps from /usr/share/webapps/nextcloud/apps over to /var/lib/nextcloud/apps. However, if I remove all the apps from the under /var/lib/nextcloud/apps and keep an empty directory called apps under /var/lib/nextcloud, I simply get an ERR_TOO_MANY_REDIRECTS in the browser. Checking the journalctl for nginx then shows errors related to permission issues with /apps/dashboard:

sudo journalctl -u nginx | tail -n 40

Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [error] 1445#1445: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:23 nextcloud nginx[1445]: 2021/04/16 14:09:23 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:24 nextcloud nginx[1445]: 2021/04/16 14:09:24 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:25 nextcloud nginx[1445]: 2021/04/16 14:09:25 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:09:27 nextcloud nginx[1445]: 2021/04/16 14:09:27 [crit] 1445#1445: *8 stat() "/usr/share/webapps/nextcloud/apps/photos/service-worker.js" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/photos/service-worker.js HTTP/1.1", host: "nextcloud.mypublicdomain.net", referrer: "https://nextcloud.mypublicdomain.net/apps/photos/service-worker.js"

I guess I could move dashboard to /var/lib/nextcloud/apps and see, but is there a list of apps that need to be moved over ?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#114 2021-04-16 14:25:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

I copied the dashboard app to /var/lib/nextcloud/apps, but then it gave me errors regarding the photos app. So I copied that too. Changed ownership to nextcloud:nextcloud but now I still get errors:

Apr 16 14:11:01 nextcloud nginx[1445]: 2021/04/16 14:11:01 [crit] 1445#1445: *134 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:11:02 nextcloud nginx[1445]: 2021/04/16 14:11:02 [crit] 1445#1445: *134 stat() "/usr/share/webapps/nextcloud/apps/photos/service-worker.js" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/photos/service-worker.js HTTP/1.1", host: "nextcloud.mypublicdomain.net", referrer: "https://nextcloud.mypublicdomain.net/apps/photos/service-worker.js"
Apr 16 14:14:46 nextcloud systemd[1]: Stopping A high performance web server and a reverse proxy server...
Apr 16 14:14:46 nextcloud systemd[1]: nginx.service: Deactivated successfully.
Apr 16 14:14:46 nextcloud systemd[1]: Stopped A high performance web server and a reverse proxy server.
Apr 16 14:15:15 nextcloud systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 16 14:15:15 nextcloud nginx[1601]: 2021/04/16 14:15:15 [warn] 1601#1601: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
Apr 16 14:15:15 nextcloud systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: Operation not permitted
Apr 16 14:15:15 nextcloud systemd[1]: Started A high performance web server and a reverse proxy server.
Apr 16 14:15:19 nextcloud nginx[1603]: 2021/04/16 14:15:19 [crit] 1603#1603: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:15:19 nextcloud nginx[1603]: 2021/04/16 14:15:19 [crit] 1603#1603: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:15:19 nextcloud nginx[1603]: 2021/04/16 14:15:19 [error] 1603#1603: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mypublicdomain.net"
Apr 16 14:15:21 nextcloud nginx[1603]: 2021/04/16 14:15:21 [crit] 1603#1603: *5 stat() "/usr/share/webapps/nextcloud/apps/photos/service-worker.js" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/photos/service-worker.js HTTP/1.1", host: "nextcloud.mypublicdomain.net", referrer: "https://nextcloud.mypublicdomain.net/apps/photos/service-worker.js"
Apr 16 14:15:22 nextcloud nginx[1603]: 2021/04/16 14:15:22 [crit] 1603#1603: *1 stat() "/usr/share/webapps/nextcloud/apps/files/index.php" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/files/index.php/csrftoken HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:16:37 nextcloud systemd[1]: Stopping A high performance web server and a reverse proxy server...
Apr 16 14:16:37 nextcloud systemd[1]: nginx.service: Deactivated successfully.
Apr 16 14:16:37 nextcloud systemd[1]: Stopped A high performance web server and a reverse proxy server.
Apr 16 14:16:37 nextcloud systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 16 14:16:37 nextcloud nginx[1681]: 2021/04/16 14:16:37 [warn] 1681#1681: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
Apr 16 14:16:37 nextcloud systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: Operation not permitted
Apr 16 14:16:37 nextcloud systemd[1]: Started A high performance web server and a reverse proxy server.
Apr 16 14:16:59 nextcloud nginx[1683]: 2021/04/16 14:16:59 [error] 1683#1683: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mypublicdomain.net"
Apr 16 14:17:00 nextcloud nginx[1683]: 2021/04/16 14:17:00 [crit] 1683#1683: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:17:00 nextcloud nginx[1683]: 2021/04/16 14:17:00 [crit] 1683#1683: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:17:02 nextcloud nginx[1683]: 2021/04/16 14:17:02 [crit] 1683#1683: *1 stat() "/usr/share/webapps/nextcloud/apps/photos/service-worker.js" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/photos/service-worker.js HTTP/1.1", host: "nextcloud.mypublicdomain.net", referrer: "https://nextcloud.mypublicdomain.net/apps/photos/service-worker.js"
Apr 16 14:19:12 nextcloud systemd[1]: Stopping A high performance web server and a reverse proxy server...
Apr 16 14:19:13 nextcloud systemd[1]: nginx.service: Deactivated successfully.
Apr 16 14:19:13 nextcloud systemd[1]: Stopped A high performance web server and a reverse proxy server.
Apr 16 14:19:13 nextcloud systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 16 14:19:13 nextcloud nginx[1762]: 2021/04/16 14:19:13 [warn] 1762#1762: could not build optimal types_hash, you should increase either types_hash_max_size: 1024 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size
Apr 16 14:19:13 nextcloud systemd[1]: nginx.service: Can't open PID file /run/nginx.pid (yet?) after start: Operation not permitted
Apr 16 14:19:13 nextcloud systemd[1]: Started A high performance web server and a reverse proxy server.
Apr 16 14:19:15 nextcloud nginx[1764]: 2021/04/16 14:19:15 [crit] 1764#1764: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:19:15 nextcloud nginx[1764]: 2021/04/16 14:19:15 [crit] 1764#1764: *1 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:19:15 nextcloud nginx[1764]: 2021/04/16 14:19:15 [error] 1764#1764: *1 connect() failed (111: Unknown error) while connecting to upstream, client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/dashboard/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "nextcloud.mypublicdomain.net"
Apr 16 14:19:18 nextcloud nginx[1764]: 2021/04/16 14:19:18 [crit] 1764#1764: *5 stat() "/usr/share/webapps/nextcloud/apps/photos/service-worker.js" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "GET /apps/photos/service-worker.js HTTP/1.1", host: "nextcloud.mypublicdomain.net", referrer: "https://nextcloud.mypublicdomain.net/apps/photos/service-worker.js"
Apr 16 14:20:10 nextcloud nginx[1764]: 2021/04/16 14:20:10 [crit] 1764#1764: *8 stat() "/usr/share/webapps/nextcloud/apps/user_status/heartbeat" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "PUT /apps/user_status/heartbeat HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:20:10 nextcloud nginx[1764]: 2021/04/16 14:20:10 [crit] 1764#1764: *8 stat() "/usr/share/webapps/nextcloud/apps/user_status/heartbeat" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "PUT /apps/user_status/heartbeat HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:20:10 nextcloud nginx[1764]: 2021/04/16 14:20:10 [crit] 1764#1764: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "PUT /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"
Apr 16 14:20:10 nextcloud nginx[1764]: 2021/04/16 14:20:10 [crit] 1764#1764: *8 stat() "/usr/share/webapps/nextcloud/apps/dashboard/" failed (13: Permission denied), client: 192.168.1.1, server: nextcloud.mypublicdomain.net, request: "PUT /apps/dashboard/ HTTP/1.1", host: "nextcloud.mypublicdomain.net"

Seems like it's still trying to hit the apps folder under /usr/share/webapps/nextcloud UNLESS I copy over all the apps to the /var/lib/nextcloud/apps folder. But then the Files app doesn't work.

I have set up the apps paths in my config:

  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),

As yet another test, I copied all the apps except the files -- even then I only get the nextcloud error page with the reqId. The only way to get into nextcloud is to copy all the apps over --- but of course the files app then gives me the above mentioned error in the nextcloud log.

Checking journalctl logs after copying all the apps  -- still has Permission denied errors for apps under /usr/share/nextcloud/apps --- I am not sure why it's looking there when my config says that folder is not writable.

Checking the Admin -->Settings --> Logging shows me the fatal exceptions that occurred when I was trying to access the Files app.

no app in context	Error: Class "OCA\Files\App" not found
/usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php - line 176:

OCA\SystemTags\AppInfo\Application->boot()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 197:

OC\AppFramework\Bootstrap\Coordinator->bootApp()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 137:

OC_App::loadApp()

/usr/share/webapps/nextcloud/lib/base.php - line 979:

OC_App::loadApps()

/usr/share/webapps/nextcloud/index.php - line 37:

OC::handleRequest()

	2021-04-16T09:51:11-0500
Fatal	no app in context	Error: Class "OCA\Files\App" not found
/usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php - line 176:

OCA\Files_Trashbin\AppInfo\Application->boot()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 197:

OC\AppFramework\Bootstrap\Coordinator->bootApp()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 137:

OC_App::loadApp()

/var/lib/nextcloud/apps/dav/lib/AppInfo/Application.php - line 124:

OC_App::loadApps()

/usr/share/webapps/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php - line 176:

OCA\DAV\AppInfo\Application->boot()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 197:

OC\AppFramework\Bootstrap\Coordinator->bootApp()

/usr/share/webapps/nextcloud/lib/private/legacy/OC_App.php - line 137:

OC_App::loadApp()

/usr/share/webapps/nextcloud/lib/base.php - line 979:

OC_App::loadApps()

/usr/share/webapps/nextcloud/index.php - line 37:

OC::handleRequest()

I tried doing a re-install of nextcloud but that just fails with "Cannot write into config directory". I also tried doing an

sudo -u nextcloud php occ upgrade

but that just says Nextcloud is already latest version How would I fix this ?

Last edited by Inxsible (2021-04-16 17:32:22)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#115 2021-04-20 20:11:29

foxie
Member
Registered: 2021-04-20
Posts: 3

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

I've spent another 2 hours after last update (not sure why it broke again though).
Things that might have worked for me:

datadirectory has ownership

nextcloud:http

permissions

0770

This package is really broken.

Edit:

As I got often 502 (worked sometimes, sometimes not), I tried to uninstall package, remove all the traces set ownership (nextcloud:http) on /etc/webapps/config, /var/lib/nextcloud/apps and ofcourse on data. Unfortunatelly, I get the same issue. Dashboard seems to work but when I go to files directly, it just doesn't load. However, when I go there via dashboard, I get to subfolder and it works from there. It even works sometimes directly. No idea what's wrong.

Edit 2:

The problem seems to be /var/log/nextcloud/nextcloud.log. The app tries (does and then fails when no permission afterwards) to chmod it.

It works the other way around.

# chown http:nextcloud /var/log/nextcloud/nextcloud.log

I have the php-fpm fastcgi thing configured but I guess it doesn't run it under the nexcloud user as it still needs http permission.

Last edited by foxie (2021-04-20 23:01:22)

Offline

#116 2021-04-21 14:40:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Well, at least I am not the only one with the issue. Having ownership as nextcloud:http or http:nextcloud just seems weird. Why couldn't we just keep it at http:http?

Personally, I was using nextcloud in a Proxmox container -- so I wouldn't have had anything else served by the same nginx server. I think I might just go back to that model.... But the files app -- I am not sure if that is an ownership issue or a nextcloud app issue itself.

Last edited by Inxsible (2021-04-21 15:17:17)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#117 2021-04-24 14:12:23

PhiKoen
Member
Registered: 2012-09-03
Posts: 3

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Hey there! smile Unfortunately my nextcloud installation is broken as well - I'm receiving an "internal server error". Upon checking the logs, it seems to be a permission issue:

[Sat Apr 24 16:06:56.582882 2021] [php:notice] [pid 1675] [client 192.168.1.92:46584] {"reqId":"asdf","level":3,"time":"2021-04-24T14:06:56+00:00","remoteAddr":"192.168.1.92","user":"--","app":"PHP","method":"GET","url":
"/","message":{"Exception":"Error","Message":"fopen(/usr/share/webapps/nextcloud/data/nextcloud.log): Failed to open stream: No such file or directory at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85","Code":0,"Trace":[{"func
tion":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/File.php","line":85,"function":"fopen"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":371,"functi
on":"write","class":"OC\\\\Log\\\\File","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":220,"function":"writeLog","class":"OC\\\\Log","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php"
,"line":131,"function":"log","class":"OC\\\\Log","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","line":70,"function":"critical","class":"OC\\\\Log","type":"->"},{"function":"onShutdown","class":"OC\
\\\Log\\\\ErrorHandler","type":"::"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}

I've followed all steps on the wiki and my /data and /apps folder are owned by the nextcloud user smile The only process which is running as http user and group is Apache. Any help would be appreciated! smile

Have a great day and best regards
phikoen

Offline

#118 2021-04-24 15:46:46

foxie
Member
Registered: 2021-04-20
Posts: 3

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

PhiKoen wrote:

Hey there! smile Unfortunately my nextcloud installation is broken as well - I'm receiving an "internal server error". Upon checking the logs, it seems to be a permission issue:

[Sat Apr 24 16:06:56.582882 2021] [php:notice] [pid 1675] [client 192.168.1.92:46584] {"reqId":"asdf","level":3,"time":"2021-04-24T14:06:56+00:00","remoteAddr":"192.168.1.92","user":"--","app":"PHP","method":"GET","url":
"/","message":{"Exception":"Error","Message":"fopen(/usr/share/webapps/nextcloud/data/nextcloud.log): Failed to open stream: No such file or directory at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85","Code":0,"Trace":[{"func
tion":"onError","class":"OC\\\\Log\\\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/File.php","line":85,"function":"fopen"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":371,"functi
on":"write","class":"OC\\\\Log\\\\File","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":220,"function":"writeLog","class":"OC\\\\Log","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php"
,"line":131,"function":"log","class":"OC\\\\Log","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","line":70,"function":"critical","class":"OC\\\\Log","type":"->"},{"function":"onShutdown","class":"OC\
\\\Log\\\\ErrorHandler","type":"::"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0","version":""}

I've followed all steps on the wiki and my /data and /apps folder are owned by the nextcloud user smile The only process which is running as http user and group is Apache. Any help would be appreciated! smile

Have a great day and best regards
phikoen

Had to give change some permissions to nextcloud:http (plus added nextcloud to http group not sure on this as well but it works) on those and gave

# chown http:nextcloud -R /var/log/nextcloud

because it's being rewritten constantly. Make sure it's http:nextcloud and not the other way around because it will get overwritten again and will cause /files to go 504. Then there were some issues with previews (not sure it was really an issue though as I was just trying everything).

Offline

#119 2021-05-05 20:35:46

anarki@buttereblume
Member
Registered: 2015-12-29
Posts: 18

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Inxsible wrote:

Well, at least I am not the only one with the issue. Having ownership as nextcloud:http or http:nextcloud just seems weird. Why couldn't we just keep it at http:http?

Personally, I was using nextcloud in a Proxmox container -- so I wouldn't have had anything else served by the same nginx server. I think I might just go back to that model.... But the files app -- I am not sure if that is an ownership issue or a nextcloud app issue itself.

Someone who is much more into Arch than me and is running multiple webservers once told me to not use the nextcloud package from community repo at all because it adds additional complexity and that nextcloud can pretty good keep itself updated.

As for me, running a nextcloud server for a small company, I do use the nextcloud package, but after upgrades (recently 21.0.1-2) I have to:

- chown /etc/webapps/nextcloud/config to http:http, since my nextcloud instance is running as http user
- change /usr/lib/tmpfiles.d/nextcloud.conf first line to 'Z /etc/webapps/nextcloud/config http http'; otherwise systemd will change config ownership back to nextcloud now and then
- remove /usr/share/webapps/nextcloud/wapps symlink pointing to /var/lib/nextcloud
- add new symlink to my real wapps directory /etc/webapps/nextcloud/data
- reassure php-fpm still has ReadWritePath set to /etc/webapps/nextcloud

btw I did not copy anything to my wapps directory. It contains just the apps I installed via nextcloud web interface. Also I do not install any apps via pacman - just via web interface.

I have to run occ via sudo -u http /usr/share/webapps/nextcloud/occ. Apart from those inconvenience after upgrades, everything works like a charm.

The final issue I could not figure out - why is my nextcloud process running as http user? If I chown any path (wapps, data, config) to nextcloud:nextcloud, things won't work anymore. I understand package maintainers want to devide webserver / http user and php / nextcloud user so webserver does not have access permission to nextcloud data. But I don't get how I can set that user and why is it different from package default. I wonder if I should remove nextcloud package and keep to the official tar and let nextcloud handle its upgrade process by itself.

Edit: Just found out that /etc/php/php-fpm.d/www.conf was somehow shadowing nextcloud.conf. After disabling www.conf and chowning /etc/webapps/nextcloud/{apps,data,config} to nextcloud:nextcloud, it just worked.

Edit2: Both configs in php-fpm.d were pointing to the same socket and nginx prefererred www.conf. Just had to give nextcloud.conf an own socket and configure nginx accordingly.

Edit3: Conclusion

- Nextcloud root /usr/share/webapps/nextcloud root:root
- Nextcloud data, config, apps /etc/webapps/nextcloud{apps,data,config} nextcloud:nextcloud
- Nextcloud apps root/apps not writable
- Nextcloud wapps root/wapps -> /etc/webapps/nextcloud/apps writable
- Nginx upstream php-handler {server unix:/run/php-fpm/nextcloud.sock;}
- Php-fpm /etc/php/php-fpm.d/nextcloud.conf user=nextcloud group=nextcloud
listen = /run/php-fpm/nextcloud.sock
- And, of cause,  /usr/lib/tmpfiles.d/nextcloud.conf first line reverted to 'Z /etc/webapps/nextcloud/config nextcloud nextcloud'

Last edited by anarki@buttereblume (2021-05-05 21:48:33)

Offline

#120 2021-05-12 16:43:41

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,152

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

anarki@buttereblume wrote:

- Php-fpm /etc/php/php-fpm.d/nextcloud.conf user=nextcloud group=nextcloud
listen = /run/php-fpm/nextcloud.sock

Did you have to set

listen.owner = http
listen.group = http

in your php-fpm nextcloud.sock configuration? Without it, I haven't been able to get nextcloud to work. All I get is a 502 Bad Gateway error when trying to access nextcloud over the WebUI.

When I add the listen.owner and listen.group as above, I am able to access everything except the Files app -- which keeps failing. I am still unable to get to the Files app.

Did you copy all your apps to the new writable directory? If I don't do that, I keep getting permissions error for every apps. I only have the standard apps that come packaged with Nextcloud. When I copy all the apps over to the writable apps directory, Nextcloud starts up -- but the Files app won't work. What a headache !!

EDIT :: I have the same user ownership as in your EDIT3: Conclusion

Last edited by Inxsible (2021-05-12 16:45:32)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#121 2021-05-19 08:38:35

foxie
Member
Registered: 2021-04-20
Posts: 3

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

I'm tired of this. Every update fucks things up. I'm thinking of going back to docker version.

Offline

#122 2021-06-01 06:29:24

grmbrsp
Member
Registered: 2017-03-15
Posts: 4

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Since the last update to 21.0.2.1 my usual workaround of giving the http user permission on some directories doesn't work anymore. So I decided to use the nextcloud user from now on, as the wiki suggests. But I'm already stuck: running

sudo -u nextcloud /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade

does not work. I get this error message:

{"reqId":"h6ivZxzMEyLH0TboChBx","level":3,"time":"2021-06-01T06:16:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"mkdir(): Permission denied at /usr/share/webapps/nextcloud/lib/private/legacy/OC_Util.php#796","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"mkdir(): Permission denied","/usr/share/webapps/nextcloud/lib/private/legacy/OC_Util.php",796]},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_Util.php","line":796,"function":"mkdir","args":["/share/web/nextcloud-data"]},{"file":"/usr/share/webapps/nextcloud/lib/private/Console/Application.php","line":161,"function":"checkServer","class":"OC_Util","type":"::","args":[{"__class__":"OC\\SystemConfig"}]},{"file":"/usr/share/webapps/nextcloud/console.php","line":99,"function":"loadCommands","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/usr/share/webapps/nextcloud/occ","line":11,"args":["/usr/share/webapps/nextcloud/console.php"],"function":"require_once"}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.2.1"}
Dein Datenverzeichnis ist ungültig
Stelle sicher, dass eine Datei ".ocdata" im Wurzelverzeichnis des data-Verzeichnisses existiert.

Kann das "Daten"-Verzeichnis nicht erstellen
Dies kann zumeist behoben werden, indem dem Web-Server Schreibzugriff auf das Wurzel-Verzeichnis eingeräumt wird. Siehe auch https://docs.nextcloud.com/server/21/go.php?to=admin-dir_permissions

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /usr/share/webapps/nextcloud/lib/private/Console/Application.php:168
Stack trace:
#0 /usr/share/webapps/nextcloud/console.php(99): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /usr/share/webapps/nextcloud/occ(11): require_once('/usr/share/weba...')
#2 {main}{"reqId":"h6ivZxzMEyLH0TboChBx","level":3,"time":"2021-06-01T06:16:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":{"Exception":"Error","Message":"fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied","/usr/share/webapps/nextcloud/lib/private/Log/File.php",85]},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/File.php","line":85,"function":"fopen","args":["/share/web/nextcloud-data/nextcloud.log","a"]},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":371,"function":"write","class":"OC\\Log\\File","type":"->","args":["PHP","fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85",3]},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":220,"function":"writeLog","class":"OC\\Log","type":"->","args":["PHP","fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85",3]},{"file":"/usr/share/webapps/nextcloud/lib/private/Log.php","line":131,"function":"log","class":"OC\\Log","type":"->","args":[3,"fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85",{"app":"PHP"}]},{"file":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","line":70,"function":"critical","class":"OC\\Log","type":"->","args":["fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85",{"app":"PHP"}]},{"function":"onShutdown","class":"OC\\Log\\ErrorHandler","type":"::","args":[]}],"File":"/usr/share/webapps/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"--","version":"21.0.2.1"}
{"reqId":"h6ivZxzMEyLH0TboChBx","level":3,"time":"2021-06-01T06:16:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(/share/web/nextcloud-data/nextcloud.log): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Log/File.php#85","userAgent":"--","version":"21.0.2.1"}

It looks like the nextcloud user does not have any permissions in my data directory

/share/web/nextcloud-data

but in fact it's the owner. Does anybody know what I'm doing wrong?

EDIT:
Sorry, this was a local permission problem, not nextcloud related.

Last edited by grmbrsp (2021-06-01 07:11:04)

Offline

#123 2021-07-30 10:19:30

capthookb
Member
Registered: 2007-12-10
Posts: 121

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

I'm having issues with permissions as well.
I haven't completely understood what the relative paths and files should have for owner and groups. I have added user http to nextcloud and user nextcloud to http. When running the following script, nextcloud is working without any issues:

#/bin/bash
chown -R http:http /etc/webapps/nextcloud
chown -R http:http /var/lib/nextcloud

However, the problem is that in every reboot I have to fix permissions again because they change back to the defaults, I guess. This is somewhat strange and I haven't seen it in regular files in a linux filesystem before.
It takes a long time as well on my raspberry pi4, because /var/lib/nextcloud has grown substantially due to generation of previews

How can I make these changes permanent without having to run the script in each reboot, or what is the service that changes them in every reboot ?

Offline

#124 2021-09-24 20:12:37

Goldman
Member
Registered: 2021-01-29
Posts: 11

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

Is there any way to solve problem with conflict rights between http and nextcloud user?

Last edited by Goldman (2021-09-25 00:16:27)

Offline

#125 2021-11-23 18:06:02

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 349

Re: Nextcloud 21.0.0.2-21.0.0.9 sevral issues, index in first post

synt4x wrote:

Final update from me. I've managed to solve it. The last issue that prevented me from logging in was caused by /var/lib/php/session being owned by http:http. I set it to nextcloud:nextcloud and that allowed me to log in again. Found the hint in the nextcloud docs here.

So now I have Nextcloud 21 working with PHP 8 and lighttpd, with PHP-FPM running as the nextcloud user.

But I'm wondering what the correct permissions on /var/lib/php/session should really be, since that doesn't seem quite right. So far no other service seems to have broken after changing the owner to nextcloud at least.


hi

is possible have done something like you aproach but using alias instead regex the url?

$HTTP["url"] =~ "^/nc" {

i dont what copy any data to the server root path

EDIT: after follow the steps in the wiki (lighttpd+php-fpm) i get tons of this (messages and coredumped) anyone know how fix this?

2021-11-23 22:16:36: (mod_fastcgi.c.451) FastCGI-stderr:PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"PHP","method":"GET","url":"/minube/index.php","message":"touch(): Utime failed: Permission denied at /usr/share/webapps/nextcloud/lib/private/Config.php#246","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.4 Safari/537.36","version":"","exception":{"Exception":"Error","Message":"touch(): Utime failed: Permission denied at /usr/share/webapps/nextcloud/lib/private/Config.php#246","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":246,"function":"touch"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":136,"function":"writeData","class":"OC\\Config","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/SystemConfig.php","line":131,"function":"setValue","class":"OC\\Config","type":"->"}...PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"PHP","method":"GET","url":"/minube/index.php","message":"fopen(/usr/share/webapps/nextcloud/config/config.php): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Config.php#247","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.4 Safari/537.36","version":"","exception":{"Exception":"Error","Message":"fopen(/usr/share/webapps/nextcloud/config/config.php): Failed to open stream: Permission denied at /usr/share/webapps/nextcloud/lib/private/Config.php#247","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":247,"function":"fopen"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":136,"function":"writeData","class":"OC\\Config","type":"->"},{"file":"/usr/share/weba...PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"PHP","method":"GET","url":"/minube/index.php","message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Config.php#250","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.4 Safari/537.36","version":"","exception":{"Exception":"Error","Message":"chmod(): Operation not permitted at /usr/share/webapps/nextcloud/lib/private/Config.php#250","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":250,"function":"chmod"},{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":136,"function":"writeData","class":"OC\\Config","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/SystemConfig.php","line":131,"function":"setValue","class":"OC\\Config","type":"->"},{"file":"/usr/s...PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"index","method":"GET","url":"/minube/index.php","message":"Can't write into config directory!","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.4 Safari/537.36","version":"","exception":{"Exception":"OC\\HintException","Message":"Can't write into config directory!","Code":0,"Trace":[{"file":"/usr/share/webapps/nextcloud/lib/private/Config.php","line":136,"function":"writeData","class":"OC\\Config","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/SystemConfig.php","line":131,"function":"setValue","class":"OC\\Config","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/private/legacy/OC_Util.php","line":1155,"function":"setValue","class":"OC\\SystemConfig","type":"->"},{"file":"/usr/share/webapps/nextcloud/lib/base.php","line":419,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/...PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"index","method":"GET","url":"/minube/index.php","message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.4 Safari/537.36","version":"","exception":{"Exception":"Doctrine\\DBAL\\Exception","Message":"Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file","Code":14,"Trace":[{"file":"/usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1519,"function":"connect","class":"OC\\DB\\Connection","type":"->"},{"file":"/usr/share/webapps/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1041,"function":"getWrappedConnection","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/usr/share/weba...
2021-11-23 22:16:36: (mod_fastcgi.c.451) FastCGI-stderr:PHP message: {"reqId":"83UHjmLHYKa1qvY0bkP3","level":3,"time":"2021-11-23T21:16:36+00:00","remoteAddr":"192.168.0.2","user":"--","app":"PHP","method":"GET","url":"/minube/index.php","message":"fopen(/usr/share/webapps/nextcloud/data/nextcloud.log): Failed to open stream: No such file or directory at /usr/share/webapps/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/

greetings

Last edited by sl1pkn07 (2021-11-24 02:31:49)

Offline

Board footer

Powered by FluxBB