This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Config error/not found?

General support and discussion of Eggdrop bots.
Post Reply
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Config error/not found?

Post by Mrkrabz »

When running I currently get

[Rat@Game1 eggdrop]$ ./eggdrop

Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
[16:43:49] --- Loading eggdrop v1.6.21 (Tue Jul 9 2013)
[16:43:49] Tcl error in file 'eggdrop.conf':
[16:43:49]
[16:43:49] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
[Rat@Game1 eggdrop]$

My config file is named eggdrop.conf and the user has full access to it.

I'm getting this with my edited config file and also the default one supplied by eggdrop.

I really don't have anymore info on this as there doesn't seem to be any useful errors at all.

Thanks.
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

Post by Hero »

try

Code: Select all

./eggdrop -m eggdrop.conf 
or
./eggdrop -n eggdrop.conf
The Road To Hell Is Full Of Good Intentions
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

Code: Select all

[Rat@Game1 eggdrop]$ ./eggdrop -m eggdrop.conf

Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
[17:09:57] --- Loading eggdrop v1.6.21 (Tue Jul  9 2013)
[17:09:57] Tcl error in file 'eggdrop.conf':
[17:09:57]
[17:09:57] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
[Rat@Game1 eggdrop]$ ./eggdrop -n eggdrop.conf

Eggdrop v1.6.21 (C) 1997 Robey Pointer (C) 2011 Eggheads
[17:10:01] Allocated bind table unld (flags 1)
[17:10:01] Allocated bind table time (flags 1)
[17:10:01] Allocated bind table cron (flags 1)
[17:10:01] Allocated bind table note (flags 0)
[17:10:01] Allocated bind table nkch (flags 1)
[17:10:01] Allocated bind table load (flags 1)
[17:10:01] Allocated bind table link (flags 1)
[17:10:01] Allocated bind table filt (flags 1)
[17:10:01] Allocated bind table disc (flags 1)
[17:10:01] Allocated bind table dcc (flags 0)
[17:10:01] Allocated bind table chpt (flags 1)
[17:10:01] Allocated bind table chon (flags 1)
[17:10:01] Allocated bind table chof (flags 1)
[17:10:01] Allocated bind table chjn (flags 1)
[17:10:01] Allocated bind table chat (flags 1)
[17:10:01] Allocated bind table bot (flags 0)
[17:10:01] Allocated bind table bcst (flags 1)
[17:10:01] Allocated bind table away (flags 1)
[17:10:01] Allocated bind table act (flags 1)
[17:10:01] Allocated bind table evnt (flags 1)
[17:10:01] Allocated bind table log (flags 1)
[17:10:01] --- Loading eggdrop v1.6.21 (Tue Jul  9 2013)
[17:10:01] Tcl error in file 'eggdrop.conf':

[17:10:01] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
[Rat@Game1 eggdrop]$
H
Hero
Halfop
Posts: 49
Joined: Tue Jun 26, 2012 6:27 pm
Location: root@localhost
Contact:

Post by Hero »

Check Your Config File Again! Or Post Your Conf File Here!
The Road To Hell Is Full Of Good Intentions
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

Hero wrote:Check Your Config File Again! Or Post Your Conf File Here!
As mentioned, it does this with the default configuration, it doesn't go down to the error which says you need to edit the config.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I've seen similar issues reported in the past.
Either the config-file was not readable to the eggdrop process, or the eggdrop binary was badly compiled/linked (pre-built package, as I recall).

A first step, check who's the owner of the file, and which permissions are set:
ls -la eggdrop.conf
NML_375
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

nml375 wrote:I've seen similar issues reported in the past.
Either the config-file was not readable to the eggdrop process, or the eggdrop binary was badly compiled/linked (pre-built package, as I recall).

A first step, check who's the owner of the file, and which permissions are set:
ls -la eggdrop.conf
-rwxr-xr-x 1 root root 54409 Jul 9 16:39 eggdrop.conf

I gather that's enough permissions as I can already read and write to that file.

I also compiled eggdrop myself, which didn't seem to have any errors.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

It's really not such a good idea running eggdrop's as the super user...
That said, the file is readable by any user on the system. Is this a pre-built eggdrop (package install)?
NML_375
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

nml375 wrote:It's really not such a good idea running eggdrop's as the super user...
That said, the file is readable by any user on the system. Is this a pre-built eggdrop (package install)?
I'm running it from a user called "Rat". It hasn't got root permissions and now has access to all files

chown -R Rat eggdrop

yet I still get

[15:22:56] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)

This was a compiled source from the latest version.
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

Managed to sort of get it working on another server.

Code: Select all

root@Web1 [~]# ls -la /root/Eggdrops/modules/
total 1284
drwxrwxrwx  2 Rat3 root   4096 Jul 10 15:30 ./
drwxr-xr-x 10 Rat3 root   4096 Jul 10 15:36 ../
-rwxr-xr-x  1 Rat3 root  24235 Jul 10 15:30 assoc.so*
-rwxrwxrwx  1 Rat3 root  25762 Jul 10 15:30 blowfish.so*
-rwxr-xr-x  1 Rat3 root 228815 Jul 10 15:30 channels.so*
-rwxr-xr-x  1 Rat3 root  25271 Jul 10 15:30 compress.so*
-rwxr-xr-x  1 Rat3 root  22249 Jul 10 15:30 console.so*
-rwxr-xr-x  1 Rat3 root  18824 Jul 10 15:30 ctcp.so*
-rwxr-xr-x  1 Rat3 root  42823 Jul 10 15:30 dns.so*
-rwxr-xr-x  1 Rat3 root 186081 Jul 10 15:30 filesys.so*
-rwxr-xr-x  1 Rat3 root 271449 Jul 10 15:30 irc.so*
-rwxr-xr-x  1 Rat3 root  60609 Jul 10 15:30 notes.so*
-rwxr-xr-x  1 Rat3 root  29772 Jul 10 15:30 seen.so*
-rwxr-xr-x  1 Rat3 root 125493 Jul 10 15:30 server.so*
-rwxr-xr-x  1 Rat3 root  92209 Jul 10 15:30 share.so*
-rwxr-xr-x  1 Rat3 root  70813 Jul 10 15:30 transfer.so*
-rwxr-xr-x  1 Rat3 root  20283 Jul 10 15:30 uptime.so*
-rwxr-xr-x  1 Rat3 root  29297 Jul 10 15:30 wire.so*
root@Web1 [~]#

Code: Select all

Rat3@Web1 [/root/Eggdrops]# cd /root/Eggdrops/modules/
bash: cd: /root/Eggdrops/modules/: Permission denied
Rat3@Web1 [/root/Eggdrops]#
Not sure what's going on there.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

If you are starting your eggdrop as a local user, why are you placing all the files in the home directory of the super user?

As for what is going on there; /root is owned by root, and is generally, AND SHOULD BE, locked down to any other users. Having the directory Read,Write,eXecute to the "others" group (any user on the system) is just asking for getting your system taken over! Further, it should not be owned by any local user, but by root.

Best way of getting your eggdrop working? Start all over, and don't use the root account at all! Download the source, compile your eggdrop, run "make install", configure your eggdrop, and finally start it. And make sure you do this as the Rat3 user, NOT root.
NML_375
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Oh, and just to make sure I'm clear about this...
That means, download, build, install, etc your eggdrop in Rat3's home directory, not /root
NML_375
M
Mrkrabz
Voice
Posts: 7
Joined: Tue Jul 09, 2013 4:46 pm
Location: United Kingdom

Post by Mrkrabz »

Ah crap, not entirely sure how I didn't notice that. When I did make install, I forgot to supply the install dir into the Home dir.

Thanks.

Edit: One other thing, is there something in the conifg file that changes how fast the bot will re-connect after the IRC server has lost connection? I'm wanting my bot to be the first to join.
c
chal3oye

Post by chal3oye »

It does this with the default configuration, it doesn't go down to the error which says you need to edit the config.
Post Reply