Hi there! I’m starting a fresh SeaFile install after deciding to move from Nextcloud for my photo/video backup and sync needs. I’m almost done with my setup and just need to start it, but apparently I need a .env file under /opt/seafile/conf/
for SeaFile 12.x, even though it wasn’t specified in the manual. I’m guessing it’s a bit outdated as it only specifies up to SeaFIle 11.x. I created the .env file following the template in the 12.x update logs yet it still gives the following error:
Cannot find JWT_PRIVATE_KEY value from environment, try to read .env file. Error: .env file not found. Please follow the upgrade manual to set the .env file.
I am running SeaFile 12.0.14, and the .env file is under /opt/seafile/conf/
as I’ve stated before. Thanks for the help in advance!
The .env is new. It is the result of some choices made by the developers to focus on releasing primarily (and probably soon, exclusively) as a docker image.
This sounds like you were following the older instructions for seafile version 11. The version 12 instructions are here:
https://manual.seafile.com/12.0/setup_binary/installation_ce/#create-the-env-file-in-conf-directory
Ah thanks! I ended up just using a docker installation for Seafile 11. I was unaware the version 12 installation instructions existed.
Would you by chance know how to backup a docker container of Seafile? In case something goes awry.
You aren’t supposed to backup the containers themselves. The your data gets saved in directories separate from the container. In theory you should be able to delete the container and create a new one and have everything just work, as long as you use the same config and and that config points to your data.
So the minimal files to back up are the docker configs (the .env, the seafile-server.yml, etc.) and the data directories identified in those configs (SEAFILE_VOLUME, SEAFILE_MYSQL_VOLUME, etc.).