dialplan.rb Permission denied using jruby

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

dialplan.rb Permission denied using jruby

manuel espinoza
Hello!

I'm using this setup:

SiPP > Asterisk + ahn (0.8.3) > Asterisk

and after connecting a couple hundred of calls (~500 calls) ahn fails with this error:

ERROR agi: #<Errno::EACCES: Permission denied - /home/ahn/dialplan.rb>
ERROR agi:      org/jruby/RubyFile.java:442:in `initialize'
     org/jruby/RubyIO.java:868:in `new'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:149:in `load_dialplans'
     org/jruby/RubyArray.java:2358:in `map!'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:144:in `load_dialplans'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:9:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:87:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:81:in `handle'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/agi_server.rb:23:in `serve'
     /usr/local/rvm/rubies/jruby-1.6.5/lib/ruby/1.8/gserver.rb:211:in `start'

I'm not sure why this is happening :( 
Thanks for your help!

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: dialplan.rb Permission denied using jruby

Ben Langfeld-2
You are using an ancient version of Adhearsion which has been unsupported for 2 years already, on an old version of JRuby, even though Adhearsion did not officially support JRuby at that time. You have a bunch of upgrades to do :)

On 30 April 2015 at 21:21, manuel espinoza <[hidden email]> wrote:
Hello!

I'm using this setup:

SiPP > Asterisk + ahn (0.8.3) > Asterisk

and after connecting a couple hundred of calls (~500 calls) ahn fails with this error:

ERROR agi: #<Errno::EACCES: Permission denied - /home/ahn/dialplan.rb>
ERROR agi:      org/jruby/RubyFile.java:442:in `initialize'
     org/jruby/RubyIO.java:868:in `new'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:149:in `load_dialplans'
     org/jruby/RubyArray.java:2358:in `map!'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:144:in `load_dialplans'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:9:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:87:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:81:in `handle'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/agi_server.rb:23:in `serve'
     /usr/local/rvm/rubies/jruby-1.6.5/lib/ruby/1.8/gserver.rb:211:in `start'

I'm not sure why this is happening :( 
Thanks for your help!

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: dialplan.rb Permission denied using jruby

manuel espinoza
I know :( We are working in that mega update, but currently this is the setup that we've been using for the last couple of years and apparently we have reached some kind of limit.
I tried using jruby's profiler and all I can see is an error when loading dialplans, I also tried setting a higher ulimit but the error shows again, I double checked file permissions as well  :/ 

Thanks :)

On Thu, Apr 30, 2015 at 7:53 PM, Ben Langfeld <[hidden email]> wrote:
You are using an ancient version of Adhearsion which has been unsupported for 2 years already, on an old version of JRuby, even though Adhearsion did not officially support JRuby at that time. You have a bunch of upgrades to do :)

On 30 April 2015 at 21:21, manuel espinoza <[hidden email]> wrote:
Hello!

I'm using this setup:

SiPP > Asterisk + ahn (0.8.3) > Asterisk

and after connecting a couple hundred of calls (~500 calls) ahn fails with this error:

ERROR agi: #<Errno::EACCES: Permission denied - /home/ahn/dialplan.rb>
ERROR agi:      org/jruby/RubyFile.java:442:in `initialize'
     org/jruby/RubyIO.java:868:in `new'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:149:in `load_dialplans'
     org/jruby/RubyArray.java:2358:in `map!'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:144:in `load_dialplans'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:9:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:87:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:81:in `handle'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/agi_server.rb:23:in `serve'
     /usr/local/rvm/rubies/jruby-1.6.5/lib/ruby/1.8/gserver.rb:211:in `start'

I'm not sure why this is happening :( 
Thanks for your help!

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: dialplan.rb Permission denied using jruby

Ben Langfeld-2
I'd be happy to help if you see a similar issue with Adhearsion 2, but the version you are currently running really is dead :)

On 30 April 2015 at 22:00, manuel espinoza <[hidden email]> wrote:
I know :( We are working in that mega update, but currently this is the setup that we've been using for the last couple of years and apparently we have reached some kind of limit.
I tried using jruby's profiler and all I can see is an error when loading dialplans, I also tried setting a higher ulimit but the error shows again, I double checked file permissions as well  :/ 

Thanks :)

On Thu, Apr 30, 2015 at 7:53 PM, Ben Langfeld <[hidden email]> wrote:
You are using an ancient version of Adhearsion which has been unsupported for 2 years already, on an old version of JRuby, even though Adhearsion did not officially support JRuby at that time. You have a bunch of upgrades to do :)

On 30 April 2015 at 21:21, manuel espinoza <[hidden email]> wrote:
Hello!

I'm using this setup:

SiPP > Asterisk + ahn (0.8.3) > Asterisk

and after connecting a couple hundred of calls (~500 calls) ahn fails with this error:

ERROR agi: #<Errno::EACCES: Permission denied - /home/ahn/dialplan.rb>
ERROR agi:      org/jruby/RubyFile.java:442:in `initialize'
     org/jruby/RubyIO.java:868:in `new'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:149:in `load_dialplans'
     org/jruby/RubyArray.java:2358:in `map!'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:144:in `load_dialplans'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:9:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:87:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:81:in `handle'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/agi_server.rb:23:in `serve'
     /usr/local/rvm/rubies/jruby-1.6.5/lib/ruby/1.8/gserver.rb:211:in `start'

I'm not sure why this is happening :( 
Thanks for your help!

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: dialplan.rb Permission denied using jruby

manuel espinoza

ok thanks anyway :)!!

On Apr 30, 2015 8:33 PM, "Ben Langfeld" <[hidden email]> wrote:
I'd be happy to help if you see a similar issue with Adhearsion 2, but the version you are currently running really is dead :)

On 30 April 2015 at 22:00, manuel espinoza <[hidden email]> wrote:
I know :( We are working in that mega update, but currently this is the setup that we've been using for the last couple of years and apparently we have reached some kind of limit.
I tried using jruby's profiler and all I can see is an error when loading dialplans, I also tried setting a higher ulimit but the error shows again, I double checked file permissions as well  :/ 

Thanks :)

On Thu, Apr 30, 2015 at 7:53 PM, Ben Langfeld <[hidden email]> wrote:
You are using an ancient version of Adhearsion which has been unsupported for 2 years already, on an old version of JRuby, even though Adhearsion did not officially support JRuby at that time. You have a bunch of upgrades to do :)

On 30 April 2015 at 21:21, manuel espinoza <[hidden email]> wrote:
Hello!

I'm using this setup:

SiPP > Asterisk + ahn (0.8.3) > Asterisk

and after connecting a couple hundred of calls (~500 calls) ahn fails with this error:

ERROR agi: #<Errno::EACCES: Permission denied - /home/ahn/dialplan.rb>
ERROR agi:      org/jruby/RubyFile.java:442:in `initialize'
     org/jruby/RubyIO.java:868:in `new'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:149:in `load_dialplans'
     org/jruby/RubyArray.java:2358:in `map!'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:144:in `load_dialplans'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:9:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:87:in `initialize'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/dial_plan.rb:81:in `handle'
     /usr/local/rvm/gems/jruby-1.6.5/gems/adhearsion-0.8.3/lib/adhearsion/voip/asterisk/agi_server.rb:23:in `serve'
     /usr/local/rvm/rubies/jruby-1.6.5/lib/ruby/1.8/gserver.rb:211:in `start'

I'm not sure why this is happening :( 
Thanks for your help!

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.