0
Under review

Error when logging in

Simen Aas 9 year бұрын жаңартылды 9 year бұрын 3
Hi,

I am running a 14.04 Ubuntu server.
I installed Ajenti, and it worked fine.

Then I changed the users to sync with OS, and restarted ajenti.
When I logged in with my user, I get the message that im not configured with any plugins.

I then read up on the issue, and see that I fucked up - I should've added the plugins/rights to my user before restarting ajenti.

Anyways, some guy said he just uninstalled and reinstalled ajenti, and then re-did the whole user/sync with OS thing. And gave his user plugins before restarting.

However, after uninstalling Ajenti - and reinstalling (with no apparent errors), I get the following error when trying to login with root/admin. I need help! :(

Server error
Traceback (most recent call last):   File "/usr/lib/pymodules/python2.7/ajenti/routing.py", line 55, in handle     output = instance.handle(context)   File "/usr/lib/pymodules/python2.7/ajenti/api/http.py", line 60, in handle     data = method(context, **context.route_data)   File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 47, in handle_auth     context, username, password, env=context.env,   File "/usr/lib/pymodules/python2.7/ajenti/middleware.py", line 132, in try_login     if UserManager.get().check_password(username, password, env=env):   File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 84, in get     return context.get_instance(cls)   File "/usr/lib/pymodules/python2.7/ajenti/plugins/__init__.py", line 188, in get_instance     return self.instantiate(cls)   File "/usr/lib/pymodules/python2.7/ajenti/plugins/__init__.py", line 202, in instantiate     init(instance)   File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 282, in init     self.load_classconfig()   File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 295, in load_classconfig     self.create_classconfig()   File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 289, in create_classconfig     self.__get_config_store().setdefault(self.classname, config)   File "/usr/lib/pymodules/python2.7/ajenti/api/__init__.py", line 302, in __get_config_store     return ajenti.config.tree.users['root'].configs   File "/usr/lib/pymodules/python2.7/reconfigure/items/bound.py", line 91, in __getitem__     return self.datadict[key] KeyError: 'root'
+1
Under review
Reinstalling Ajenti from APT won't reset the config file. You can download the stock config from here: https://github.com/Eugeny/ajenti/blob/master/packaging/files/config.json
This worked. Thank you very much Eugene. What a fantastic tool.
By the way, is there any way to make one of my new users in Ajenti not run as root in terminal. And rather have it run as f.instance "csgoserver" ?