koel-aws icon indicating copy to clipboard operation
koel-aws copied to clipboard

Sync S3

Open Carl-Gustaf opened this issue 8 years ago • 6 comments

I followed your steps 1 to 4 and it worked great. But still nothing happens after setting up my AWS credentials in .env. I have tested the credentials and they are active. So Should I re init Koel? Should I specify a media path when I use AWS? I feel the answer to this might be a good step 5.

Carl-Gustaf avatar Feb 01 '17 21:02 Carl-Gustaf

Check CloudWatch logs for your lamda. When you upload an mp3, are there logs? There should be around 3 for each request/action.

3lpsy avatar Feb 07 '17 03:02 3lpsy

This should be what you requested:

{ "errorMessage": "Failed to fetch object from S3: AccessDenied: Access Denied" }

Carl-Gustaf avatar Feb 27 '17 21:02 Carl-Gustaf

How did you solve this issue?

myultimabot avatar Jun 19 '17 12:06 myultimabot

Im having trouble with this as well, I have .env file named AWS_BUCKET for another aws feature but I dont see anywhere in the koel-aws where it should know what bucket to use... is this feature functioning for anyone else?

chawker21 avatar Feb 03 '18 13:02 chawker21

The bucket name, along with other song info/data, is posted to Koel everytime a new song is uploaded to your AWS bucket. For example, if you're storing a file bar.mp3 into a bucket foo then you'll expect a new song record in Koel's main database with path being s3://foo/bar.mp3. Upon reading this info, Koel will determine it to be an S3 resource and handle it accordingly.

phanan avatar Feb 04 '18 23:02 phanan

The bucket name, along with other song info/data, is posted to Koel everytime a new song is uploaded to your AWS bucket. For example, if you're storing a file bar.mp3 into a bucket foo then you'll expect a new song record in Koel's main database with path being s3://foo/bar.mp3. Upon reading this info, Koel will determine it to be an S3 resource and handle it accordingly.

What if the koel instance is currently not reachable or when a LOT of songs are uploaded at once and the lambda does timeout? Is there any way to sync s3 without re-upload?

bumbummen99 avatar Apr 04 '22 08:04 bumbummen99