Instalação Ajenti [RESOLVIDO]

1. Instalação Ajenti [RESOLVIDO]

Leandro Jorge Junges
leandrojunges

(usa CentOS)

Enviado em 25/01/2018 - 09:05h

Bom dia,

Estou precisando de uma ajuda na instalação do Ajenti, tentei seguir a receita de bolo do site porém a página só ficava carregando mas não carregava nunca, para tentar corrigir comecei a mexer, porém em vez de melhorar a situação só piorei e agora nem consigo mais iniciar o serviço do Ajenti, abaixo tentarei relacionar o máximo de coisas para ajudar a entender o problema:

hostnamectl

Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
Machine ID: 5b3835b19c71479c9ecfb99fb53376e4
Boot ID: de27648195fe4de09a8764520064cba0
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.21.1.el7.x86_64
Architecture: x86-64


service ajenti restart
Restarting ajenti (via systemctl): Job for ajenti.service failed because the control process exited with error code. See "systemctl status ajenti.service" and "journalctl -xe" for details.


journalctl -xe

-- Subject: Unidade ajenti.service sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade ajenti.service está sendo iniciada.
Jan 25 08:52:43 localhost.localdomain python[20668]: Traceback (most recent call last):
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/bin/ajenti-panel", line 11, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: import ajenti.log
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/ajenti/log.py", line 7, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from ajenti.api import extract_context
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/ajenti/api/__init__.py", line 6, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from ajenti.plugins import manager, PluginContext
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/ajenti/plugins/__init__.py", line 9, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from ajenti.util import *
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/ajenti/util.py", line 2, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: import catcher
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/catcher/__init__.py", line 2, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from . import uploaders
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/catcher/uploaders/__init__.py", line 1, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from .ajentiorg import AjentiOrgUploader
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/catcher/uploaders/ajentiorg.py", line 2, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: import requests
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from . import utils
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from .exceptions import InvalidURL
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>
Jan 25 08:52:43 localhost.localdomain python[20668]: from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
Jan 25 08:52:43 localhost.localdomain python[20668]: File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
Jan 25 08:52:43 localhost.localdomain python[20668]: raise ImportError("No module named '%s'" % (name,))
Jan 25 08:52:43 localhost.localdomain python[20668]: ImportError: No module named 'requests.packages.urllib3'
Jan 25 08:52:43 localhost.localdomain systemd[1]: ajenti.service: control process exited, code=exited status=1
Jan 25 08:52:43 localhost.localdomain systemd[1]: Failed to start Ajenti panel.
-- Subject: A unidade ajenti.service falhou
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade ajenti.service falhou.
--
-- O resultado é failed.
Jan 25 08:52:43 localhost.localdomain systemd[1]: Unit ajenti.service entered failed state.
Jan 25 08:52:43 localhost.localdomain systemd[1]: ajenti.service failed.
Jan 25 08:52:43 localhost.localdomain polkitd[634]: Unregistered Authentication Agent for unix-process:20662:1224515986 (system bus name :1.55236, object pat
~
[root@localhost ~]# clear
[root@localhost ~]# journalctl -xe > log.txt
[root@localhost ~]# vi log.txt
-- Logs begin at Sáb 2017-11-25 08:40:01 -02, end at Qui 2018-01-25 08:55:01 -02. --
Jan 25 01:40:01 localhost.localdomain systemd[1]: Started Session 27494 of user root.
-- Subject: Unidade session-27494.scope concluiu a inicialização
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-27494.scope concluiu a inicialização.
--
-- The start-up result is done.
Jan 25 01:40:01 localhost.localdomain systemd[1]: Starting Session 27494 of user root.
-- Subject: Unidade session-27494.scope sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-27494.scope está sendo iniciada.
Jan 25 01:40:01 localhost.localdomain CROND[17308]: (root) CMD (/var/www/html/chamado/scriptsLinux/processaEmail)
Jan 25 01:40:01 localhost.localdomain mysqld[1142]: 2018-01-25 1:40:01 139940438480640 [Warning] Aborted connection 176724 to db: 'chamado' user: 'root' host: 'localhost' (Got an error reading communication packets)
Jan 25 01:45:01 localhost.localdomain systemd[1]: Started Session 27495 of user root.
-- Subject: Unidade session-27495.scope concluiu a inicialização
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-27495.scope concluiu a inicialização.
--
-- The start-up result is done.
Jan 25 01:45:01 localhost.localdomain systemd[1]: Starting Session 27495 of user root.
-- Subject: Unidade session-27495.scope sendo iniciado
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-27495.scope está sendo iniciada.
Jan 25 01:45:01 localhost.localdomain CROND[17315]: (root) CMD (/var/www/html/chamado/scriptsLinux/processaEmail)
Jan 25 01:45:01 localhost.localdomain mysqld[1142]: 2018-01-25 1:45:01 139940438480640 [Warning] Aborted connection 176725 to db: 'chamado' user: 'root' host: 'localhost' (Got an error reading communication packets)
Jan 25 01:50:01 localhost.localdomain systemd[1]: Started Session 27496 of user root.
-- Subject: Unidade session-27496.scope concluiu a inicialização
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A unidade session-27496.scope concluiu a inicialização.
--
-- The start-up result is done.
Jan 25 01:50:01 localhost.localdomain systemd[1]: Starting Session 27496 of user root.
-- Subject: Unidade session-27496.scope sendo iniciado


ajenti-panel -v

Traceback (most recent call last):
File "/usr/bin/ajenti-panel", line 11, in <module>
import ajenti.log
File "/usr/lib/python2.7/site-packages/ajenti/log.py", line 7, in <module>
from ajenti.api import extract_context
File "/usr/lib/python2.7/site-packages/ajenti/api/__init__.py", line 6, in <module>
from ajenti.plugins import manager, PluginContext
File "/usr/lib/python2.7/site-packages/ajenti/plugins/__init__.py", line 9, in <module>
from ajenti.util import *
File "/usr/lib/python2.7/site-packages/ajenti/util.py", line 2, in <module>
import catcher
File "/usr/lib/python2.7/site-packages/catcher/__init__.py", line 2, in <module>
from . import uploaders
File "/usr/lib/python2.7/site-packages/catcher/uploaders/__init__.py", line 1, in <module>
from .ajentiorg import AjentiOrgUploader
File "/usr/lib/python2.7/site-packages/catcher/uploaders/ajentiorg.py", line 2, in <module>
import requests
File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module>
from . import utils
File "/usr/lib/python2.7/site-packages/requests/utils.py", line 32, in <module>
from .exceptions import InvalidURL
File "/usr/lib/python2.7/site-packages/requests/exceptions.py", line 10, in <module>
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
File "/usr/lib/python2.7/site-packages/requests/packages/__init__.py", line 95, in load_module
raise ImportError("No module named '%s'" % (name,))
ImportError: No module named 'requests.packages.urllib3'


Ps.: Procurei em vários fóruns porem


  


2. Re: Instalação Ajenti

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/01/2018 - 09:58h

Não tenho problema com o Webmin.

https://support.ajenti.org/forums/5-kb/topics/?category=9290

Receita de Bolo da Vovó
https://support.ajenti.org/forums/5-kb/topics/1121-installing-on-ubuntu/


3. Re: Instalação Ajenti

Leandro Jorge Junges
leandrojunges

(usa CentOS)

Enviado em 25/01/2018 - 10:45h

Bom dia, meianoite

Eu estou usando o centOS porém acessei o site
https://support.ajenti.org/forums/5-kb/topics/1122-installing-on-centosrhel/
e segui os passos porém continua os erros, como descrevi numa tentativa falhada de concertar um erro criei outros erros.


4. Re: Instalação Ajenti

Leandro Jorge Junges
leandrojunges

(usa CentOS)

Enviado em 25/01/2018 - 11:12h

Boas novas, quanto ao comando service ajenti start eu consegui resolver através desse fórum https://github.com/certbot/certbot/issues/5104 executando o comando
pip install requests urllib3 pyOpenSSL --force --upgrade


Para resolver o resto dos problemas resolvi copiar a ideia do comando acima e executei o seguinte comando
pip install ajenti --force --upgrade

Consegui acessar o painel e já tá funcionando ufa, deu tudo certo no final.









Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts