ajenti-letsencrypt icon indicating copy to clipboard operation
ajenti-letsencrypt copied to clipboard

request not working

Open Shtepin opened this issue 8 years ago • 9 comments

[Errno 2] No such file or directory Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 158, in handle_message self.ui.dispatch_event(update['uid'], update['event'], update['params']) File "/usr/lib/pymodules/python2.7/ajenti/ui/init.py", line 72, in dispatch_event self.root.dispatch_event(uid, event, params) File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event if child.dispatch_event(uid, event, params): File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 388, in dispatch_event getattr(self, k)(**(params or {})) File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 230, in request_button self.request_certificates() File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 198, in request_certificates p = subprocess.Popen(params, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/pymodules/python2.7/ajenti/compat.py", line 26, in Popen *args, **kwargs) File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 238, in init errread, errwrite) File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 755, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Shtepin avatar May 17 '17 18:05 Shtepin

I have the exact same problem here :

[Errno 2] No such file or directory
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 158, in handle_message
    self.ui.dispatch_event(update['uid'], update['event'], update['params'])
  File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 72, in dispatch_event
    self.root.dispatch_event(uid, event, params)
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 388, in dispatch_event
    getattr(self, k)(**(params or {}))
  File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 230, in request_button
    self.request_certificates()
  File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 198, in request_certificates
    p = subprocess.Popen(params, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/pymodules/python2.7/ajenti/compat.py", line 26, in Popen
    *args, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

ronfak avatar Jul 09 '17 10:07 ronfak

@Shtepin @ronfak I will look into this asap and come back to you with some information

herooutoftime avatar Jul 19 '17 08:07 herooutoftime

I'm having this exact same issue after clicking request,

Roboroads avatar Jul 23 '17 19:07 Roboroads

Had the same issue. It's because of that that directory is empty: letsencrypt/libs/letsencrypt.sh/

SomeDevSpace avatar Jul 27 '17 10:07 SomeDevSpace

Hello,

I have the same error on Ubuntu 16.04

07.08.2017 04:50 compat.py:20                  DEBUG [root] Popen: ['/var/lib/ajenti/plugins/letsencrypt/libs/letsencrypt.sh/letsencrypt.sh', '-c', '--force']
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/ajenti/plugins/main/main.py", line 158, in handle_message
    self.ui.dispatch_event(update['uid'], update['event'], update['params'])
  File "/usr/lib/pymodules/python2.7/ajenti/ui/__init__.py", line 72, in dispatch_event
    self.root.dispatch_event(uid, event, params)
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 382, in dispatch_event
    if child.dispatch_event(uid, event, params):
  File "/usr/lib/pymodules/python2.7/ajenti/ui/element.py", line 388, in dispatch_event
    getattr(self, k)(**(params or {}))
  File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 230, in request_button
    self.request_certificates()
  File "/var/lib/ajenti/plugins/letsencrypt/main.py", line 198, in request_certificates
    p = subprocess.Popen(params, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/pymodules/python2.7/ajenti/compat.py", line 26, in Popen
    *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 534, in __init__
    reraise(*exc_info)
  File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 503, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python2.7/dist-packages/gevent/subprocess.py", line 1253, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
07.08.2017 04:50 compat.py:20                  DEBUG [root] Popen: ['uname', '-mp']

I used the command "git clone https://github.com/herooutoftime/ajenti-letsencrypt.git letsencrypt" The certificate request from Ajenti panel is failing.

@herooutoftime Do you have any update on this?.

Thanks Abdul

abdulwahabkdi avatar Aug 07 '17 05:08 abdulwahabkdi

Hi,

someone solved this problem? Now i have de same problem here

fernandovrgas avatar Nov 09 '17 13:11 fernandovrgas

The file just doesn't exist. The fix would be to find the letsencrypt.sh script and chuck it in the folder. I have not been able to find it as of yet but only spent the last ten minutes searching for it.

fromage9747 avatar Sep 10 '18 05:09 fromage9747

I have this issue on my Debian server. Any one solved this ..? All folders exist.

JintoAntony avatar Sep 22 '18 12:09 JintoAntony

Couldn't solve it. I ended up using let's encrypt through terminal instead.

fromage9747 avatar Sep 22 '18 12:09 fromage9747