Hello all,
I have been trying to setup Nextcloud for few days now.
Followed the wiki - the install is with Apache/Mariadb/PHP
I run the âsudo -u http occ maintenance:installâ and got a nextcloud install was successful.
thatâs what I am getting on Chrome when trying to access the page (server is located on 192.168.1.90)
Sorry for the long post I am added as my info as I can.
I have also added internal ip address to trusted domain and my duckdns link
> 'trusted_domains' =>
> array (
> 0 => '192.168.1.*',
> 1 => '******.duckdns.org',
> ),
I checked all the folder user rights as per the wiki and all is go.
Really lost there, any help or pointer would be greatly appreciated.
See below Nextcloud & Apacheâs log on pastbin
My nextcloud log => {"reqId":"B3chm9nePKu7bIbTD1kT","level":3,"time":"2021-03-22T12:34:43+00:00","re - Pastebin.com
My apache access_log => 192.168.1.95 - - [20/Mar/2021:09:37:07 +0000] "GET / HTTP/1.1" 200 481192.168. - Pastebin.com
My apache error_log => AH00558: httpd: Could not reliably determine the server's fully qualified domain - Pastebin.com
My apachenextcloud.foo.info-access_log => 192.168.1.95 - - [22/Mar/2021:11:17:14 +0000] "GET /info.php HTTP/1.1" 404 1111 - Pastebin.com
My apache nextcloud.foo-error_log => [Mon Mar 22 11:17:14.988361 2021] [php:error] [pid 6458] [client 192.168.1.95:33 - Pastebin.com
Hi @sweetthdevil,
can you send your apache file for your nextcloud web page? ( remove all private information)
maybe remove ServerName
or set a domain like exemple.com
in your apache file can solve some issues.
Can you did this line: ls -l
inside your nextcloud folder and send me the result. ( maybe this is a permissions issue )
Hi Mageunic,
Thank you for your reply and your assistance, see below requested info:
sudo ls -la /usr/share/webapps/nextcloud/
total 160
drwxr-xr-x 12 nextcloud nextcloud 4096 Mar 22 10:35 .
drwxr-xr-x 3 root root 4096 Mar 22 10:35 ..
-rw-r--r-- 1 nextcloud nextcloud 2734 Mar 3 16:33 .htaccess
-rw-r--r-- 1 nextcloud nextcloud 101 Mar 3 16:33 .user.ini
drwxr-xr-x 43 nextcloud nextcloud 4096 Mar 22 10:35 3rdparty
-rw-r--r-- 1 nextcloud nextcloud 17900 Mar 3 16:33 AUTHORS
-rw-r--r-- 1 nextcloud nextcloud 34520 Mar 3 16:33 COPYING
drwxr-xr-x 47 nextcloud nextcloud 4096 Mar 22 10:35 apps
lrwxrwxrwx 1 nextcloud nextcloud 29 Mar 3 16:33 config -> /etc/webapps/nextcloud/config
-rw-r--r-- 1 nextcloud nextcloud 3900 Mar 3 16:33 console.php
drwxr-xr-x 22 nextcloud nextcloud 4096 Mar 22 10:35 core
-rw-r--r-- 1 nextcloud nextcloud 5122 Mar 3 16:33 cron.php
-rw-r--r-- 1 nextcloud nextcloud 156 Mar 3 16:33 index.html
-rw-r--r-- 1 nextcloud nextcloud 2960 Mar 3 16:33 index.php
drwxr-xr-x 6 nextcloud nextcloud 4096 Mar 22 10:35 lib
-rwxr-xr-x 1 nextcloud nextcloud 283 Mar 3 16:33 occ
drwxr-xr-x 2 nextcloud nextcloud 4096 Mar 22 10:35 ocm-provider
drwxr-xr-x 2 nextcloud nextcloud 4096 Mar 22 10:35 ocs
drwxr-xr-x 2 nextcloud nextcloud 4096 Mar 22 10:35 ocs-provider
-rw-r--r-- 1 nextcloud nextcloud 3144 Mar 3 16:33 public.php
-rw-r--r-- 1 nextcloud nextcloud 5341 Mar 3 16:33 remote.php
drwxr-xr-x 4 nextcloud nextcloud 4096 Mar 22 10:35 resources
-rw-r--r-- 1 nextcloud nextcloud 26 Mar 3 16:33 robots.txt
-rw-r--r-- 1 nextcloud nextcloud 2446 Mar 3 16:33 status.php
drwxr-xr-x 3 nextcloud nextcloud 4096 Mar 22 10:35 themes
drwxr-xr-x 2 nextcloud nextcloud 4096 Mar 22 10:35 updater
-rw-r--r-- 1 nextcloud nextcloud 383 Mar 3 16:33 version.php
lrwxrwxrwx 1 nextcloud nextcloud 23 Mar 3 16:33 wapps -> /var/lib/nextcloud/apps
<IfModule mod_alias.c>
Alias /nextcloud /usr/share/webapps/nextcloud/
</IfModule>
<Directory /usr/share/webapps/nextcloud/>
Options FollowSymlinks
AllowOverride all
Require all granted
</Directory>
<VirtualHost *:80>
ServerAdmin foo@foofarm.com
DocumentRoot /usr/share/webapps/nextcloud
ServerName *****.duckdns.org
ErrorLog /var/log/httpd/nextcloud.foo.info-error_log
CustomLog /var/log/httpd/nextcloud.foo.info-access_log common
</VirtualHost>
<IfModule mpm_itk_module>
AssignUserId nextcloud nextcloud
</IfModule>
1 Like
@sweetthdevil I donât know why your files are not executable âŚ
do this : sudo chmod -R 754 /usr/share/webapps/nextcloud
Ignore my previous reply if you have seen it.
httpd.service has been restarted successfully but nextcloud is still showing the same error on IP:80
Also added my config.php for info
<?php
$CONFIG = array (
'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,
),
),
'instanceid' => '*******',
'passwordsalt' => '*******',
'secret' => '*******',
'trusted_domains' =>
array (
0 => '192.168.1.*',
1 => '*****.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,
);
Right, uninstalled Nextcloud and clean all folder.
Did the install again following the wiki available on Archlinux again and I am having the same issue. However, after searching a bit I managed to enable debug and now got the following errors displayed.
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: 192.168.1.95
* Request ID: gLPkaKQMSsDhVF6mqUN9
* Type: Exception
* Code: 0
* Message: Failed to start session
* File: /usr/share/webapps/nextcloud/lib/private/Session/Internal.php
* Line: 63
### Trace
#0 /usr/share/webapps/nextcloud/lib/base.php(417): OC\Session\Internal->__construct() #1 /usr/share/webapps/nextcloud/lib/base.php(639): OC::initSession() #2 /usr/share/webapps/nextcloud/lib/base.php(1076): OC::init() #3 /usr/share/webapps/nextcloud/index.php(35): require_once('...') #4 {main}
@sweetthdevil which type of installation do you use ??? ( docker ? snap ? using packages ?)
1 Like
Hi,
Installed Apache/Mariadb/PHP/nextcloud via pacman on archlinux.
And for information I followed the installation from archlinux wiki Nextcloud - ArchWiki
@sweetthdevil ok, try to add this before the last );
in your config.php (/usr/share/webapps/nextcloud/config/config.php) :
âoverwritehostâ => âexemple.comâ,
âoverwriteprotocolâ => âhttpsâ,
âoverwritewebrootâ => â/â,
âtrusted_proxiesâ =>
array (
0 => â127.0.0.1â,
),
âoverwrite.cli.urlâ => âhttps://example.comâ,
if your use ip/nextcloud to access to you nextcloud set /nextcloud
instead of /
in overwritewebroot option
1 Like
Right, cleaned my all installed this morning and started from fresh again.
I managed to get it up and running after a lot of f*****ng about with permission (load of issues reported on Archlinux forum) Anyway, the last hurdle (for the time being) is that if the system is power off or rebooted (yet to try suspend) the permission are changed automatically and I loose access to it again.
Both commands must be ran to gain access again:
sudo chown -R http:http /etc/webapps/nextcloud/
sudo chown -R http:http /var/lib/nextcloud/apps
And just fyi all my folder had to be set with http user as opposed to nextcloud?!
@sweetthdevil maybe install nextcloud using packages ( zip files or tar.gz file ) is a better idea⌠I donât know why nextcloud user donât works on your pacman installation âŚ
1 Like