Seahub: No Style since upgrade from 6.2.5


#1

Hi,

I’ve got a problem with seahub since upgrading from 6.2.5 to 6.3.x, there is no working CSS. I have tried to reinstall seafile from scratch but still same problem. But the weird thing is my browser can fetch all static files just fine:

https://imgur.com/Q8YwctN



events {
  worker_connections 12;
}

http{

	    upstream hub {
		server 127.0.0.1:8000;
		keepalive 2;
	    }

	    upstream files {
		server 127.0.0.1:8082;
		keepalive 4;
	    }

	    upstream webdav {
		server 127.0.0.1:8080;
		keepalive 2;
	    }

        disable_symlinks off;

	server {
	    listen 80;

	    error_log syslog:server=unix:/dev/log;
	    access_log syslog:server=unix:/dev/log;




	    proxy_set_header X-Forwarded-For $remote_addr;

	    location / {
		 proxy_pass         http://hub;
		 proxy_set_header   Host $host;
		 proxy_set_header   X-Real-IP $remote_addr;
		 proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
		 proxy_set_header   X-Forwarded-Host $server_name;
		 proxy_read_timeout  1200s;

		 # used for view/edit office file via Office Online Server
		 client_max_body_size 0;

	    }

	    location /seafhttp {
		rewrite ^/seafhttp(.*)$ $1 break;
		proxy_pass http://files;
		proxy_http_version 1.1;
		client_max_body_size 0;
		proxy_connect_timeout  3s;
		proxy_read_timeout  3600s;
		proxy_send_timeout  3600s;
		send_timeout  3600s;
	    }

	    location /seafdav {
		fastcgi_pass    webdav;
		fastcgi_keep_conn on;
		fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
		fastcgi_param   PATH_INFO           $fastcgi_script_name;

		fastcgi_param   SERVER_PROTOCOL     $server_protocol;
		fastcgi_param   QUERY_STRING        $query_string;
		fastcgi_param   REQUEST_METHOD      $request_method;
		fastcgi_param   CONTENT_TYPE        $content_type;
		fastcgi_param   CONTENT_LENGTH      $content_length;
		fastcgi_param   SERVER_ADDR         $server_addr;
		fastcgi_param   SERVER_PORT         $server_port;
		fastcgi_param   SERVER_NAME         $server_name;

		client_max_body_size 0;

	   }


	   location /media {
            #proxy_pass //https://seacloud.cc/; #This will fix the css issue but causes crfs errors
	    	root /opt/seafile/seafile-server-latest/seahub;
	   }
	}

}

Using somebody elses seafile installation to fetch css will work though, which makes me wonder if the latest version of seafile might ship with broken static files?


#2

You mean your custom CSS isn’t working anymore?


#3

The default css isn’t working anymore(at least for me) even on a fresh install


#4

Seems the style fodlers couldn’t be overwritten due to their filesystemd rights.
Execute chmod -R a+rwx seafile_folder/, reupdate, and then change the folder rights back.


#5

It’s fresh install running as root under docker file perssions are not the issue


#6

Is it maybe your Browser? Can you clean its Cache?
Or do you proxy your container?


#7

Seems like the way seahub serves static files changed since 6.2.5 if I remove the /media section form nginx.conf it’ll work just fine. But serves static through seahub which isn’t really desired.