Trying to install Seafile for a customer on their request. I have no previous knowledge of Seafile. I am trying to follow these instructions on a fresh Ubuntu 22.04 installation:
pro-edition deploy_seafile_pro_with_docker (I can’t post direct links to the page)
- " Downloading and Modifying docker-compose.yml"
It suggests I should download the right compose file based on which Seafile version I have. I pulled the “seafile-pro-mc:latest”, so is “Seafile PE 10.0” the right compose file?
I googled how to check your Seafile version, but the instructions referred to checking it from the running Seafile server web page, which I don’t have yet as I am still configuring it. I saw the latest server version is apparently 11, but the instructions don’t list a separate compose file for it.
- I’ve enabled https and Let’s Encrypt in the compose file:
ports:
- "80:80"
- "443:443" # If https is enabled, cancel the comment.
- SEAFILE_SERVER_LETSENCRYPT=true # Whether to use https or not
Then sudo docker compose restart. If I have set those and try to access the service with a web browser, it gives an “Unable to connect” error. In the hw firewall, 80/443 (http and https services) are both allowed.
If I comment out and set to “false” those https/letsencypt options, I can access the service with the web browser, getting the http connection to a login screen. So that is at least something.
- Reviewing the Deployment
# tree /opt/seafile-data -L 2
/opt/seafile-data
├── logs
│ └── var-log
├── nginx
│ └── conf
├── seafile
│ ├── ccnet
│ ├── conf
│ ├── logs
│ ├── pro-data
│ ├── seafile-data
│ └── seahub-data
└── ssl
├── ca
├── http.header
└── the.site.address
I seem to be missing at least “account.conf” and .crt and .key which are shown in the example. Why is that?
└── ssl
├── account.conf
├── ca
├── http.header
├── SEAFILE_SERVER_HOSTNAME
├── SEAFILE_SERVER_HOSTNAME.crt
└── SEAFILE_SERVER_HOSTNAME.key
- Activating the Seafile License
I received the seafile-license.txt file from the customer, and copied it under /opt/seafile-data/ as per the instructions. However if I run sudo docker compose restart, I see in /opt/seafile-data/seafile/logs/seafile.log the following:
“License file /opt/seafile/seafile-license.txt does not exist, allow at most 3 trial users”
That suggests that is should be under seafile/ and not seafile-data/, but moving the file there does not change it, the same error comes upon restart.
I gave the file chmod 644 and also ran dos2unix for it, just in case the file is deemed unreadable, but that didn’t help. How can I check whether the license file is valid?
Its format is as below, I’ve written “xxxx” over private information:
#Seafile server licence
Name = “xxxx #xxxx”
Licencetype = “User”
LicenceKEY = “xxxx”
ProductID = “Seafile server”
Expiration = “2024-09-13”
MaxUsers = “9”
Mode = “subscription”
Hash = “xxx”
Hash2 = “xxx”