Comments (12)
As per the docs
After updating writing.js files you'll be able to play recordings from the Same URL as you mentioned above.
You just have to update this file
$ cd /var/bigbluebutton/playback/presentation/2.0/lib
$ vi writing.js
Yes, getrecording API should also work because it's not changing URL of recordings, BTW i didn't checked this, most probably this should also work.
from bbb-aws-s3.
Thanks Rohit,
I am getting this error when run bbb-s3.py script
boto3.exceptions.S3UploadFailedError: Failed to upload /var/bigbluebutton/published/presentation/c701b96b2c7e4f4bb7118ac7bdd5168b3fb5f874-1591792680661/panzooms.xml to schoolx/c701b96b2c7e4f4bb7118ac7bdd5168b3fb5f874-1591792680661/panzooms.xml: An error occurred (IllegalLocationConstraintException) when calling the PutObject operation: The me-south-1 location constraint is incompatible for the region specific endpoint this request was sent to.
from bbb-aws-s3.
What is your aws region?
From your error log i can see its somethin like me-south-1
it should be like ap-south-1
Please verify your aws region
from bbb-aws-s3.
Its middle-east (bahrain region)
from bbb-aws-s3.
According to this issue aws/aws-cli#3567
Maybe, Your bucket name is not unique? can you try by changing your bucket name to a random name for testing purpose?
from bbb-aws-s3.
Hi Rohit,
I was able to transfer files to AWS and here is my understanding;
Script may not be working if s3 region is other than default: its may be we leave it empty(default) when run s3 config through the console. You may want to check that
- After I transferred all the files I ran bbb-recording --deleteAll command; and now I cant fetch any recordings information through API
- I am unable to run the recordings using the old link format e.g.
https://bbb.schoolx.pk/playback/presentation/2.0/playback.html?meetingId=f36e5cf9cbb68355faf1c9807e3ba3ba2d895128-1593680407169
does not load the recording
Looking forward to hearing from you
from bbb-aws-s3.
-
If you are using BBB-API then you should also store copy of your meeting id in a separate table (which is managed by you, not BBB), in this way even after running
--deleteAll
you'll be able to fetch Recordings from s3 because you already have meetingID, -
If you were able to transfer files to s3 then its possible you can fetch those meetings using https://bbb.schoolx.pk/playback/presentation/2.0/playback.html?meetingId=f36e5cf9cbb68355faf1c9807e3ba3ba2d895128-1593680407169
Verify this
- In your s3 bucket check if a folder exist with this name
f36e5cf9cbb68355faf1c9807e3ba3ba2d895128-1593680407169
- Now, try to visit https://bbb.schoolx.pk/playback/presentation/2.0/playback.html?meetingId=f36e5cf9cbb68355faf1c9807e3ba3ba2d895128-1593680407169 if it is still not playing your recordings, then there is problem with your installation steps, Verify your writing.js file and you fixed CORS problems for s3
from bbb-aws-s3.
Some users were facing problem with uploading into AWS (Only system files like .aws_config, .profile was getting uploaded and meetings was getting skipped)
Check latest docs i added fix for that.
You should change crontab file's command to execute bbb-s3.py
This is the new command for crontab
*/5 * * * * cd /var/bigbluebutton/published/presentation/ && python bbb-s3.py
For more check docs
Let me know if this works for you or not, i'll close this issue after 1 or 2 week of not getting any reply.
from bbb-aws-s3.
I am closing my this thread as it seems resolved for most of the users and we are not getting replies from your side
Feel free to reopen this thread if needed
from bbb-aws-s3.
@rohitcoder - It was working fine till now as we were keeping the files on s3 as well as local bbb storage. Now that I started deleting the local files thinking it is working fine, it is unable to play the recordings. Technically, I am still able to play the recordings if I enter the URL as <my/s3/path>/playback/presentation/2.0/playback.html. However, the api getRecordings.php responds with "no recordings found for this meeting". Is there anything I am missing or that's how it is if you delete the files from local storage?
Our page depends upon the response from the getRecordings api and hence want to see if there is any way to fix it.
Thanks in advance
from bbb-aws-s3.
Try this modified script, and don't delete anything manually after running this script.
BBB, requires metadata.xml and a folder with the only metadata.xml on a local server, so this script deletes all heavy things except metadata.xml and a folder that contains this file.
Download the above file, and rename it to bbb-s3.py and configure it, and then try on testing server.
from bbb-aws-s3.
@rohitcoder Thanks a lot!
Now the code works as expected, there is just one issue though. It uploads the file bbb-s3.py to s3 and deletes it from bbb server as well.
from bbb-aws-s3.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbb-aws-s3.