core icon indicating copy to clipboard operation
core copied to clipboard

S3 mount kills admin page

Open MorrisJobke opened this issue 13 years ago • 10 comments

mtl-stalker> Guys just wanted to let you know that in OC 6 RC 1 after you add an S3 mount the admin page stops working.

This was reported yesterday in the IRC channel.

@PVince81 Can you test this and if it's not reproducible close this ticket? Thanks

MorrisJobke avatar Dec 01 '13 11:12 MorrisJobke

I have exactly the same problem on my host (ovh). It's a dedicated server.

I duplicate the install on my raspberry pi without problem.

Config : Nginx 1.4.4 dotdeb PHP 5.5.6-1~dotdeb.1 (cli) (built: Nov 19 2013 01:24:36)

server {
  listen 443 ssl spdy;
  listen [::]:443;

  ssl   on;
  ssl_certificate /var/www/XXXXXXXXXXXX/ssl/XXXXXXXXXXXX.crt;
  ssl_certificate_key /var/www/XXXXXXXXXXXX/ssl/XXXXXXXXXXXX.key;
  server_name XXXXXXXXXXXX;
  root /var/www/XXXXXXXXXXXX/web/;

  access_log  /var/log/ispconfig/httpd/XXXXXXXXXXXX/access.log vlogger;
  error_log   /var/log/ispconfig/httpd/XXXXXXXXXXXX/error.log;

  client_max_body_size 10G; # set max upload size
  fastcgi_buffers 64 4K;

  rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
  rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
  rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;

  index index.php;
  error_page 403 = /core/templates/403.php;
  error_page 404 = /core/templates/404.php;

  location ~ ^/(data|config|\.ht|db_structure\.xml|README) {
    deny all;
  }

  location / {
    # The following 2 rules are only needed with webfinger
    rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
    rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;

    rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
    rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;

    rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;

    rewrite ^apps/calendar/caldav.php remote.php/caldav/ last;
    rewrite ^apps/contacts/carddav.php remote.php/carddav/ last;
    rewrite ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 last;
    rewrite ^remote/(.*) remote.php last;

    try_files $uri $uri/ index.php;
  }

  location ~ ^(.+?\.php)(/.*)?$ {
    try_files $1 = 404;

    include fastcgi_params;
    fastcgi_param PATH_INFO $2;
    fastcgi_param HTTPS on;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass unix:/var/lib/php5-fpm/web46.sock;
    fastcgi_read_timeout 120s;
  }

  # Optional: set long EXPIRES header on static assets
  location ~* ^.+\.(jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
    expires 30d;
    # Optional: Don't log access to assets
    access_log off;
  }

}

Applications : Calendar Contacts Deleted files Encryption First Run Wizard Full Text Search Image Viewer Media ODF Viewer PDF Viewer Pictures Share Files Text Editor Updater User Account Migration Versions Video Viewer ownCloud Instance Migration App Framework Files Tree Files move FluXX Compensator (Y) Shorty3rd Shorty Tracking

Owncloud version : 5.0.13

Belphemur avatar Dec 01 '13 18:12 Belphemur

I am seeing the same error with OC 6 RC1. Also when configuring S3 as personal storage the "personal" page stops working after configuration. The S3 mounts appear functional, you just can't back to the admin/personal page. Removing the mount.json file restores access to the admin/personal page.

Also the optional S3 variables are not actually optional as currently coded. The "hostname", "region" & "port" options in owncloud/apps/external_files/lib/settings.php are not proceeded by a "&" and are thus not actually optional in the UI. I would submit a patch, but don't have git installed on this workstation.

dkoffler avatar Dec 02 '13 00:12 dkoffler

@ser72 @DeepDiver1975 Does this work for you?

karlitschek avatar Dec 02 '13 08:12 karlitschek

@karlitschek Yes I reproduced with the Admin page. And @dkoffler is correct about the "optional" parameters. I think I mentioned that in another github at one point. But don't entirely recall.

ser72 avatar Dec 02 '13 13:12 ser72

@karlitschek Tested OC6RC2

ser72 avatar Dec 02 '13 13:12 ser72

@PVince81 Can you help us with that?

karlitschek avatar Dec 02 '13 13:12 karlitschek

Ok I'll have a look

PVince81 avatar Dec 02 '13 15:12 PVince81

@dkoffler I've fixed the "optional parameters" issues here, please test: https://github.com/owncloud/core/pull/6153

PVince81 avatar Dec 02 '13 16:12 PVince81

Optional parameters are now working as expected.

On Mon, Dec 2, 2013 at 11:06 AM, Vincent Petry [email protected]:

@dkoffler https://github.com/dkoffler I've fixed the "optional parameters" issues here, please test: #6153https://github.com/owncloud/core/pull/6153

— Reply to this email directly or view it on GitHubhttps://github.com/owncloud/core/issues/6137#issuecomment-29630120 .

Daniel Koffler [email protected] Tel: 514-497-1411 http://twitter.com/dkoffler http://linkedin.com/in/danielkoffler

dkoffler avatar Dec 02 '13 19:12 dkoffler

Fixed on master and stable6 (OC 6)

PVince81 avatar Dec 03 '13 20:12 PVince81