Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

[Bot::Pastebot] Help Getting Webserver Configured

by three18ti (Scribe)
on Jan 11, 2014 at 19:29 UTC ( #1070288=perlquestion: print w/replies, xml ) Need Help??
three18ti has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks

I'm attempting to deploy pastebot. The IRC bot comes up and runs without issue, but I'm getting the dreaded 500 error when attempting to connect to the webserver.

if I omit the "optional" iname parameter, I get the error Use of uninitialized value $iname in pattern match (m//) at /usr/local/lib64/perl5/Bot/Pastebot/Server/ line 476. otherwise, I don't get any errors on the console when attempting to connect to the web server.

I can see that the pastebot program is listening on port 6000 (as I've configured):

# netstat -tulpn | grep 6000 tcp 0 0* +LISTEN 6347/perl # ps aux | grep 6347 pastebot 6347 0.2 0.8 189552 34416 pts/0 S+ 11:16 0:00 /usr/ +bin/perl /usr/local/bin/pastebot

This is the config I'm currently using, (the netstat clip above was taken with iface not specified), how can I get the actual error that is being produced by the webserver? It seems like pastebot doesn't generate any logging messages for the webserver side of things.

Thanks for the assistance

web_server irc MyIRC ifname y0319t981 name MyPasteNet iface iname http://myserver:6000 port 6000 static /export/home/pastebot/static template Bot::Pastebot::TextTemplate irc name MyIRC away saving humanity from evil paste ccinfo ACTION VERSION CLIENTINFO USERINFO cuinfo owned and operated by three18ti < cver pastebot 1.0 <> iname http://myserver:6000 server 6667 channel \#pastebot quit how will you live without me? uname pastebot administrivia name administrivia pidfile /var/run/ pastes check 864000 count 0 expire 8640000 name pasty store /export/home/pastebot/store

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1070288]
Approved by LanX
[davido]: sorry, typed that before you asked me to disable proc
[davido]: but you stumped me; don't know how to disable proc.
[tye]: I don't know if you can just dismount, but I thought so.
[davido]: yeah, umount -f isn't powerful enough.
[tye]: probably something in the init subsystem that does the mounting that you could disable and reboot.
davido needs to close laptop to board flight home from yapc.
[davido]: I'll look into it in a few hours probably.
[davido]: when i do get to that point I think I'll do it in a vm snapshot just in case. :)
[oiskuu]: tye, you were right: loginuid/sessionid are part of task struct if compiled with AUDITSYSCALL. I have some doubts if you should actually depend on that feature.
[Corion]: oiskuu: Depends on what you want to do with that information

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-06-23 20:06 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (555 votes). Check out past polls.