Skip to content

πŸŽ₯ Make videos programmatically with React

handle "the bucket does not allow ACLs"

Jonny Burgerfcc7e71bbca3
diff --git a/packages/cli/src/handle-common-errors.ts b/packages/cli/src/handle-common-errors.ts
index 522b20598d..bceee02865 100644
--- a/packages/cli/src/handle-common-errors.ts
+++ b/packages/cli/src/handle-common-errors.ts
@@ -28,4 +28,11 @@ export const handleCommonError = async (err: Error) => {
'πŸ’‘ Get help for this issue at https://remotion.dev/docs/enametoolong'
);
}
+
+ if (err.message.includes('The bucket does not allow ACLs')) {
+ Log.info();
+ Log.info(
+ 'πŸ’‘ Get help for this issue at https://remotion.dev/docs/lambda/troubleshooting/bucket-disallows-acl'
+ );
+ }
};
diff --git a/packages/docs/docs/lambda/troubleshooting/bucket-disallows-acl.md b/packages/docs/docs/lambda/troubleshooting/bucket-disallows-acl.md
new file mode 100644
index 0000000000..8835ecdb6e
--- /dev/null
+++ b/packages/docs/docs/lambda/troubleshooting/bucket-disallows-acl.md
@@ -0,0 +1,16 @@
+---
+id: bucket-disallows-acl
+title: The bucket does not allow ACLs
+---
+
+If you encounter the following error while rendering a video on Remotion Lambda:
+
+```
+AccessControlListNotSupported: The bucket does not allow ACLs
+```
+
+You are trying to render into a bucket that has the ACL feature disabled and handles its permissions in a different way, for example through bucket policies.
+
+## Solution
+
+Pass `no-acl` to the `privacy` option of [`renderMediaOnLambda()`](/docs/lambda/rendermediaonlambda#privacy), [`renderStillOnLambda()`](/docs/lambda/renderstillonlambda#privacy) or [`npx remotion lambda render`](/docs/lambda/cli/render#--privacy).
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 5fc70df28f..7c56652853 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -65,6 +65,7 @@ module.exports = {
"lambda/troubleshooting/permissions",
"lambda/troubleshooting/rate-limit",
"lambda/troubleshooting/unrecognizedclientexception",
+ "lambda/troubleshooting/bucket-disallows-acl",
],
},
"lambda/changelog",