Skip to content

Server2server sharing doesn't work with php-fpm #9416

Closed

Description

@MorrisJobke

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

  1. PVince81 commented on Jul 3, 2014

    @PVince81
    Contributor

    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

  2. PVince81 commented on Jul 3, 2014

    @PVince81
    Contributor

    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)

  3. changed the title [-]Server2server sharing doesn't work for me[/-] [+]Server2server sharing doesn't work with php-fpm[/+] on Jul 3, 2014
  4. josh4trunks commented on Jul 3, 2014

    @josh4trunks
    Contributor

    in most setups nginx uses php-fpm. I can test server2server tonight and see if it works for me.

  5. MorrisJobke commented on Jul 3, 2014

    @MorrisJobke
    ContributorAuthor

    @josh4trunks That would be nice, because as now this is some kind of showstopper but on the documentation level. (how to setup it properly)

  6. josh4trunks commented on Jul 3, 2014

    @josh4trunks
    Contributor

    do I need two owncloud instances to test this?

  7. MorrisJobke commented on Jul 3, 2014

    @MorrisJobke
    ContributorAuthor

    @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.

  8. PVince81 commented on Jul 3, 2014

    @PVince81
    Contributor

    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 ?

  9. MorrisJobke commented on Jul 4, 2014

    @MorrisJobke
    ContributorAuthor

    @PVince81 I just enabled it. Same problem.

  10. PVince81 commented on Jul 4, 2014

    @PVince81
    Contributor

    Is that on Arch, right ?
    Maybe there's some standard php-fpm setting that isn't set on that distro ?

  11. MorrisJobke commented on Jul 4, 2014

    @MorrisJobke
    ContributorAuthor

    @PVince81 The settings are the same as from upstream

  12. icewind1991 commented on Jul 4, 2014

    @icewind1991
    Contributor

    Note that I'm using nginx+php-fpm and all works fine for me

  13. josh4trunks commented on Jul 4, 2014

    @josh4trunks
    Contributor

    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

  14. blizzz commented on Aug 14, 2014

    @blizzz
    Contributor

    Looks like it is specific to Apache.

  15. PVince81 commented on Feb 4, 2015

    @PVince81
    Contributor

    @MorrisJobke did you find a solution to this eventually ?

  16. MorrisJobke commented on Feb 4, 2015

    @MorrisJobke
    ContributorAuthor

    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.

  17. LukasReschke commented on Feb 4, 2015

    @LukasReschke
    Contributor

    Pretty sure that was #13398

  18. locked as resolved and limited conversation to collaborators on Aug 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions