Bug 27871 - Nextcloud 21.0.0-0.20201214.1.mga8 failing with 403 Forbidden error
Summary: Nextcloud 21.0.0-0.20201214.1.mga8 failing with 403 Forbidden error
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Joseph Wang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-18 20:38 CET by Brian Rockwell
Modified: 2021-03-03 10:18 CET (History)
2 users (show)

See Also:
Source RPM: nextcloud-21.0.0-0.20201214.1.mga8.noarch
CVE:
Status comment:


Attachments
journal (49.58 KB, application/x-7z-compressed)
2020-12-18 20:46 CET, Brian Rockwell
Details

Description Brian Rockwell 2020-12-18 20:38:54 CET
Description of problem: Patch or fresh build nextcloud latest is failing


Version-Release number of selected component (if applicable): MGA 8 - beta 2


How reproducible:  Install Nextcloud 21 from RPM above then go to webpage


Steps to Reproduce:
1.  Install or Patch Nextcloud 21 with version above
2.  Goto 127.0.0.1/nextcloud on installed server
3.  Will get the following web-page

Forbidden

You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


4.  Note I've tried changing permissions in /var and in /conf folders of apache and nextcloud.  No luck for me.  Also tried modifyin httpd.conf without much luck.

This issue started with latest version.
Comment 1 Aurelien Oudelet 2020-12-18 20:44:37 CET
Hi, thanks reporting this.

Assigning to packager.

Assignee: bugsquad => joequant
CC: (none) => ouaurelien

Comment 2 Brian Rockwell 2020-12-18 20:46:37 CET
Created attachment 12111 [details]
journal

I noticed a lot of ethernet noise as well on this build.  This is with all patches.
Comment 3 Brian Rockwell 2020-12-23 21:53:15 CET
Any news on this one?  Can't move forward with 64-bit nextcloud testing
Comment 4 Joseph Wang 2020-12-28 11:07:19 CET
Can you run the following command?

(base) [joe@big-apple conf.d]$ rpm -qa | grep fpm
php-fpm-apache-8.0.0-2.mga8
php-fpm-8.0.0-2.mga8

You will get a forbidden error when the system doesn't 
have a php handler installed.

Also can you look at the error log?

Also can you run /usr/sbin/nextcloud-install.sh
Comment 5 Brian Rockwell 2020-12-28 17:16:07 CET
php-fpm-* were not installed.

Installed those and got a different error.

Ran /usr/sbin/nextcloud-install.sh required I install git

installed git

Ran the installation.

confirmed apache working 127.0.0.1

ran nextcloud - different errors but not working.

- - - 

where are the logs you want?
Comment 6 Brian Rockwell 2020-12-28 19:46:48 CET
in journal maybe this will be useful:

Dec 28 12:30:00 localhost kernel: net-fw DROP IN=enp0s20 OUT= MAC=00:18:f3:28:c3:9e:90:2b:34:26:58:d3:08:00 SRC=192.168.10.110 DST=192.168.10.111 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=38711 DF PROTO=TCP SPT=46260 DPT=80 WINDOW=64240 RES=0x00 SYN URGP=0 
Dec 28 12:30:01 localhost crond[8342]: pam_unix(crond:session): session opened for user apache by (uid=0)
Dec 28 12:30:01 localhost CROND[8347]: (apache) CMD (/usr/bin/php -f /usr/share/nextcloud/cron.php)
Dec 28 12:30:01 localhost CROND[8342]: (apache) CMDOUT (/usr/bin/sh: line 1: /usr/bin/php: No such file or directory)
Dec 28 12:30:01 localhost CROND[8342]: pam_unix(crond:session): session closed for user apache

When I look in cron.php

require_once __DIR__ . '/lib/versioncheck.php';

try {
        require_once __DIR__ . '/lib/base.php';

        if (\OCP\Util::needUpgrade()) {
                \OC::$server->getLogger()->debug('Update required, skipping cron', ['app' => 'cron']);
                exit;
        }
Comment 7 Morgan Leijström 2021-03-03 10:18:00 CET
Nextcloud in backport testing: Bug 28511

CC: (none) => fri


Note You need to log in before you can comment on or make changes to this bug.