0
Answered
plugin development
hi
i've been trying to setup a ajenti development environment for plugin development.
i tried following the documentation instructions but found that it doesn't work...
i keep getting an error
"got an unexpected keyword argument 'commands'"
in core.py from ajenti-panel
how do i ensure that i have all that's required?
thanks
i've been trying to setup a ajenti development environment for plugin development.
i tried following the documentation instructions but found that it doesn't work...
i keep getting an error
"got an unexpected keyword argument 'commands'"
in core.py from ajenti-panel
how do i ensure that i have all that's required?
thanks
Answer
0
Answer
Answered
Eugene Pankov (Project coordinator) 11 years ago
Please upgrade python-catcher package
hi
attached is the traceback
dev@dev:~/src/node-v0.10.23/ajenti$ make run
./ajenti-panel -v -c ./config.json
16.12.2013 07:19 ajenti-panel:71 INFO Using config file ./config.json
16.12.2013 07:19 ajenti-panel:90 INFO Ajenti starting in foreground
16.12.2013 07:19 registry.py:247 INFO registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
16.12.2013 07:19 core.py:95 INFO Ajenti 1.2.10-10-g4d3c040 running on platform: debian
Traceback (most recent call last):
File "./ajenti-panel", line 93, in <module>
core.run()
File "/home/cubie/src/node-v0.10.23/ajenti/ajenti/core.py", line 117, in run
('_instances_session', 'return all @plugin instances in session #0', cmd_list_instances_session),
TypeError: register() got an unexpected keyword argument 'commands'
make: *** [run] Error 1
attached is the traceback
dev@dev:~/src/node-v0.10.23/ajenti$ make run
./ajenti-panel -v -c ./config.json
16.12.2013 07:19 ajenti-panel:71 INFO Using config file ./config.json
16.12.2013 07:19 ajenti-panel:90 INFO Ajenti starting in foreground
16.12.2013 07:19 registry.py:247 INFO registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
16.12.2013 07:19 core.py:95 INFO Ajenti 1.2.10-10-g4d3c040 running on platform: debian
Traceback (most recent call last):
File "./ajenti-panel", line 93, in <module>
core.run()
File "/home/cubie/src/node-v0.10.23/ajenti/ajenti/core.py", line 117, in run
('_instances_session', 'return all @plugin instances in session #0', cmd_list_instances_session),
TypeError: register() got an unexpected keyword argument 'commands'
make: *** [run] Error 1
Answer
Answered
Please upgrade python-catcher package
hi
so i have tried updating.. and it didn't seem to help. any advice?
dev@dev:~$ sudo pip install --upgrade python-catcher
Requirement already up-to-date: python-catcher in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: requests in /usr/local/lib/python2.7/dist-packages (from python-catcher)
Requirement already up-to-date: Mako in /usr/local/lib/python2.7/dist-packages (from python-catcher)
Requirement already up-to-date: MarkupSafe>=0.9.2 in /usr/local/lib/python2.7/dist-packages (from Mako->python-catcher)
Cleaning up...
dev@dev:~/src/ajenti-debug/ajenti$ sudo make run
./ajenti-panel -v -c ./config.json
16.12.2013 19:50 ajenti-panel:71 INFO Using config file ./config.json
16.12.2013 19:50 ajenti-panel:90 INFO Ajenti starting in foreground
16.12.2013 19:50 registry.py:247 INFO registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
16.12.2013 19:50 core.py:95 INFO Ajenti 1.2.10-10-g4d3c040 running on platform: debian
Traceback (most recent call last):
File "./ajenti-panel", line 93, in <module>
core.run()
File "/home/cubie/src/ajenti-debug/ajenti/ajenti/core.py", line 117, in run
('_instances_session', 'return all @plugin instances in session #0', cmd_list_instances_session),
TypeError: register() got an unexpected keyword argument 'commands'
make: *** [run] Error 1
so i have tried updating.. and it didn't seem to help. any advice?
dev@dev:~$ sudo pip install --upgrade python-catcher
Requirement already up-to-date: python-catcher in /usr/local/lib/python2.7/dist-packages
Requirement already up-to-date: requests in /usr/local/lib/python2.7/dist-packages (from python-catcher)
Requirement already up-to-date: Mako in /usr/local/lib/python2.7/dist-packages (from python-catcher)
Requirement already up-to-date: MarkupSafe>=0.9.2 in /usr/local/lib/python2.7/dist-packages (from Mako->python-catcher)
Cleaning up...
dev@dev:~/src/ajenti-debug/ajenti$ sudo make run
./ajenti-panel -v -c ./config.json
16.12.2013 19:50 ajenti-panel:71 INFO Using config file ./config.json
16.12.2013 19:50 ajenti-panel:90 INFO Ajenti starting in foreground
16.12.2013 19:50 registry.py:247 INFO registered crypt handler 'sha512_crypt': <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
16.12.2013 19:50 core.py:95 INFO Ajenti 1.2.10-10-g4d3c040 running on platform: debian
Traceback (most recent call last):
File "./ajenti-panel", line 93, in <module>
core.run()
File "/home/cubie/src/ajenti-debug/ajenti/ajenti/core.py", line 117, in run
('_instances_session', 'return all @plugin instances in session #0', cmd_list_instances_session),
TypeError: register() got an unexpected keyword argument 'commands'
make: *** [run] Error 1
My apologies. I actually meant python-exconsole package.
hi.. thanks
so i now have managed to start the server... but when i try to connect to it via my other machine, it gives an error...
how can i make it allow any host to connect?
i tried looking at config.json but am not seeing anything.
thanks lots for your help
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61811>: Invalid HTTP method: '\x16\x03\x01\x00\xae\x01\x00\x00\xaa\x03\x03R\xae\xec\x12\xabS\xf5{\xb6\x82C\xf8\xf2\xa2\xc7#UZ\xcd\x16\x1a\xbf\x174\xa0\xdf.\x94\x08\xb2\xa8\x14\x00\x00J\x00\xff\xc0$\xc0#\xc0\n'
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61812>: Expected GET method: '\x16\x03\x01\x00\x9e\x01\x00\x00\x9a\x03\x01R\xae\xec\x12\x0c\xa0)\x9f\xba\xd7\xa6\xe1\xcf=\xe5S\x8a\xc7\x93o:\xeb6\x04QV\x91\x1a\xd5\x03\xa8\xf0\x00\x00J\x00\xff\xc0$\xc0#\xc0\n'
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61813>: Invalid HTTP method: '\x16\x03\x00\x00E\x01\x00\x00A\x03\x00R\xae\xec\x12\xc9\\\xe2\xbf%O\xf6AS\x05c\xce\xbez\xdc8Mdx\x99\x87J\xd8\xd2\xfb\xc7\x17\xc5\x00\x00\x1a\x00\xff\x00=\x00<\x00/\x00\x05\x00\x04\x005\x00\n'
so i now have managed to start the server... but when i try to connect to it via my other machine, it gives an error...
how can i make it allow any host to connect?
i tried looking at config.json but am not seeing anything.
thanks lots for your help
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61811>: Invalid HTTP method: '\x16\x03\x01\x00\xae\x01\x00\x00\xaa\x03\x03R\xae\xec\x12\xabS\xf5{\xb6\x82C\xf8\xf2\xa2\xc7#UZ\xcd\x16\x1a\xbf\x174\xa0\xdf.\x94\x08\xb2\xa8\x14\x00\x00J\x00\xff\xc0$\xc0#\xc0\n'
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61812>: Expected GET method: '\x16\x03\x01\x00\x9e\x01\x00\x00\x9a\x03\x01R\xae\xec\x12\x0c\xa0)\x9f\xba\xd7\xa6\xe1\xcf=\xe5S\x8a\xc7\x93o:\xeb6\x04QV\x91\x1a\xd5\x03\xa8\xf0\x00\x00J\x00\xff\xc0$\xc0#\xc0\n'
<socket fileno=11 sock=192.168.1.106:8000 peer=192.168.1.144:61813>: Invalid HTTP method: '\x16\x03\x00\x00E\x01\x00\x00A\x03\x00R\xae\xec\x12\xc9\\\xe2\xbf%O\xf6AS\x05c\xce\xbez\xdc8Mdx\x99\x87J\xd8\xd2\xfb\xc7\x17\xc5\x00\x00\x1a\x00\xff\x00=\x00<\x00/\x00\x05\x00\x04\x005\x00\n'
Looks like you are accessing HTTP server with HTTPS or vice versa.
Customer support service by UserEcho