Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Improve UX

Manav Rathif5f323cf3e90
diff --git a/server/docs/quickstart.md b/server/docs/quickstart.md
index 683eb7dce8..a24720b7c1 100644
--- a/server/docs/quickstart.md
+++ b/server/docs/quickstart.md
@@ -71,7 +71,7 @@ Subsequently, whenever you want to start the cluster, you can go back to the
same directory and run `docker compose up` again.
```sh
-cd /path/to/my-ente # Or whichever directory you created
+cd /path/to/my-ente # Where you ran the quickstart script originally
docker compose up
```
@@ -96,16 +96,23 @@ on your system. All persistent data is saved in volumes managed by Docker.
> [!CAUTION]
>
> If you delete the `my-ente` folder, the volumes will still persist. So if you
-> want to recreate everything from scratch, you can clear these Docker volumes
-> (`my-ente_postgres-data` and `my-ente_minio-data`) by
+> want to recreate everything from scratch, you can clear these volumes by
>
> ```sh
> cd /path/to/my-ente
> docker compose down --volumes
> ```
>
-> Beware that this will permanently remove these volumes, including any photos
-> you added to your self hosted instance.
+> **Be careful** when doing so, making sure you run the command in the correct
+> directory as the volumes will be permanently removed, including any photos you
+> added to your self hosted instance.
+
+> [!TIP]
+>
+> If you're getting errors like `pq: password authentication failed` when
+> starting museum, one possibility is that you're recreating the `my-ente`
+> folder but still have leftover volumes (`my-ente_postgres-data` and
+> `my-ente_minio-data` from a previous attempt).
### Caveat
diff --git a/server/quickstart.sh b/server/quickstart.sh
index 16624b2337..82043e55b6 100755
--- a/server/quickstart.sh
+++ b/server/quickstart.sh
@@ -32,8 +32,8 @@ fi
if test -d my-ente
then
- printf "ERROR: A directory named 'my-ente' already exists.\n"
- printf " Aborting script to avoid accidentally overwriting user data.\n"
+ printf "ERROR: The 'my-ente' directory already exists. To start your instance again:\n\n"
+ printf " \033[1mcd my-ente && docker compose up\033[0m\n\n"
exit 1
fi
@@ -60,7 +60,8 @@ museum_hash=`gen_hash`
museum_jwt_secret=`gen_jwt_secret`
mkdir my-ente && cd my-ente
-printf " \033[1;32mE\033[0m Created directory my-ente\n"
+printf " \033[1;32mE\033[0m Created directory \033[1mmy-ente\033[0m\n"
+sleep 1
cat <<EOF >compose.yaml
services:
@@ -76,7 +77,7 @@ services:
- ./data:/data:ro
# Resolve "localhost:3200" in the museum container to the minio container.
- socat-museum-3200:
+ socat:
image: alpine/socat
network_mode: service:museum
depends_on: [museum]
@@ -141,7 +142,8 @@ volumes:
minio-data:
EOF
-printf " \033[1;32mN\033[0m Created compose.yaml\n"
+printf " \033[1;32mN\033[0m Created \033[1mcompose.yaml\033[0m\n"
+sleep 1
cat <<EOF >museum.yaml
key:
@@ -181,7 +183,8 @@ s3:
bucket: scw-eu-fr-v3
EOF
-printf " \033[1;32mT\033[0m Created museum.yaml\n"
+printf " \033[1;32mT\033[0m Created \033[1mmuseum.yaml\033[0m\n"
+sleep 1
printf " \033[1;32mE\033[0m Starting docker compose\n"
printf "\nAfter the cluster has started, open web app at \033[1mhttp://localhost:3000\033[0m\n"