From 304c803310139789ca2ea52dfe491bac5ee85eec Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Tue, 12 Nov 2024 13:47:35 +0800 Subject: [PATCH 1/4] update 12.0 upgrade notes --- manual/upgrade/upgrade_notes_for_12.0.x.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/manual/upgrade/upgrade_notes_for_12.0.x.md b/manual/upgrade/upgrade_notes_for_12.0.x.md index 10399d9f..45119457 100644 --- a/manual/upgrade/upgrade_notes_for_12.0.x.md +++ b/manual/upgrade/upgrade_notes_for_12.0.x.md @@ -55,7 +55,14 @@ Note, you should install Python libraries system wide using root user or sudo mo For Ubuntu 22.04/24.04 ```sh +<<<<<<< HEAD sudo pip3 install future==1.0.* mysqlclient==2.2.* pillow==10.4.* sqlalchemy==2.0.* gevent==24.2.* captcha==0.6.* django_simple_captcha==0.6.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* cffi==1.17.0 python-ldap==3.4.* PyMuPDF==1.24.* +======= +sudo pip3 install future==1.0.* mysqlclient==2.2.* pillow==10.4.* sqlalchemy==2.0.* \ +gevent==24.2.* captcha==0.6.* django_simple_captcha==0.6.* djangosaml2==1.9.* \ +pysaml2==7.3.* pycryptodome==3.20.* cffi==1.17.0 python-ldap==3.4.* PyMuPDF==1.24.* \ +numpy==1.26.* +>>>>>>> d3cbab19 (update 12.0 upgrade notes) ``` ## Upgrade to 12.0 (for binary installation) @@ -92,6 +99,18 @@ Since seafile 12.0, we use docker to deploy the notification server. Please foll !!! note Notification server and Seafile binary package Notification server is designed to be work with Docker based deployment. To make it work with **Seafile binary package** on the same server is, you will need to add Nginx rules for notification server properly. + + In addition, you need to specify the relevant information of your MySQL service and log strategy for notification service in the above `.env`: + + ```sh + SEAFILE_MYSQL_DB_HOST=db # your MySQL host + SEAFILE_MYSQL_DB_PORT=3306 + SEAFILE_MYSQL_DB_USER=seafile + SEAFILE_MYSQL_DB_PASSWORD= + SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db + SEAFILE_LOG_TO_STDOUT=false + NOTIFICATION_SERVER_LOG_LEVEL=info + ``` ## Upgrade SeaDoc from 0.8 to 1.0 From 6ce551c58f4ab9b7ac0ba335f9b9314e8307d4ca Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Tue, 12 Nov 2024 13:51:25 +0800 Subject: [PATCH 2/4] update 12.0 upgrade notes --- manual/upgrade/upgrade_notes_for_12.0.x.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/manual/upgrade/upgrade_notes_for_12.0.x.md b/manual/upgrade/upgrade_notes_for_12.0.x.md index 45119457..5f1bfede 100644 --- a/manual/upgrade/upgrade_notes_for_12.0.x.md +++ b/manual/upgrade/upgrade_notes_for_12.0.x.md @@ -55,14 +55,9 @@ Note, you should install Python libraries system wide using root user or sudo mo For Ubuntu 22.04/24.04 ```sh -<<<<<<< HEAD -sudo pip3 install future==1.0.* mysqlclient==2.2.* pillow==10.4.* sqlalchemy==2.0.* gevent==24.2.* captcha==0.6.* django_simple_captcha==0.6.* djangosaml2==1.9.* pysaml2==7.3.* pycryptodome==3.20.* cffi==1.17.0 python-ldap==3.4.* PyMuPDF==1.24.* -======= sudo pip3 install future==1.0.* mysqlclient==2.2.* pillow==10.4.* sqlalchemy==2.0.* \ gevent==24.2.* captcha==0.6.* django_simple_captcha==0.6.* djangosaml2==1.9.* \ -pysaml2==7.3.* pycryptodome==3.20.* cffi==1.17.0 python-ldap==3.4.* PyMuPDF==1.24.* \ -numpy==1.26.* ->>>>>>> d3cbab19 (update 12.0 upgrade notes) +pysaml2==7.3.* pycryptodome==3.20.* cffi==1.17.0 python-ldap==3.4.* PyMuPDF==1.24.* ``` ## Upgrade to 12.0 (for binary installation) From ab7d007bd7a389d02555ddc9f1531ea1ffb206ad Mon Sep 17 00:00:00 2001 From: Junxiang Huang Date: Tue, 12 Nov 2024 14:06:33 +0800 Subject: [PATCH 3/4] update --- manual/upgrade/upgrade_notes_for_12.0.x.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/manual/upgrade/upgrade_notes_for_12.0.x.md b/manual/upgrade/upgrade_notes_for_12.0.x.md index 5f1bfede..f19c6d7c 100644 --- a/manual/upgrade/upgrade_notes_for_12.0.x.md +++ b/manual/upgrade/upgrade_notes_for_12.0.x.md @@ -80,7 +80,14 @@ conf/.env JWT_PRIVATE_KEY=xxx SEAFILE_SERVER_PROTOCOL=https SEAFILE_SERVER_HOSTNAME=seafile.example.com +SEAFILE_MYSQL_DB_HOST=db # your MySQL host +SEAFILE_MYSQL_DB_PORT=3306 +SEAFILE_MYSQL_DB_USER=seafile +SEAFILE_MYSQL_DB_PASSWORD= SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db +SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db +SEAFILE_LOG_TO_STDOUT=false +NOTIFICATION_SERVER_LOG_LEVEL=info ``` Note: JWT_PRIVATE_KEY, A random string with a length of no less than 32 characters, generate example: `pwgen -s 40 1` @@ -94,18 +101,6 @@ Since seafile 12.0, we use docker to deploy the notification server. Please foll !!! note Notification server and Seafile binary package Notification server is designed to be work with Docker based deployment. To make it work with **Seafile binary package** on the same server is, you will need to add Nginx rules for notification server properly. - - In addition, you need to specify the relevant information of your MySQL service and log strategy for notification service in the above `.env`: - - ```sh - SEAFILE_MYSQL_DB_HOST=db # your MySQL host - SEAFILE_MYSQL_DB_PORT=3306 - SEAFILE_MYSQL_DB_USER=seafile - SEAFILE_MYSQL_DB_PASSWORD= - SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db - SEAFILE_LOG_TO_STDOUT=false - NOTIFICATION_SERVER_LOG_LEVEL=info - ``` ## Upgrade SeaDoc from 0.8 to 1.0 From 7d4fa46e1ced99ff221c901e54082f997382e7fa Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Tue, 12 Nov 2024 14:08:17 +0800 Subject: [PATCH 4/4] Update upgrade_notes_for_12.0.x.md --- manual/upgrade/upgrade_notes_for_12.0.x.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manual/upgrade/upgrade_notes_for_12.0.x.md b/manual/upgrade/upgrade_notes_for_12.0.x.md index f19c6d7c..93c8d38b 100644 --- a/manual/upgrade/upgrade_notes_for_12.0.x.md +++ b/manual/upgrade/upgrade_notes_for_12.0.x.md @@ -86,8 +86,7 @@ SEAFILE_MYSQL_DB_USER=seafile SEAFILE_MYSQL_DB_PASSWORD= SEAFILE_MYSQL_DB_CCNET_DB_NAME=ccnet_db SEAFILE_MYSQL_DB_SEAFILE_DB_NAME=seafile_db -SEAFILE_LOG_TO_STDOUT=false -NOTIFICATION_SERVER_LOG_LEVEL=info +SEAFILE_MYSQL_DB_SEAHUB_DB_NAME=seahub_db ``` Note: JWT_PRIVATE_KEY, A random string with a length of no less than 32 characters, generate example: `pwgen -s 40 1`