Not able to execute post_publis ruby script

94 views
Skip to first unread message

Developer

unread,
Feb 2, 2016, 8:04:13 AM2/2/16
to BigBlueButton-dev
Hello All,

I have added script under folder /usr/local/bigbluebutton/core/scripts/post_publish for convert recorded audio and video to another format.
This script is working fine in local intranet server and staging server. But when I have upload that script to live server, at that time it's not executing.

I have setup development version in local intranet server and production version on staging, live server.(I don't think it may cause any issue).

I have debugged bbb-rap-worker.log, where I am getting INFO -- : Executing: ruby post_publish/convert_record.rb -m {internal_meeting_id} , but I am not able to get info for executing this script on live server.

Can anyone help me to sort out this issue?

Thanks in advance.

Calvin Walton

unread,
Feb 4, 2016, 4:14:13 PM2/4/16
to bigblueb...@googlegroups.com
On Tue, 2016-02-02 at 05:04 -0800, Developer wrote:
> Hello All,
>
> I have added script under folder 
> */usr/local/bigbluebutton/core/scripts/post_publish* for convert
> recorded 
> audio and video to another format. 
> This script is working fine in local intranet server and staging
> server. 
> But when I have upload that script to live server, at that time it's
> not 
> executing.
>
> I have setup development version in local intranet server and
> production 
> version on staging, live server.(I don't think it may cause any
> issue).
>
> I have debugged *bbb-rap-worker.log*, where I am getting *INFO -- : 
> Executing: ruby post_publish/convert_record.rb -m
> {internal_meeting_id}* , 
> but I am not able to get info for executing this script on live
> server.
>
> Can anyone help me to sort out this issue?
>
> Thanks in advance.
>

Just to be clear, the bbb-rap-worker.log line "Executing: ruby
post_publish/..." does *NOT* appear on your production server, but it
*DOES* on your development and staging servers?

I can't think of anything that would cause this, except perhaps a typo
in the directory or filename. (the directory must be "post_publish",
and the script must end  in ".rb")

Can you double-check that the file is in the right spot, and has the
correct filename?

If you've made other changes to the recording scripts - in particular
if you've changed the line "DIR=/usr/local/bigbluebutton/core/scripts"
in /etc/init.d/bbb-record-core, you will have to put your post_publish
script in the directory you've selected there.


--
Calvin Walton <calvin...@kepstin.ca>
BigBlueButton Developer

Developer

unread,
Feb 9, 2016, 1:01:13 AM2/9/16
to BigBlueButton-dev
Thanks Calvin for your reply.

On Friday, 5 February 2016 02:44:13 UTC+5:30, Calvin Walton wrote:

Just to be clear, the bbb-rap-worker.log line "Executing: ruby
post_publish/..." does *NOT* appear on your production server, but it
*DOES* on your development and staging servers?
=> Yeah, it's not working on production server while it's working in my development server.
-----------------------------------------------------------------------------------------------------------------------------

I can't think of anything that would cause this, except perhaps a typo
in the directory or filename. (the directory must be "post_publish",
and the script must end  in ".rb")

Can you double-check that the file is in the right spot, and has the
correct filename?
=> Yeah I have done the same.
file name : convert_record.rb
file location : /usr/local/bigbluebutton/core/scripts/post_publish
-----------------------------------------------------------------------------------------------------------------------------------

If you've made other changes to the recording scripts - in particular
if you've changed the line "DIR=/usr/local/bigbluebutton/core/scripts"
in /etc/init.d/bbb-record-core, you will have to put your post_publish
script in the directory you've selected there.
=>
Output of /etc/init.d/bbb-record-core(development server) :
NAME=bbb-record-core
PID_FILE=/var/run/bbb-record-core.pid
DIR=/usr/local/bigbluebutton/core/scripts
EXEC=rap-worker.rb
RUN_AS=tomcat7

Output of /etc/init.d/bbb-record-core(production server) :
NAME=bbb-record-core
PID_FILE=/var/run/bbb-record-core.pid
DIR=/usr/local/bigbluebutton/core/scripts
EXEC=rap-worker.rb
RUN_AS=tomcat7
 
Regards,
-Ghanshyam Katriya
Reply all
Reply to author
Forward
0 new messages