seafile 7.1.4 GitHub 脚本安装

上传文件提示网络错误

直接访问主机地址,报错

[root@localhost nginx]# curl http://127.0.0.1/seafhttp
<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx</center>
</body>
</html>
[root@localhost nginx]# 

错误日志

[root@localhost nginx]# cat seahub.error.log 
2020/05/27 12:09:58 [error] 3056#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.2.21.119, server: seafile.example.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "10.2.3.203"
2020/05/27 12:09:58 [error] 3056#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 10.2.21.119, server: seafile.example.com, request: "GET /favicon.ico HTTP/1.1", upstream: "http://127.0.0.1:8000/favicon.ico", host: "10.2.3.203", referrer: "http://10.2.3.203/"
[root@localhost nginx]# cat seafhttp.error.log
2020/05/27 15:51:00 [error] 3023#0: *423 the rewritten URI has a zero length, client: 10.2.21.119, server: seafile.example.com, request: "GET /seafhttp HTTP/1.1", host: "10.2.3.203"
2020/05/27 15:51:25 [error] 3041#0: *424 the rewritten URI has a zero length, client: 10.2.3.203, server: seafile.example.com, request: "GET /seafhttp HTTP/1.1", host: "10.2.3.203"
2020/05/27 15:51:34 [error] 3038#0: *425 the rewritten URI has a zero length, client: 127.0.0.1, server: seafile.example.com, request: "GET /seafhttp HTTP/1.1", host: "127.0.0.1"
2020/05/27 17:40:51 [error] 3044#0: *453 the rewritten URI has a zero length, client: 10.2.21.119, server: seafile.example.com, request: "GET /seafhttp HTTP/1.1", host: "10.2.3.203"
2020/05/27 18:02:35 [error] 3052#0: *465 the rewritten URI has a zero length, client: 127.0.0.1, server: seafile.example.com, request: "GET /seafhttp HTTP/1.1", host: "127.0.0.1"
[root@localhost nginx]# 

判断,应该是nginx问题,但是不是很熟悉linux。麻烦大佬指点下,感恩~

你去系统设置里的设置里改成自己的ip

感恩,上传问题解决了。下载还是会报500内部错误.

url:http://10.2.3.203/seafhttp
以及http://10.2.3.203//seafhttp

这两个url 都试过了…

web访问是8000 端口吗?

http://x.x.x.x/seafhttp 只有一条杠,我复制的时候写错了

web 访问的是80端口 一条杠也不行… seahttp 报错500 firewalld 以及sealinux 已经放行了相应接口。

访问的80端口上面的就不要加端口了,直接写ip就行, 下面的http://x.x.x.x/seafhttp 按照这个格式来

修改过了 我这边拿一下nginx 的错误日志

[root@localhost nginx]# ls -alh
total 84K
drwxrwx---.  2 nginx root 4.0K May 28 03:19 .
drwxr-xr-x. 10 root  root 4.0K May 28 03:19 ..
-rw-rw-r--   1 nginx root  12K May 28 14:25 access.log
-rw-r--r--   1 root  root 2.0K May 28 00:49 access.log-20200528.gz
-rw-r--r--.  1 nginx root  856 May 28 14:24 error.log
-rw-r--r--.  1 nginx root    0 May 27 12:01 seafdav.access.log
-rw-r--r--.  1 nginx root    0 May 27 12:01 seafdav.error.log
-rw-rw-r--   1 nginx root 3.6K May 28 14:24 seafhttp.access.log
-rw-r--r--   1 root  root  361 May 28 00:46 seafhttp.access.log-20200528.gz
-rw-rw-r--   1 nginx root    0 May 28 03:19 seafhttp.error.log
-rw-r--r--   1 root  root  336 May 28 00:46 seafhttp.error.log-20200528.gz
-rw-rw-r--   1 nginx root  26K May 28 14:25 seahub.access.log
-rw-r--r--   1 root  root 6.0K May 28 00:49 seahub.access.log-20200528.gz
-rw-rw-r--   1 nginx root    0 May 28 03:19 seahub.error.log
-rw-r--r--   1 root  root  243 May 27 12:09 seahub.error.log-20200528.gz
[root@localhost nginx]# 
[root@localhost nginx]# cat error.log
2020/05/28 10:49:40 [error] 1833#0: *158 open() "/opt/seafile/seafile-server-latest/seahub/media/css/seafile-ui.map" failed (2: No such file or directory), client: 10.2.21.119, server: seafile.example.com, request: "GET /media/css/seafile-ui.map HTTP/1.1", host: "10.2.3.203"
2020/05/28 14:23:58 [error] 1825#0: *205 open() "/opt/seafile/seafile-server-latest/seahub/media/assets/css/bootstrap.min.css.map" failed (2: No such file or directory), client: 10.2.21.119, server: seafile.example.com, request: "GET /media/assets/css/bootstrap.min.css.map HTTP/1.1", host: "10.2.3.203"
2020/05/28 14:24:02 [error] 1825#0: *205 open() "/opt/seafile/seafile-server-latest/seahub/media/css/seafile-ui.map" failed (2: No such file or directory), client: 10.2.21.119, server: seafile.example.com, request: "GET /media/css/seafile-ui.map HTTP/1.1", host: "10.2.3.203"
[root@localhost nginx]# 

今天seafhttp 好像没有报错。error 没有信息。

seafile.log 里面的报错。好像这个是根本原因。

你去seahub 里面看日志

seahub 这里面的日志时间好像是安装的时候报错的。

Traceback (most recent call last):
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py", line 249, in _legacy_get_response
    response = self._get_response(request)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/rest_framework/views.py", line 505, in dispatch
    response = self.handle_exception(exc)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/rest_framework/views.py", line 465, in handle_exception
    self.raise_uncaught_exception(exc)
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/rest_framework/views.py", line 476, in raise_uncaught_exception
    raise exc
  File "/opt/seafile/seafile-server-7.1.4/seahub/thirdpart/rest_framework/views.py", line 502, in dispatch
    response = handler(request, *args, **kwargs)
  File "/opt/seafile/seafile-server-7.1.4/seahub/seahub/api2/endpoints/repos.py", line 139, in get
    email, -1, -1)
  File "/opt/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages/seaserv/api.py", line 453, in get_share_in_repo_list
    start, limit)
  File "/opt/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages/pysearpc/client.py", line 126, in newfunc
    ret_str = self.call_remote_func_sync(fcall_str)
  File "/opt/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 101, in call_remote_func_sync
    ret_str = transport.send(self.service_name, fcall_str)
  File "/opt/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages/pysearpc/named_pipe.py", line 62, in send
    sendall(self.pipe, header)
  File "/opt/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages/pysearpc/utils.py", line 32, in sendall
    raise NetworkError('Failed to write to socket: %s' % e)
pysearpc.errors.NetworkError: Failed to write to socket: [Errno 32] Broken pipe
2020-05-27 15:23:36,875 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:23:37,207 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:23:45,936 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:23:59,701 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:24:02,728 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:24:04,418 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:24:14,652 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
2020-05-27 15:24:17,660 [WARNING] django.request:152 get_response Not Found: /api/v2.1/repos/d9c0c4a1-7bd0-40bf-91bf-283956da92ad/
[root@localhost logs]# 

安装时报错? 安装有什么报错

安装过程中 是直接到最后一步的。但是我看这个日志的时间 我昨天这个时间刚好安装完成。 是不是因为这个错误 导致上传失败。

如果没有数据的话,还是建议重新安装一下

老兄,你看下这个。

调试模式的url 不对。

你重启服务,去系统设置试试