Giter VIP home page Giter VIP logo

seafile-server-installer-cn's Introduction

Seafile 安装脚本

一键安装脚本可以帮助您在 Ubuntu 18.04/20.04 系统上快速的安装好 Seafile 服务器,并配置好 MariaDB, Memcached, WebDAV, Ngnix 和开机自动启动脚本。

使用步骤

安装干净的 Ubuntu 18.04/20.04,并做好镜像 (如果安装失败需要还原到镜像)。

切换成 root 账号 (sudo -i)

获取安装脚本

适用于 Seafile 8.0.x 及以上版本

wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-8.0_ubuntu

运行安装脚本并指定要安装的版本 (例如 8.0.0)

bash seafile-8.0_ubuntu 8.0.0

脚本会让您选择要安装的版本, 按照提示进行选择即可:

  • 如果要安装专业版, 需要先将下载好的专业版的包 seafile-pro-server_8.0.0_x86-64.tar.gz 放到 /opt/ 目录下
  • 如果是安装开源版,安装脚本在执行过程中会检查 /opt目录下是否有指定版本号的安装包,如果存在则会安装此包,否则会从 Seafile 网站下载。所以,为了避免因下载失败而导致安装中断,您可以提前下载好安装包放到/opt/目录下。

该脚本运行完后会在命令行中打印配置信息和管理员账号密码,请仔细阅读。(您也可以查看安装日志/opt/seafile/aio_seafile-server.log),MySQL 的 root 用户密码存储在 /root/.my.cnf 中;MySQL 的 seafile 用户密码存储在 /opt/seafile.my.cnf 中。

通过 Web UI 对服务器进行配置

安装完成后,您需要通过 Web UI 服务器进行基本的配置,以便能正常的从网页端进行文件的上传和下载:

  1. 首先在浏览器中输入服务器的地址,并用管理员账号和初始密码登录

  2. 点击界面的右上角的头像按钮进入管理员界面 管理员入口

  3. 进入设置页面填写正确的服务器对外的 SERVICE_URL 和 FILE_SERVER_ROOT,比如

    SERVICE_URL: http://www.example.com
    FILE_SERVER_ROOT: http://www.example.com/seafhttp
    

现在您可以退出管理员界面,并进行基本的测试。关于服务器的配置选项介绍和日常运维可以参考 https://cloud.seafile.com/published/seafile-manual-cn/config/README.md

如果安装脚本出错

如果安装脚本出错,您需要重置虚拟机到干净的镜像。

启动关闭服务

自动安装脚本会在系统中安装开机自动启动脚本。您也可以使用该脚本来关闭/启动 Seafile 服务,命令如下:

service seafile-server stop
service seafile-server start

seafile-server-installer-cn's People

Contributors

ccic avatar freeplant avatar imwhatiam avatar killing avatar likesclever avatar lins05 avatar mainboarder avatar renfeipeng avatar skywalkerspace avatar xiez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seafile-server-installer-cn's Issues

9.0.10脚本安装同样失败

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-empkrwlh/Pillow/setup.py", line 1037, in
raise RequiredDependencyException(msg)
main.RequiredDependencyException:

The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html


Failed building wheel for Pillow
Running setup.py clean for Pillow
Running setup.py bdist_wheel for pylibmc ... done
Stored in directory: /root/.cache/pip/wheels/87/79/52/7deb632b0d50eb25245f34e6b28f13a93f10d563b3c608cbc4
Running setup.py bdist_wheel for psd-tools ... done
Stored in directory: /root/.cache/pip/wheels/51/47/93/d85a5fa5140870e2cb746017e5aae2d2f51049b4bd41990ba7
Running setup.py bdist_wheel for greenlet ... done
Stored in directory: /root/.cache/pip/wheels/4c/32/79/3a249abd11ccef75c1b19ed3f5d578ef0937c015afd5f02021
Running setup.py bdist_wheel for aggdraw ... done
Stored in directory: /root/.cache/pip/wheels/47/73/93/fad74e42be3942248af7c95550b8f5f1d0ee7c686071bdea2b
Running setup.py bdist_wheel for docopt ... done
Stored in directory: /root/.cache/pip/wheels/9b/04/dd/7daf4150b6d9b12949298737de9431a324d4b797ffd63f526e
Running setup.py bdist_wheel for django-ranged-response ... done
Stored in directory: /root/.cache/pip/wheels/16/43/50/05353cd3f784bf657c48c608aa2f2a65c37f1cb362c9249774
Successfully built future mysqlclient pylibmc psd-tools greenlet aggdraw docopt django-ranged-response
Failed to build Pillow
Installing collected packages: pytz, typing-extensions, asgiref, sqlparse, django, future, mysqlclient, pymysql, Pillow, pylibmc, captcha, markupsafe, greenlet, zipp, importlib-metadata, sqlalchemy, aggdraw, attrs, docopt, numpy, decorator, networkx, tifffile, scipy, imageio, pyparsing, cycler, kiwisolver, python-dateutil, matplotlib, PyWavelets, scikit-image, psd-tools, django-pylibmc, django-ranged-response, django-simple-captcha, pycryptodome, pycparser, cffi, lxml
Running setup.py install for Pillow ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-empkrwlh/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-gc3_us99-record/install-record.txt --single-version-externally-managed --compile:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/PIL
copying src/PIL/TiffImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PyAccess.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PalmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/MicImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/Hdf5StubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/_version.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/SunImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImagePalette.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PSDraw.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/_tkinter_finder.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/FontFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GdImageFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageFilter.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/_util.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/SpiderImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/McIdasImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ContainerIO.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageMode.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/BdfFontFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageDraw.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageTransform.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageCms.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PdfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/FliImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageFont.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageTk.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/IptcImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/XbmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PcdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageShow.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageMorph.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/_binary.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/SgiImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GifImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/BlpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageOps.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageColor.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageDraw2.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageChops.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/init.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/WmfImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageSequence.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/FitsStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GribStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/MspImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PngImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PaletteFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PcfFontFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/CurImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ExifTags.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GimpGradientFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PdfParser.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageQt.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/XpmImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GbrImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/DcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/FtexImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/XVThumbImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PsdImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/JpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/WebPImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/TarIO.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PcxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/FpxImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/DdsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/MpegImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/IcnsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/TgaImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageGrab.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageStat.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageWin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/features.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/WalImageFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/EpsImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/BufrStubImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImagePath.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/TiffTags.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageMath.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/JpegPresets.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/IcoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/Jpeg2KImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImtImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/PixarImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/main.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/GimpPaletteFile.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/Image.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/BmpImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/MpoImagePlugin.py -> build/lib.linux-x86_64-3.6/PIL
copying src/PIL/ImageEnhance.py -> build/lib.linux-x86_64-3.6/PIL
running egg_info
writing src/Pillow.egg-info/PKG-INFO
writing dependency_links to src/Pillow.egg-info/dependency_links.txt
writing top-level names to src/Pillow.egg-info/top_level.txt
reading manifest file 'src/Pillow.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.c'
warning: no files found matching '
.h'
warning: no files found matching '.sh'
warning: no previously-included files found matching '.appveyor.yml'
warning: no previously-included files found matching '.clang-format'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.readthedocs.yml'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files matching '.git
' found anywhere in distribution
warning: no previously-included files matching '.pyc' found anywhere in distribution
warning: no previously-included files matching '
.so' found anywhere in distribution
no previously-included directories found matching '.ci'
writing manifest file 'src/Pillow.egg-info/SOURCES.txt'
running build_ext

The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html

Traceback (most recent call last):
  File "/tmp/pip-build-empkrwlh/Pillow/setup.py", line 1024, in <module>
    zip_safe=not (debug_build() or PLATFORM_MINGW),
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib/python3.6/distutils/command/install.py", line 589, in run
    self.run_command('build')
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/pip-build-empkrwlh/Pillow/setup.py", line 790, in build_extensions
    raise RequiredDependencyException(f)
__main__.RequiredDependencyException: jpeg

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-empkrwlh/Pillow/setup.py", line 1037, in <module>
    raise RequiredDependencyException(msg)
__main__.RequiredDependencyException:

The headers or library files could not be found for jpeg,
a required dependency when compiling Pillow from source.

Please see the install instructions at:
   https://pillow.readthedocs.io/en/latest/installation.html



----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-empkrwlh/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-gc3_us99-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-empkrwlh/Pillow/
root@ubuntu18:/home/gwtub/seafile-server-installer-cn#

Job for seahub.service failed

centos 7 安装过程,在开机启动时出错。不打印 账号,需要手动 重设admin账号, 但是登录后无法上传下载。 不知道 是不是后续的脚本设置 没完成。。。。

Successfully created seafile admin

Seahub is started
Done.
Seahub is not running
Done.
Stopping seafile server ...
Done.

Job for seahub.service failed because the control process exited with error code. See "systemctl status seahub.service" and "journalctl -xe" for details.


[root@localhost ~]# systemctl status seahub.service
● seahub.service - Seafile Seahub
Loaded: loaded (/etc/systemd/system/seahub.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2019-02-19 22:25:55 CST; 14min ago
Process: 21044 ExecStart=/opt/seafile/seafile-server-latest/seahub.sh start 8000 (code=exited, status=1/FAILURE)
Main PID: 21044 (code=exited, status=1/FAILURE)
2月 19 22:25:55 localhost.localdomain systemd[1]: Starting Seafile Seahub...
2月 19 22:25:55 localhost.localdomain seahub.sh[21044]: LC_ALL is not set in ENV, set to en_US.UTF-8
2月 19 22:25:55 localhost.localdomain seahub.sh[21044]: Seahub is already running.
2月 19 22:25:55 localhost.localdomain systemd[1]: seahub.service: main process exited, code=exited, status=1/FAILURE
2月 19 22:25:55 localhost.localdomain systemd[1]: Failed to start Seafile Seahub.
2月 19 22:25:55 localhost.localdomain systemd[1]: Unit seahub.service entered failed state.
2月 19 22:25:55 localhost.localdomain systemd[1]: seahub.service failed.

[root@localhost ~]# journalctl -xe
2月 19 22:25:52 localhost.localdomain seafile-control[20959]: seafile-controller.c(1155): loading seafdav config from /opt/seafile/conf/seafdav.conf
2月 19 22:25:52 localhost.localdomain seafile.sh[20935]: [02/19/19 22:25:52] ../common/session.c(139): using config file /opt/seafile/conf/ccnet.conf
2月 19 22:25:52 localhost.localdomain seafile.sh[20935]: [02/19/19 22:25:52] ../common/license.c(406): Loading license file /opt/seafile/seafile-license.txt ..
2月 19 22:25:52 localhost.localdomain seafile.sh[20935]: [02/19/19 22:25:52] ../common/license.c(409): License file /opt/seafile/seafile-license.txt does not exist, allow at most 3 tr
2月 19 22:25:52 localhost.localdomain seafile.sh[20935]: License file /opt/seafile/seafile-license.txt does not exist, allow at most 3 trial users
2月 19 22:25:52 localhost.localdomain seafile.sh[20935]: Starting seafile server, please wait ...
2月 19 22:25:52 localhost.localdomain seafile-control[20965]: seafile-controller.c(1155): loading seafdav config from /opt/seafile/conf/seafdav.conf
2月 19 22:25:55 localhost.localdomain seafile.sh[20935]: Seafile server started
2月 19 22:25:55 localhost.localdomain seafile.sh[20935]: Done.
2月 19 22:25:55 localhost.localdomain systemd[1]: Started Seafile Server.
-- Subject: Unit seafile.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seafile.service has finished starting up.

-- The start-up result is done.
2月 19 22:25:55 localhost.localdomain polkitd[3993]: Unregistered Authentication Agent for unix-process:20928:244754 (system bus name :1.56, object path /org/freedesktop/PolicyKit1/Au
2月 19 22:25:55 localhost.localdomain polkitd[3993]: Registered Authentication Agent for unix-process:21038:245083 (system bus name :1.57 [/usr/bin/pkttyagent --notify-fd 5 --fallback
2月 19 22:25:55 localhost.localdomain systemd[1]: Starting Seafile Seahub...
-- Subject: Unit seahub.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seahub.service has begun starting up.
2月 19 22:25:55 localhost.localdomain seahub.sh[21044]: LC_ALL is not set in ENV, set to en_US.UTF-8
2月 19 22:25:55 localhost.localdomain seahub.sh[21044]: Seahub is already running.
2月 19 22:25:55 localhost.localdomain systemd[1]: seahub.service: main process exited, code=exited, status=1/FAILURE
2月 19 22:25:55 localhost.localdomain systemd[1]: Failed to start Seafile Seahub.
-- Subject: Unit seahub.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seahub.service has failed.

-- The result is failed.
2月 19 22:25:55 localhost.localdomain systemd[1]: Unit seahub.service entered failed state.
2月 19 22:25:55 localhost.localdomain systemd[1]: seahub.service failed.
2月 19 22:25:55 localhost.localdomain polkitd[3993]: Unregistered Authentication Agent for unix-process:21038:245083 (system bus name :1.57, object path /org/freedesktop/PolicyKit1/Au
2月 19 22:28:43 localhost.localdomain polkitd[3993]: Registered Authentication Agent for unix-process:21124:261821 (system bus name :1.60 [/usr/bin/pkttyagent --notify-fd 5 --fallback
2月 19 22:28:43 localhost.localdomain systemd[1]: Stopping firewalld - dynamic firewall daemon...
-- Subject: Unit firewalld.service has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit firewalld.service has begun shutting down.
2月 19 22:28:44 localhost.localdomain kernel: Ebtables v2.0 unregistered
2月 19 22:28:44 localhost.localdomain systemd[1]: Stopped firewalld - dynamic firewall daemon.
-- Subject: Unit firewalld.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit firewalld.service has finished shutting down.
2月 19 22:28:44 localhost.localdomain systemd[1]: Starting firewalld - dynamic firewall daemon...
-- Subject: Unit firewalld.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit firewalld.service has begun starting up.
2月 19 22:28:45 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
-- Subject: Unit firewalld.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit firewalld.service has finished starting up.

-- The start-up result is done.
2月 19 22:28:45 localhost.localdomain polkitd[3993]: Unregistered Authentication Agent for unix-process:21124:261821 (system bus name :1.60, object path /org/freedesktop/PolicyKit1/Au
2月 19 22:28:45 localhost.localdomain kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
2月 19 22:28:45 localhost.localdomain kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
2月 19 22:28:45 localhost.localdomain kernel: Ebtables v2.0 registered

7.1.x pro版 脚本出错

使用脚本安装7.1.3 pro时出错

seafile-server-7.1-ubuntu-amd64-http: line 338: cd: /opt/seafile/seafile-pro-server-7.1.3/: No such file or directory

脚本运行后/opt/seaflle目录下只有installedUser目录

root@*:~# tree /opt/ -L 2
/opt/
├── seafile
│   ├── installed
│   └── Users
├── seafile.my.cnf
└── seafile-pro-server_7.1.3_x86-64.tar.gz

安装过程中异常退出

异常退出,如下:

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/seafile.service to /etc/systemd/system/seafile.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/seahub.service to /etc/systemd/system/seahub.service.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 159 0 159 0 0 94 0 --:--:-- 0:00:01 --:--:-- 94
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

mysqladmin报错

mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'
执行到最后出现的

python-imaging的库已经改名为python-pil

在安装CE的过程中报错信息如下:

Which Seafile version would you like to install? 1

This script will install Seafile Community Edition for you.

Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://cn.archive.ubuntu.com/ubuntu bionic InRelease                     
Hit:3 http://ppa.launchpad.net/seafile/seafile-client/ubuntu bionic InRelease  
Get:4 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]   
Get:5 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 241 kB in 2s (126 kB/s)    
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'fonts-wqy-microhei' instead of 'ttf-wqy-microhei'
Note, selecting 'fonts-wqy-zenhei' instead of 'ttf-wqy-zenhei'
Package python-imaging is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-pil:i386 python-pil

E: Package 'python-imaging' has no installation candidate

我用VPS纯净14.04安装出现tar错误

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

显示不是一个gzip文件,请问这个如何解决?

另外提供一个其他问题的解决方案:安装jdk8的时候提示Unable to locate package,需要刷新源
刷新的方法如下:
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update

安装失败

安装失败
系统为: debian 9.7
错误信息:
正在设置 nginx-full (1.10.3-1+deb9u2) ...
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-02-16 10:24:20 CST; 5ms ago
Docs: man:nginx(8)
Process: 16167 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 16164 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
CPU: 25ms

2月 16 10:24:19 debian nginx[16167]: nginx: [emerg] listen() to [::]:80, b…use)
2月 16 10:24:19 debian nginx[16167]: nginx: [emerg] listen() to 0.0.0.0:80…use)
2月 16 10:24:19 debian nginx[16167]: nginx: [emerg] listen() to [::]:80, b…use)
2月 16 10:24:20 debian nginx[16167]: nginx: [emerg] listen() to 0.0.0.0:80…use)
2月 16 10:24:20 debian nginx[16167]: nginx: [emerg] listen() to [::]:80, b…use)
2月 16 10:24:20 debian nginx[16167]: nginx: [emerg] still could not bind()
2月 16 10:24:20 debian systemd[1]: nginx.service: Control process exited, …us=1
2月 16 10:24:20 debian systemd[1]: Failed to start A high performance web …ver.
2月 16 10:24:20 debian systemd[1]: nginx.service: Unit entered failed state.
2月 16 10:24:20 debian systemd[1]: nginx.service: Failed with result 'exit…de'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: 处理软件包 nginx-full (--configure)时出错:
子进程 已安装 post-installation 脚本 返回错误状态 1
dpkg: 依赖关系问题使得 nginx 的配置工作不能继续:
nginx 依赖于 nginx-full (<< 1.10.3-1+deb9u2.1~) | nginx-light (<< 1.10.3-1+deb9u2.1~) | nginx-extras (<< 1.10.3-1+deb9u2.1~);然而:
软件包 nginx-full 尚未配置。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。
nginx 依赖于 nginx-full (>= 1.10.3-1+deb9u2) | nginx-light (>= 1.10.3-1+deb9u2) | nginx-extras (>= 1.10.3-1+deb9u2);然而:
软件包 nginx-full 尚未配置。
未安装软件包 nginx-light。
未安装软件包 nginx-extras。

dpkg: 处理软件包 nginx (--configure)时出错:
依赖关系问题 - 仍未被配置
在处理时有错误发生:
nginx-full
nginx
E: Sub-process /usr/bin/dpkg returned an error code (1)

使用一键安装的脚本安装专业版不成功

多次尝试使用腾讯云纯净的ubuntu16.04,一键安装的脚本安装专业版(seafile-pro-server_6.1.8_x86-64.tar.gz),不成功。
安装过程输出如下信息:

Seahub_ is started

Done.

Seahub is not running
Done.

Stopping seafile server ...
Done.
Starting productive Seafile server
Job for seafile-server.service failed because the control process exited with error code. See "systemctl status seafile-server.service" and "journalctl -xe" for details.

执行systemctl status seafile-server.service后,输出为:
seafile-server.service - LSB: Seafile server
Loaded: loaded (/etc/init.d/seafile-server; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2018-05-21 23:23:20 CST; 26s ago
Docs: man:systemd-sysv-generator(8)
Process: 11353 ExecStart=/etc/init.d/seafile-server start (code=exited, status=1/FAILURE)
Tasks: 92
Memory: 326.4M
CPU: 8.331s
CGroup: /system.slice/seafile-server.service
├─11382 /opt/seafile/seafile-pro-server-6.1.8/seafile/bin/seafile-controller -c /opt/seafile/ccnet -d /opt/seafi
├─11385 ccnet-server -F /opt/seafile/conf -c /opt/seafile/ccnet -f /opt/seafile/logs/ccnet.log -d -L /opt/seafil
├─11387 /usr/bin/python2.7 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --loglevel debug -
├─11388 /usr/bin/python2.7 -m wsgidav.server.run_server runfcgi --log-file /opt/seafile/logs/seafdav.log --pid /
├─11389 /usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSI
└─11394 seaf-server -F /opt/seafile/conf -c /opt/seafile/ccnet -d /opt/seafile/seafile-data -l /opt/seafile/logs

May 21 23:23:11 VM-136-74-ubuntu systemd[1]: Starting LSB: Seafile server...
May 21 23:23:12 VM-136-74-ubuntu seafile-server[11353]: ** Message: seafile-controller.c(1088): loading seafdav config from
May 21 23:23:12 VM-136-74-ubuntu seafile-server[11353]: License file /opt/seafile/seafile-license.txt does not exist, allow
May 21 23:23:12 VM-136-74-ubuntu seafile-server[11353]: ** Message: seafile-controller.c(1088): loading seafdav config from
May 21 23:23:12 VM-136-74-ubuntu seafile-server[11353]: License file /opt/seafile/seafile-license.txt does not exist, allow
May 21 23:23:20 VM-136-74-ubuntu systemd[1]: seafile-server.service: Control process exited, code=exited status=1
May 21 23:23:20 VM-136-74-ubuntu systemd[1]: Failed to start LSB: Seafile server.
May 21 23:23:20 VM-136-74-ubuntu systemd[1]: seafile-server.service: Unit entered failed state.
May 21 23:23:20 VM-136-74-ubuntu systemd[1]: seafile-server.service: Failed with result 'exit-code'.

如何解决这个问题?

编译失败

Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1027-oracle aarch64)
脚本安装报错:
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
| ^~~~~~~
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> cffi

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

如果家庭局域网中 seafile 服务器的 ip 地址改变,而自己删除了用户主机上旧 ip 地址的 seafile 账户,之前的同步状态还能救回来吗 ?

尊敬的作者您好

今天发现我的家庭局域网中的 seafile 服务器的 ip 地址改变了,导致用户主机上的旧 ip 地址的 seafile 账户无法访问服务器,这很正常

于是我就删除了旧 ip 地址的 seafile 账户,就像下图这样

image

当时我不小心忽略了上图弹出的提示框所提示的信息,于是我真的删除了旧 ip 账户,并重新输入新的服务器 ip 连上了 seafile 服务器

可问题来了,seafile 的私人资料库显示未同步,就像我刚部署好 seafile 服务的时候那样,如下图

image

我这才意识到刚才删除账户的时候的弹出框提示,但显然好像已经晚了

我的本地和服务器中的文件目录树层次结构以及所有的文件都是完全一样的,但是二者之间的同步配置已经被删掉

是否有挽回措施让用户机和服务器之间的同步状态重新建立 ?因为资料库有上百 GB 的资料文件,如果完全重新同步,成本很高,而且以后 ip 还有可能改变,因为为了省电,每晚都会关掉网络电源,所以想询问一下

如果您能有任何有帮助的建议帮助我解决这个问题,我将不胜感激,谢谢您

噢对了,我搭建 seafile 的步骤先前记录了下来,如下链接所示,谢谢您

click-here

Job for seahub.service failed because the control process exited with error code. See "systemctl status seahub.service" and "journalctl -xe" for details. [root@host-192 opt]# ps -ax |^C

卡在这里Stopping seafile server ...
Done.
Job for seahub.service failed because the control process exited with error code. See "systemctl status seahub.service" and "journalctl -xe" for details.

-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seafile.service has finished starting up.

-- The start-up result is done.
4月 15 16:52:09 host-192.168.10.14 polkitd[13937]: Unregistered Authentication Agent for unix-process:37791:173687 (system bus name :1.95, object path /org/freedesktop/Pol
4月 15 16:52:09 host-192.168.10.14 polkitd[13937]: Registered Authentication Agent for unix-process:37872:174196 (system bus name :1.96 [/usr/bin/pkttyagent --notify-fd 5
4月 15 16:52:09 host-192.168.10.14 systemd[1]: Starting Seafile Seahub...
-- Subject: Unit seahub.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seahub.service has begun starting up.
4月 15 16:52:10 host-192.168.10.14 seahub.sh[37879]: LC_ALL is not set in ENV, set to en_US.UTF-8
4月 15 16:52:10 host-192.168.10.14 seahub.sh[37879]: Seahub is already running.
4月 15 16:52:10 host-192.168.10.14 systemd[1]: seahub.service: main process exited, code=exited, status=1/FAILURE
4月 15 16:52:10 host-192.168.10.14 polkitd[13937]: Unregistered Authentication Agent for unix-process:37872:174196 (system bus name :1.96, object path /org/freedesktop/Pol
4月 15 16:52:10 host-192.168.10.14 systemd[1]: Failed to start Seafile Seahub.
-- Subject: Unit seahub.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit seahub.service has failed.

-- The result is failed.
4月 15 16:52:10 host-192.168.10.14 systemd[1]: Unit seahub.service entered failed state.
4月 15 16:52:10 host-192.168.10.14 systemd[1]: seahub.service failed.
4月 15 16:52:49 host-192.168.10.14 chronyd[13967]: Selected source 182.92.12.11

centos8 全新系统安装,报错

这不是一个提问帖,是一个解答帖。
经过不断的尝试,一个全新的centos8 在执行一键脚本之前,还需要如下命令,否则会失败。

yum install -y gcc-c++ platform-python-devel.x86_64 tar

10.0.0版本在ubuntu18.04下脚本安装失败

详见log,提示找不到pillow=9.3.*,列表中最大只有8.4,请问这个问题怎么解决

Setting up libreoffice-common (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up ubuntu-mono (16.10+18.04.20181005-0ubuntu1) ...
Setting up default-jre (2:1.11-68ubuntu1~18.04.1) ...
Setting up libreoffice-core (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up python3-uno (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-base-drivers (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libxml-parser-perl (2.44-2build3) ...
Setting up libreoffice-draw (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-java-common (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libxml-twig-perl (1:3.50-1) ...
Setting up libreoffice-script-provider-python (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-impress (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-math (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-wiki-publisher (1.2.0+LibO6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-sdbc-postgresql (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-base-core (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-sdbc-hsqldb (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libnet-dbus-perl (1.1.0-4build2) ...
Setting up libreoffice-calc (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-script-provider-bsh (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-nlpsolver (0.9+LibO6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-ogltrans (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-script-provider-js (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-writer (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-base (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-librelogo (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-report-builder-bin (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-report-builder (1:6.0.7-0ubuntu0.18.04.12) ...
Processing triggers for ca-certificates (20211016ubuntu0.18.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...

done.
done.
Processing triggers for ufw (0.36-0ubuntu0.18.04.2) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.9) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Setting up glib-networking:amd64 (2.56.0-1ubuntu0.1) ...
Processing triggers for systemd (237-3ubuntu10.56) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for shared-mime-info (1.9-2) ...
Setting up libsoup2.4-1:amd64 (2.62.1-1ubuntu0.4) ...
Setting up libsoup-gnome2.4-1:amd64 (2.62.1-1ubuntu0.4) ...
Setting up librest-0.7-0:amd64 (0.8.0-2) ...
Setting up libgtk-3-0:amd64 (3.22.30-1ubuntu4) ...
Setting up libgtk-3-bin (3.22.30-1ubuntu4) ...
Setting up libreoffice-gtk3 (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-gnome (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up libreoffice-avmedia-backend-gstreamer (1:6.0.7-0ubuntu0.18.04.12) ...
Setting up gstreamer1.0-gtk3:amd64 (1.14.5-0ubuntu1~18.04.3) ...
Setting up libreoffice (1:6.0.7-0ubuntu0.18.04.12) ...
Processing triggers for dictionaries-common (1.27.2) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.6) ...
Collecting django==3.2.*
Downloading https://files.pythonhosted.org/packages/57/12/da22535f809b8c06c8d58eaf236ec8683ffd4e1dc4eced175b174e6446fa/Django-3.2.18-py3-none-any.whl (7.9MB)
100% |████████████████████████████████| 7.9MB 114kB/s
Collecting future==0.18.*
Downloading https://files.pythonhosted.org/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz (840kB)
100% |████████████████████████████████| 849kB 217kB/s
Collecting mysqlclient==2.1.*
Downloading https://files.pythonhosted.org/packages/50/5f/eac919b88b9df39bbe4a855f136d58f80d191cfea34a3dcf96bf5d8ace0a/mysqlclient-2.1.1.tar.gz (88kB)
100% |████████████████████████████████| 92kB 286kB/s
Collecting pymysql
Downloading https://files.pythonhosted.org/packages/4f/52/a115fe175028b058df353c5a3d5290b71514a83f67078a6482cff24d6137/PyMySQL-1.0.2-py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 395kB/s
Collecting pillow==9.3.*
Could not find a version that satisfies the requirement pillow==9.3.* (from versions: 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7.0, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8, 2.0.0, 2.1.0, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0, 2.6.1, 2.6.2, 2.7.0, 2.8.0, 2.8.1, 2.8.2, 2.9.0, 3.0.0, 3.1.0rc1, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.4.0, 3.4.1, 3.4.2, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.1, 6.0.0, 6.1.0, 6.2.0, 6.2.1, 6.2.2, 7.0.0, 7.1.0, 7.1.1, 7.1.2, 7.2.0, 8.0.0, 8.0.1, 8.1.0, 8.1.1, 8.1.2, 8.2.0, 8.3.0, 8.3.1, 8.3.2, 8.4.0)
No matching distribution found for pillow==9.3.*
root@ubuntu18:/home/gwtub/seafile-server-installer-cn#

关于数据目录的问题

能不能给一个设定数据存放目录的方法?能不能把Mysql的数据目录和seafile的数据目录放一起?

Centos脚本无防火墙状态部署出错

在腾讯云的纯净系统下,firewall默认不开启,此时脚本会失效,注释掉防火墙相关代码(Line152、154、155)后正常工作,麻烦修复下这个问题

安装后无法启动seahub

File "/opt/seafile/seafile-server-8.0.2/seahub/thirdpart/django/db/backends/mysql/base.py", line 15, in
import MySQLdb as Database
ModuleNotFoundError: No module named 'MySQLdb'

Page unavailable

我在纯净的centos7.2中执行安装脚本。安装过程顺利。
但是在浏览器中进行登录操作时,点击登录按钮,直接跳转到了:

Page unavailable
Sorry, but the requested page is unavailable due to a server hiccup.

Our engineers have been notified, so check back later.

备份脚本出错

概述

运行备份脚本时提示发生错误

环境

操作系统:CentOS 7.3.1611
Seafile版本:6.2.5 CE
Mysql版本:脚本默认

Issue类型

Bug

预期程序行为

备份完生成mysql-back-timestamp.tar.gz格式的文件

实际程序行为

mysqldump: Got error: 1049: "Unknown database 'ccnet-db'" when selecting the database
mysqldump: Got error: 1049: "Unknown database 'seafile-db'" when selecting the database
mysqldump: Got error: 1049: "Unknown database 'seahub-db'" when selecting the database

同时生成mysql-back-timestamp.tar.gz的文件

可行的改进方案

修改db-list.txt内容为
ccnet_db
seafile_db
seahub_db
问题解决

进一步思考

生成mysql数据库的命令在seafile-server-version文件夹中的setup-seafile-mysql.py文件内
经查看当中有ccnet-db,seafile-db,seahub-db的内容
但在mysql数据库执行查询时显示的是ccnet_db,seafile_db,seahub_db,是否需要更新配置文件

用此脚本安装到数据库时出错

在处理用于 systemd (229-4ubuntu4) 的触发器 ...
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
  • 系统是新部署的ubuntu 16.04

wsl1 Ubuntu1804 无法连接数据库

全新安装的子系统,在运行脚本的时候会遇到数据库root登录不进去的情况,需要手动进入mysql grant一下权限并重新设置密码,并把root下的文件数据库密码也改了,脚本才能连上数据库

安装失败

MariaDB installed before, skip this part
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 301 100 301 0 0 2347 0 --:--:-- --:--:-- --:--:-- 2351

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

无法访问 : raw.githubusercontent.com

ERR_CONNECTION_RESET

正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.228.133 正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|151.101.228.133|:443... 失败:拒绝连接。

gzip: stdin: not in gzip format

centos7 安装6.0.9 下使用脚本安装一直卡在这里,解压文件失败

已尝试:

  1. 修改脚本 tar -xvf 安装
  2. 升级tar到1.29版本安装
  3. 官网下载文件到/opt/目录方法皆无效

然而在自己的机子上测试解压是可以的,这是怎么回事??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.