Issues observed with Frappe S3 Attachment app on rushabh-test.frappe.cloud

Hello Team,

I have configured the Frappe S3 Attachment v0.0.1 (HEAD) app on the site rushabh-test.frappe.cloud with all the required details, but I am facing some issues:

  1. While uploading a file, it doesn’t get uploaded as public unless we explicitly select the private option. Even after setting default to all public, it doesn’t work.
  2. The app provides an option to migrate existing files to S3, but when I click it, I get a failed error.
  3. If the configuration was incorrect, then when adding a file through the UI with private selected, it should not go to S3 — but it does. How is this possible?
  4. Similarly, when a file is created from the backend, it is correctly stored in S3.

So, why are the existing files not migrating, and why is the public option not working? Could you please check and let us know what might be missing or wrong in the setup?

I have also attached the respective screenshots for your reference.





Your best bet would be to reach out to the owners of this app on GitHub. They may or may not be watching posts here. The repo hasn’t seen much activity over the past several years, so it may be significantly outdated.

We offer an updated alternative to Zerodha’s app: GitHub - agritheory/cloud_storage: S3 protocol storage for Frappe Applications - compatible with S3, Backblaze and DO Spaces

1 Like

It looks like ACLs is disabled in the Object Ownership. If yes then you can’t upload the public files. You’ll have to update the Object Ownership settings for this.
If you don’t want to update the Ownership settings, then you have to remove the following line from the code. you can take the fork and remove this line.

Hello Sandeep ,
Thanks for your reply .
But what about it is giving the error while migrating existing files .
Can you please help me with the same .

Can you check the browser console and network console for more details on the error. Also paste the errors here.

Browser console : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help XMLHttpRequest Standard jquery.js:9818:9
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to Moment.js | Guides for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: undefined, _f: undefined, _strict: undefined, _locale: [object Object]
ye/<@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:3
jn@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:24628
mr@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28419
Xi@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28284
Ki@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28002
Zn@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:28780
Fe@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:4:112815
ne@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:7:61602
convert_to_user_tz@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:790:442
Qo@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:784:4358
frappe.datetime.refresh_when/<@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:784:5787
each@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:1:3752
each@http://15.206.80.30:8080/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js:1:2223
frappe.datetime.refresh_when@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:784:5758
@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:784:5890
setInterval handler*@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:784:5862
@http://15.206.80.30:8080/assets/frappe/dist/js/desk.bundle.CAJIQXE2.js:1652:57031

This doesn’t show any error, can you click on the Migrate Existing Files and then check the network & browser console.

Hello Sandeep,

it shows only below output while checking after clicking on migrate existing files


HTTP Status is 417 can you click on it and check the response from the server.

Here is the output

Click on the response tab and share the screenshot.