placing files in ubuntu 2.11.2

Asked by Imperous

Hello. I compiled the program under ubuntu and wanted to know the way of accommodation configs

:/etc/adchpp# adchppd -v
2.11.2 (r0) Release
root@hub:/etc/adchpp# adchppd -c /etc/adchpp/adchpp.xml
Starting..Unable to load adchpp.xml, using defaults: Could not open file
.
2.11.2 (r0) Release running, press ctrl-c to exit...
^CShut downroot@hub:/etc/adchpp# ls -la /etc/adchpp/
итого 36
drwxr-xr-x 6 root root 4096 марта 3 18:33 .
drwxr-xr-x 93 root root 4096 марта 3 18:51 ..
-rw-r--r-- 1 root root 4369 марта 3 18:31 adchpp.xml
drwxr-xr-x 2 root root 4096 марта 3 17:12 certs
drwxr-xr-x 2 root root 4096 марта 3 18:33 logs
drwxr-xr-x 5 root root 4096 марта 3 18:32 plugins
drwxr-xr-x 2 root root 4096 марта 3 18:22 scripts
-rw-r--r-- 1 root root 480 марта 3 17:18 Script.xml

Why not find adchpp configuration, even if you specify the path? Thank U

Question information

Language:
English Edit question
Status:
Answered
For:
ADCH++ Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
eMTee (realprogger) said :
#1

According to the documentation (http://adchpp.sourceforge.net/user_guide/expert_guide.html#_adch_command_line_parameters) the -c switch is for specifying the path of the config directory...

Revision history for this message
Imperous (imperous) said :
#2

Thank u!
however:

root@hub:/etc/adchpp# adchppd -c /etc/adchpp/
Starting..Unable to load adchpp.xml, using defaults: Missing end tag in Plugins
.
2.11.2 (r0) Release running, press ctrl-c to exit...

root@hub:/etc/adchpp# ls -la
итого 36
drwxr-xr-x 6 root root 4096 марта 3 18:33 .
drwxr-xr-x 93 root root 4096 марта 3 18:51 ..
-rw-r--r-- 1 root root 4369 марта 3 18:31 adchpp.xml
drwxr-xr-x 2 root root 4096 марта 3 17:12 certs
drwxr-xr-x 2 root root 4096 марта 3 18:33 logs
drwxr-xr-x 5 root root 4096 марта 3 18:32 plugins
drwxr-xr-x 2 root root 4096 марта 3 18:22 scripts
-rw-r--r-- 1 root root 480 марта 3 17:18 Script.xml

Maybe I'm still something wrong?

Revision history for this message
eMTee (realprogger) said :
#3

Check the file conformity. The error message looks to be even quite specific where do you need to look. It must be a valid xml file.

Revision history for this message
Imperous (imperous) said :
#4

I'm sorry, but can you be more any thoughts?

http://pastebin.ru/TRQhWmBB
http://pastebin.ru/A3JxlRmi

root@hub:/etc/adchpp# ls -la
итого 32
drwxr-xr-x 6 root root 4096 марта 4 00:15 .
drwxr-xr-x 93 root root 4096 марта 3 18:51 ..
-rw-r--r-- 1 root root 0 марта 3 23:51 about.txt
-rw-r--r-- 1 root root 4046 марта 4 00:15 adchpp.xml
-rw-r--r-- 1 root root 0 марта 3 23:51 bans.txt
drwxr-xr-x 2 root root 4096 марта 3 17:12 certs
drwxr-xr-x 2 root root 4096 марта 3 18:33 logs
-rw-r--r-- 1 root root 0 марта 3 23:50 motd.txt
drwxr-xr-x 3 root root 4096 марта 3 23:45 plugins
-rw-r--r-- 1 root root 0 марта 3 23:50 rules.txt
drwxr-xr-x 2 root root 4096 марта 3 18:22 scripts
-rw-r--r-- 1 root root 468 марта 3 23:50 Script.xml
-rw-r--r-- 1 root root 0 марта 3 23:51 users.txt

root@hub:/etc/adchpp/scripts# ls -la
итого 42052
drwxr-xr-x 2 root root 4096 марта 3 18:22 .
drwxr-xr-x 6 root root 4096 марта 4 00:15 ..
-rw-r--r-- 1 root root 1315248 марта 2 21:34 LuaEngine.os
-rw-r--r-- 1 root root 165360 марта 2 21:34 LuaScript.os
-rw-r--r-- 1 root root 1740208 марта 2 21:34 ScriptManager.os
-rw-r--r-- 1 root root 868768 марта 2 21:34 ScriptPlugin.os
-rw-r--r-- 1 root root 38951376 марта 2 21:34 stdinc.h.gch

root@hub:/etc/adchpp/plugins/bin# ls -la
итого 36156
drwxr-xr-x 4 root root 4096 марта 3 23:45 .
drwxr-xr-x 3 root root 4096 марта 3 23:45 ..
-rwxr-xr-x 1 root root 1284388 марта 2 21:35 adchppd
-rwxr-xr-x 1 root root 1710596 марта 2 21:34 Bloom.so
-rwxr-xr-x 1 root root 54859 марта 2 21:35 lfs.so
-rwxr-xr-x 1 root root 493965 марта 2 21:33 libaboost_date_time.so
-rwxr-xr-x 1 root root 6295378 марта 2 21:34 libaboost_locale.so
-rwxr-xr-x 1 root root 79430 марта 2 21:33 libaboost_system.so
-rwxr-xr-x 1 root root 8406878 марта 2 21:34 libadchpp.so
-rwxr-xr-x 1 root root 1001116 марта 2 21:34 libalua.so
-rwxr-xr-x 1 root root 969600 марта 2 21:36 luadchppbloom.so
-rwxr-xr-x 1 root root 3490418 марта 2 21:36 luadchpp.so
-rw-r--r-- 1 root root 143188 марта 2 21:35 pyadchpp.py
-rwxr-xr-x 1 root root 6047280 марта 2 21:35 _pyadchpp.so
-rwxr-xr-x 1 root root 5233927 марта 2 21:37 rbadchpp.so
drwxr-xr-x 2 root root 4096 марта 3 18:36 scripts
-rwxr-xr-x 1 root root 1769492 марта 2 21:34 Script.so
drwxr-xr-x 2 root root 4096 марта 2 21:37 socket

adchppd -c /etc/adchpp/
Starting..Unable to load adchpp.xml, using defaults: Missing end tag in Plugins
.
2.11.2 (r0) Release running, press ctrl-c to exit...

 ^(

Revision history for this message
eMTee (realprogger) said :
#5

Well, as the error message says there's two <Plugins> tag opened in your adchpp.xml file and only one is closed. It's obvious. You have to remove one of the opening tags, most probably the single one without a path.

Revision history for this message
Imperous (imperous) said :
#6

Ok, thank you. This structure was in Example config

Revision history for this message
eMTee (realprogger) said :
#7

One of them is commented out in the example config https://sourceforge.net/p/adchpp/code/ci/default/tree/etc/adchpp.xml and the documentation also mentions why.
The one that commented out is an example for Linux configs where the path should be always specified. The one without comments is often used in Windows where you don't need to specify absolute paths.

Default values in ADCH++ are often set in favour of Windows usage because Windows users are usually not as experienced as Linux people.

Revision history for this message
Imperous (imperous) said :
#8

Thank you for the clarification.

Can you help with this problem?

Provide an answer of your own, or ask Imperous for more information if necessary.

To post a message you must log in.