Reply
 
Thread Tools Display Modes
  #1  
Old 05-15-2012, 01:38 AM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default Bitlbee Not Working in PCBSD 9?
This is what I get:

Code:
$/usr/local/etc/rc.d/bitlbee start

/usr/local/etc/rc.d/bitlbee: WARNING: run_rc_command: cannot run /usr/pbi/bitlbee-i386//bitlbee
Looking in the directory referenced, I don't see an executable:

Code:
$ ls /usr/pbi/bitlbee-i386/
.auto-external-links bitlbee.conf         libexec
.headerdir           bitlbee.png          man
.pbi-hash-list       etc                  motd.txt
.sbin                gui_banner.png       sbin
.xdg-desktop         gui_sidebanner.png   services
.xdg-menu            include              share
.xdg-mime            info                 www
README               lib
bin                  libdata
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #2  
Old 05-15-2012, 12:01 PM
Beanpole's Avatar
Beanpole Beanpole is offline
Senior Member
 
Join Date: May 2010
Posts: 1,650
Thanks: 3
Thanked 158 Times in 138 Posts
Default
PBI executables are generally located in /usr/pbi/(pbiname-architecture)/.sbin/
In the case of Bitlebee, since it is a server application, there might not be any executables and you will have to start the service directly with: "/usr/pbi/bitlbee-i386/etc/rc.d/bitlbee start" (some services also require root permissions to start up, but I can't remember if bitlbee is one of them)

If memory serves me right, the Bitlbee service is also automatically started when you install the PBI, so you might want to do a "ps -auwwx | grep bitlbee" to see if it is already running or not first.

Hope this helps!
__________________
~ Ken Moore ~
PC-BSD/iXsystems
Reply With Quote
  #3  
Old 05-15-2012, 07:49 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Originally Posted by Beanpole View Post
PBI executables are generally located in /usr/pbi/(pbiname-architecture)/.sbin/
In the case of Bitlebee, since it is a server application, there might not be any executables and you will have to start the service directly with: "/usr/pbi/bitlbee-i386/etc/rc.d/bitlbee start" (some services also require root permissions to start up, but I can't remember if bitlbee is one of them)

If memory serves me right, the Bitlbee service is also automatically started when you install the PBI, so you might want to do a "ps -auwwx | grep bitlbee" to see if it is already running or not first.

Hope this helps!
Ugh... stupid me, you're right:

Code:
$ ps -auwwx | grep bitlbee

purgatori   3652   0.0  0.3   9748   1296   1  S+    5:41AM 0:00.00 grep bitlbee
But although the daemon seems to be running, I can't seem to connect to it. The first stumbling block is that I'm not sure if the config file is being read at /usr/pbi/bitlbee-1386/bitlbee.conf or /usr/local/etc/bitlbee/bitlbee.conf -- My hunch is that it's the latter, but I made identical changes to the config file in both cases, namely:

Code:
DaemonInterface = 127.0.0.1
DaemonPort = 6667
However, in ERC I get "connection refused" when trying to connect to either "localhost" or "127.0.0.1." Checking it with telnet produces the following output:

Code:
$ telnet 127.0.0.1 6667
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host

telnet localhost 6667
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
It seems I always have trouble with Bitlbee on any new install, but I really can't figure out where I'm going wrong this time.
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
  #4  
Old 05-18-2012, 09:41 PM
purgatori purgatori is offline
Senior Member
 
Join Date: May 2010
Posts: 234
Thanks: 6
Thanked 15 Times in 14 Posts
Default
Can someone tell me where Bitlbee is being started from when installed from PBI? An entry in /etc/rc.conf is automatically created, but this makes an erroneous call to an executable/script that doesn't exist. For this reason, I commented out the rc.conf entry, but using Beanpole's above ps command, I discovered that the Bitlbee daemon is still running... somehow. Without knowing how it's being called, or what config files it's reading it's really difficult for me to troubleshoot the source of my problems -- and standard references are of little help, as the PBI version of Bitlbee appears to be configured quite differently.
__________________
My Blog About Emacs and (PC)BSD
Promethean Machines
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:44 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.