-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get S3FileAdapter to work on latest version of parse-server #1483
Comments
As stated here: |
Another issue could be region; S3 Buckets in Frankfurt supports only v4 signatures; Error from S3Adapter: "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256." |
I have the same issue. I'm using Standard Region, which I believe it's us-east-1 by default and should work. Also I'm not migrating any files. It's a new setup. All my files are still written to mongo for some reason. Here's my config setup.
|
My previous configuration didn't work but the following worked though.
|
I'm doing a manual migration of images and other file data from parse to s3 storage. To do this I built a simple script that connects to the existing parse instance and fetches my records, then pushes the file data up to the s3 bucket. I then changed the configuration of my parse-server instance to utilize the S3Adapter instance. Currently when I query a document out of my self-hosted parse-server I would expect to see my amazon url in the file url. What I'm seeing instead is I've matched the configuration structure indicated by @5amfung and tried with implementations that specify directAccess: true, with and without a fileKey - with the same result. I also added some debug output to the getFileLocation in the s3 adapter code and I never see any output. It's as-if the parse-server isn't using the adapter when I'm fetching files. EDIT It looks like if I update the stored filename in the field after submission to S3 to something that's not |
@kkhattab I've written a script that can perform a one-time manual migration of files from parse.com to (in my case heroku + S3.) By specifying multiple DSN I've been able to confirm that this process functions but given the risk inherent in running it on live data I'm hesitant to publish it. |
@tingham hmmm, so would clients that don't upgrade able to see the new files, or is this simply migrated all existing files to s3? I too have a heroku + s3 for my parse server |
@kkhattab That is one of the additional issues we're dealing with. What becomes readily apparent is that storing an absolute path to the finalize file would have been preferable to using "File" references. It's definitely a mess. |
On the original issue, which was a configuration problem, has it been solved? |
Closing due to lack of activity, please reopen if the issue persist. Don't forget to include your current:
|
I currently have a parse-server deployment working however every time I upload a file it stores it with the GridStore file adapter instead of the S3 one. My app JS looks like this:
S1 and S2 are the key/secret of the bucket. The bucket is working and I have tested the security profile as well. I'm not getting any errors in the logs either.
After I deploy I do not get any errors. Everything seems to be running fine. However, when I upload a file it goes to my monglab DB instead of my S3 storage. Do I need to do something else to configure this? I'm using the docs as a reference to configure this:
https://github.com/ParsePlatform/parse-server/wiki/Configuring-File-Adapters
The text was updated successfully, but these errors were encountered: