Skip to content

armgit / ente

Public Imported from GitHub
0

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

move S3 FAQ from `/configuring-s3` to `/troubleshooting/uploads`

mngshm825dd7979579
diff --git a/docs/docs/self-hosting/guides/configuring-s3.md b/docs/docs/self-hosting/guides/configuring-s3.md
index 78f28d92ae..f4095db2eb 100644
--- a/docs/docs/self-hosting/guides/configuring-s3.md
+++ b/docs/docs/self-hosting/guides/configuring-s3.md
@@ -121,46 +121,4 @@ s3:
endpoint: http://<YOUR-WIFI-IP>:3200
region: eu-central-2
bucket: b2-eu-cen
-```
-
-## Frequently encountered errors
-
-Here are some errors our community members frequently encountered with the
-context and potential fixes.
-
-In most situations, the problem is because of a minor mistakes or
-misconfiguration. Please make sure to `reverse_proxy` museum to a domain and
-check your S3 credentials and whole configuration file for any minor
-misconfigurations.
-
-It is also suggested that the user setups bucket CORS on MinIO or any external
-S3 service provider they are connecting to. To setup bucket CORS, please [read
-this](/self-hosting/guides/external-s3#_5-fix-potential-cors-issue-with-your-bucket).
-
-### 403 Forbidden
-
-If museum (`2`) is able to make a network connection to your S3 bucket (`3`) but
-uploads are still failing, it could be a credentials or permissions issue.
-
-A telltale sign of this is that in the museum logs you can see `403 Forbidden`
-errors about it not able to find the size of a file even though the
-corresponding object exists in the S3 bucket.
-
-This could be because
-
-1. The bucket CORS rules do not allow museum to access these objects. For
- uploading files from the browser, you will need to set `allowedOrigins` to
- `*`, and allow the `X-Auth-Token`, `X-Client-Package` headers configuration
- too. [Here is an example of a working
- configuration](https://github.com/ente-io/ente/discussions/1764#discussioncomment-9478204).
-
-2. The credentials are not being picked up (you might be setting the correct
- credentials, but not in the place where museum reads them from).
-
-### Mismatch in file size
-
-The "Mismatch in file size" error mostly occurs in a situation where the client
-(`1`) is re-uploading a file which is already in the bucket with a different
-file size. The reason for re-upload could be anything including network issue,
-sudden killing of app before the upload is complete and etc.
-
+```
\ No newline at end of file
diff --git a/docs/docs/self-hosting/troubleshooting/uploads.md b/docs/docs/self-hosting/troubleshooting/uploads.md
index 435a5e93c6..9f486a5315 100644
--- a/docs/docs/self-hosting/troubleshooting/uploads.md
+++ b/docs/docs/self-hosting/troubleshooting/uploads.md
@@ -1,13 +1,56 @@
---
-title: Uploads failing
+title: Uploads
description: Fixing upload errors when trying to self host Ente
---
-# Uploads failing
+# FAQ's regarding S3
-If uploads to your minio are failing, you need to ensure that you've configured
-the S3 bucket `endpoint` in `credentials.yaml` (or `museum.yaml`) to, say,
-`yourserverip:3200`. This can be any host or port, it just need to be a value
-that is reachable from both your client and from museum.
+Here are some errors our community members frequently encountered with the
+context and potential fixes.
+\
-For more details, see [configuring-s3](/self-hosting/guides/configuring-s3).
+Fundamentally in most situations, the problem is because of minor mistakes or
+misconfiguration. Please make sure to reverse proxy museum and minIO API
+endpoint to a domain and check your S3 credentials and whole configuration
+file for any minor misconfigurations.
+
+It is also suggested that the user setups bucket CORS on MinIO or any external
+S3 service provider they are connecting to. To setup bucket CORS, please [read
+this](/self-hosting/guides/external-s3#_5-fix-potential-cors-issue-with-your-bucket).
+
+## What is S3 and how is it incorporated in Ente ?
+
+S3 is an cloud storage protocol made by Amazon (specifically AWS). S3 is designed to store
+files and data as objects inside Buckets and it is mostly used for Online
+Backups and storing different types of files.
+
+Ente's Docker setup is shipped with [MinIO](https://min.io/) as its default S3 provider.
+MinIO supports the Amazon S3 protocol and leverages your disk storage to
+dump all the uploaded files as encrypted object blobs.
+
+## 403 Forbidden
+
+If museum (`2`) is able to make a network connection to your S3 bucket (`3`) but
+uploads are still failing, it could be a credentials or permissions issue.
+
+A telltale sign of this is that in the museum logs you can see `403 Forbidden`
+errors about it not able to find the size of a file even though the
+corresponding object exists in the S3 bucket.
+
+This could be because
+
+1. The bucket CORS rules do not allow museum to access these objects. For
+ uploading files from the browser, you will need to set `allowedOrigins` to
+ `*`, and allow the `X-Auth-Token`, `X-Client-Package` headers configuration
+ too. [Here is an example of a working
+ configuration](https://github.com/ente-io/ente/discussions/1764#discussioncomment-9478204).
+
+2. The credentials are not being picked up (you might be setting the correct
+ credentials, but not in the place where museum reads them from).
+
+## Mismatch in file size
+
+The "Mismatch in file size" error mostly occurs in a situation where the client
+(`1`) is re-uploading a file which is already in the bucket with a different
+file size. The reason for re-upload could be anything including network issue,
+sudden killing of app before the upload is complete and etc.
\ No newline at end of file