Repository navigation
Closed
Labels
Description
I have an Apache webserver with php-fpm here.
mod_rewrite is working and I want to test the server2server sharing.
I just get following error in my logs after clicking the "Yes" button in the confirmation dialog of the server to server sharing:
{"reqId":"53b554abafbf1","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #1 [internal function]: Sabre\\DAV\\Auth\\Plugin->beforeMethod('POST', '')","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #2 \/home\/mjob\/Projekte\/owncloud\/master\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(433): call_user_func_array(Array, Array)","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #3 \/home\/mjob\/Projekte\/owncloud\/master\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(455): Sabre\\DAV\\Server->broadcastEvent('beforeMethod', Array)","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #4 \/home\/mjob\/Projekte\/owncloud\/master\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Server.php(214): Sabre\\DAV\\Server->invokeMethod('POST', '')","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #5 \/home\/mjob\/Projekte\/owncloud\/master\/apps\/files_sharing\/publicwebdav.php(75): Sabre\\DAV\\Server->exec()","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #6 \/home\/mjob\/Projekte\/owncloud\/master\/public.php(46): require_once('\/home\/mjob\/Proj...')","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
{"reqId":"53b554abafbf1","app":"webdav","message":"Exception: #7 {main}","level":0,"time":"2014-07-03T13:03:39+00:00","method":"POST","url":"\/master\/public.php\/webdav\/"}
Can anybody help to setup this in the correct way?
cc @PVince81 @icewind1991 @schiesbn
Activity
PVince81 commentedon Jul 3, 2014
The symptoms are similar like #9125 but as @MorrisJobke said, the mod_rewrite is already enabled.
I suspect that something in the setup with php-fpm is preventing the headers to be passed to SabreDAV on the target server.
Also CC @bantu
PVince81 commentedon Jul 3, 2014
Keywords are "php-fpm and authentication headers"
Are fast cgi and php-fpm the same thing ? Or working together ?
Have you tried enabling all modules required by line 4 in .htaccess ?
@josh4trunks @Kondou-ger did you try server to server sharing before ? (if I remember well nginx is using php-fpm as well)
[-]Server2server sharing doesn't work for me[/-][+]Server2server sharing doesn't work with php-fpm[/+]josh4trunks commentedon Jul 3, 2014
in most setups nginx uses php-fpm. I can test server2server tonight and see if it works for me.
MorrisJobke commentedon Jul 3, 2014
@josh4trunks That would be nice, because as now this is some kind of showstopper but on the documentation level. (how to setup it properly)
josh4trunks commentedon Jul 3, 2014
do I need two owncloud instances to test this?
MorrisJobke commentedon Jul 3, 2014
@josh4trunks I don't know. I just tested with one instance but this failed and therefore I thought it just works with two, but this has the same symptoms (see this ticket). I would guess it work also with just one instance.
PVince81 commentedon Jul 3, 2014
Just tried on nginx on Debian 7 (a VM I used in the past) and I am able to locally mount a share that is on that nginx server.
@MorrisJobke did you try enabling mod_fcgid, mod_setenvif, mod_headers as required here https://github.com/owncloud/core/blob/master/.htaccess#L3 ?
MorrisJobke commentedon Jul 4, 2014
@PVince81 I just enabled it. Same problem.
PVince81 commentedon Jul 4, 2014
Is that on Arch, right ?
Maybe there's some standard php-fpm setting that isn't set on that distro ?
MorrisJobke commentedon Jul 4, 2014
@PVince81 The settings are the same as from upstream
icewind1991 commentedon Jul 4, 2014
Note that I'm using nginx+php-fpm and all works fine for me
josh4trunks commentedon Jul 4, 2014
I just tested on my stack and server2server works as expected.
FreeBSD10 + nginx + php-fpm + MariaDB5.5 + ownCloud 7.0 RC 1 (daily) Build:2014-07-04T03:13:39+00:00
blizzz commentedon Aug 14, 2014
Looks like it is specific to Apache.
PVince81 commentedon Feb 4, 2015
@MorrisJobke did you find a solution to this eventually ?
MorrisJobke commentedon Feb 4, 2015
It works for me nowadays. I didn't remind if I changed something, but I don't think so. Because it also works fine on my minimal development installations.
LukasReschke commentedon Feb 4, 2015
Pretty sure that was #13398