perl scrips won't start/run Slack11

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

perl scrips won't start/run Slack11

Postby CHP » Wed Oct 08, 2008 4:30 pm

Hello,

Made a vicidial Setup with Slackware 11.0 and having the issue that the perl scripts won't start (seems to be). I made some Setups with Slack 12.0 & 12.1 and never run in such an issue..
Maybe I forgot something ore there is something different in Slack11, but i couldn't find the error. Maybe someone can help please...

"crontab -l" shows the right scripts like in scratch install

asterisk-perl0.08 is installed

root@vici05:~# perl --version
This is perl, v5.8.8 built for i486-linux
Copyright 1987-2006, Larry Wall

root@vici05:~# screen -ls
There is a screen on:
1377.asterisk (Detached)
1 Socket in /tmp/screens/S-root.

root@vici05:~# ps aux | grep AST
root 1479 0.0 0.0 1880 616 pts/1 S+ 23:11 0:00 grep AST

root@vici05:~# ps aux | grep crond
root 1279 0.0 0.0 1772 608 ? S 23:00 0:00 /usr/sbin/crond -l10
root 1481 0.0 0.0 1884 624 pts/1 S+ 23:11 0:00 grep crond

root@vici05:~# /usr/share/astguiclient/FastAGI_log.pl
2008/10/08-23:13:04 TEST_VDfastAGI (type Net::Server::PreFork) starting! pid(1488)
Binding to TCP port 4577 on host *
Setting gid to "0 0"
Have to cancel that with Ctrl-C (runs more than 1 Minute)

Thanks for help in advance!
CHP
 
Posts: 33
Joined: Thu Jul 17, 2008 12:53 pm

Postby mflorell » Wed Oct 08, 2008 10:16 pm

FastAGI_log.pl seems to work fine, have you tried the AST_VDhopper.pl script?
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby CHP » Thu Oct 09, 2008 2:51 am

root@vici05:~# /usr/share/astguiclient/AST_VDhopper.pl
no command line options set


root@vici05:~# /usr/share/astguiclient/AST_VDhopper.pl --debug

----- DEBUG -----

TIME DEBUG: -5|-4|1| GMT: 13:44
SELECT * FROM vicidial_lists where active='N';Inactive Lists: 11
Inactive List Leads Deleted: 0E0 |DELETE from vicidial_hopper where list_id IN('999','10301001','10601001','10601002','99901002','10301003','10305002','11905002','11905003','11905004','10305003');|
CALLBACK HOLD: 40|SELECT count(*) FROM vicidial_callbacks where callback_time <= '2008-10-09 9:44:16' and status='ACTIVE';|
CAMPAIGNS TO PROCESSES HOPPER FOR: 9|8
Starting hopper run for Test campaign- GMT: 24hours HOPPER: 50
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 76
Starting hopper run for 10701001 campaign- GMT: 24hours HOPPER: 100
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 141
Starting hopper run for Testcamp campaign- GMT: 24hours HOPPER: 100
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 38
hopper too low (38|100) starting hopper dump
campaign lists count: 1 | '99901003'
no lead filter defined for campaign: Testcamp
leads to call count: 3
NO SHUFFLE-NEW-LEADS INTO HOPPER DEFINED FOR LEAD ORDER
Getting Leads to add to hopper
looking for RECYCLE leads, maximum of 100
RECYCLE leads to call count: 0
lead call order: order by lead_id asc
Adding to hopper: 0
DONE with this campaign
Starting hopper run for 10403001 campaign- GMT: 24hours HOPPER: 100
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 0
hopper too low (0|100) starting hopper dump
campaign lists count: 0 | ''
no lead filter defined for campaign: 10403001
leads to call count: 0
NO SHUFFLE-NEW-LEADS INTO HOPPER DEFINED FOR LEAD ORDER
ERROR CANNOT ADD ANY LEADS TO HOPPER
Starting hopper run for 11703001 campaign- GMT: 24hours HOPPER: 100
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 179
Starting hopper run for 11805001 campaign- GMT: 24hours HOPPER: 300
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 1695
Starting hopper run for 10305001 campaign- GMT: 24hours HOPPER: 500
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 3168
Starting hopper run for 11905001 campaign- GMT: 24hours HOPPER: 200
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 600
Starting hopper run for 10706001 campaign- GMT: 24hours HOPPER: 100
hopper DONE cleared: 0E0
hopper GMT BAD cleared: 0E0
hopper READY count: 280
DONE. Script execution time in seconds: 0


root@vici05:~# /usr/share/astguiclient/AST_conf_update.pl --debug
-- DEBUGGING ENABLED --

|SELECT telnet_host,telnet_port,ASTmgrUSERNAME,ASTmgrSECRET,ASTmgrUSERNAMEupdate,ASTmgrUSERNAMElisten,ASTmgrUSERNAMEsend,max_vicidial_trunks,answer_transfer_agent,local_gmt,ext_context FROM servers where server_ip = '111.222.333.444';|
|SELECT extension,conf_exten from conferences where server_ip='111.222.333.444' and extension is NOT NULL and extension != '';|
||Action: Command
Command: Meetme list

Action: Ping

|
|Response: Follows
|
|Privilege: Command
|
|Usage: meetme (un)lock|(un)mute|kick|list <confno> <usernumber>
|
| Executes a command for the conference or on a conferee
|
|--END COMMAND--
|
|
|
Meetme list - Exten:|| Empty:|0| CONFERENCE STILL HAS PARTICIPANTS, DOING NOTHING FOR THIS CONFERENCE
DONE... Exiting... Goodbye... See you later...


thats what in the asterisk CLI...
-- Executing AGI("SIP/testsip-0819d928", "agi://127.0.0.1:4577/call_log") in new stack
Oct 9 09:46:39 WARNING[2646]: res_agi.c:210 launch_netscript: Connect to 'agi://127.0.0.1:4577/call_log' failed: Connection refused

cron is working, other scripts like reboot are done...
CHP
 
Posts: 33
Joined: Thu Jul 17, 2008 12:53 pm

Postby CHP » Thu Oct 09, 2008 2:58 am

root@vici05:~# top | grep AST
2688 root 17 0 0 0 0 Z 2 0.0 0:00.05 AST_conf_update <defunct>
2689 root 15 0 0 0 0 Z 1 0.0 0:00.04 AST_VDhopper.pl <defunct>

root@vici05:~# cat /etc/hosts | grep localhost
127.0.0.1 localhost
CHP
 
Posts: 33
Joined: Thu Jul 17, 2008 12:53 pm

Postby CHP » Thu Oct 09, 2008 12:56 pm

another additional info:
replaced the 2.6.17 series Kernel from Slack11 with the lastest from 2.6.22 series, any reason that the scrips wont run in background ( and agi fails) because of this?

using agc 2.0.4.1
CHP
 
Posts: 33
Joined: Thu Jul 17, 2008 12:53 pm

Postby mflorell » Thu Oct 09, 2008 6:28 pm

Not sure what the problem could be, I just did a Slack install this weekend and everything worked properly.
mflorell
Site Admin
 
Posts: 18339
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby CHP » Fri Oct 10, 2008 1:04 am

I did also several installs with slack before, therefore I was wondering...

ok, lets make format c: as an old ms-dos user would say... :)
CHP
 
Posts: 33
Joined: Thu Jul 17, 2008 12:53 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 241 guests