Yet another Accel-PPP web interface

Questions related to general functionality
s.lobanov
Posts: 29
Joined: 11 Oct 2014, 08:28
Contact:

Re: Yet another Accel-PPP web interface

Post by s.lobanov »

hashbang wrote: 30 Aug 2022, 06:51 Hi,
Another request ;)
accel-cmd -p $port -P $password pppoe show interface
summary of server
thanks
implemented in https://github.com/svlobanov/accel-web- ... 64d01aa6db

You can download .deb package from ci: https://github.com/svlobanov/accel-web- ... /346201115

this feature will released in v0.4.0

Screenshot (how to use)
Screenshot 2022-08-30 at 12.49.33.png
Screenshot 2022-08-30 at 12.49.33.png (151.88 KiB) Viewed 3795 times
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: Yet another Accel-PPP web interface

Post by hashbang »

hi
installed 3.7 and then through pip3 installed modules
screenshot link
https://ibb.co/BLv93Xz
thanks
s.lobanov
Posts: 29
Joined: 11 Oct 2014, 08:28
Contact:

Re: Yet another Accel-PPP web interface

Post by s.lobanov »

hashbang wrote: 30 Aug 2022, 13:45 hi
installed 3.7 and then through pip3 installed modules
screenshot link
https://ibb.co/BLv93Xz
thanks
Please show more lines ("systemctl status accel-web-manger -n 50")

Also please provide "python3 --version", "python3 -m pip list" and "cat `which gunicorn3`" outputs

Looks like, gunicorn3 uses python3.6, not 3.7
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: Yet another Accel-PPP web interface

Post by hashbang »

hi,
ty
accel-web-manager.service - Accel-PPP Web Manager Backend
Loaded: loaded (/var/lib/accel-web-manager/systemd/accel-web-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-08-31 16:25:57 IST; 1min 20s ago
Process: 24521 ExecStart=/usr/bin/gunicorn3 -w 4 -b 127.0.0.1:8123 accel-web-manager:app (code=exited, status=3)
Main PID: 24521 (code=exited, status=3)

Aug 31 16:25:57 hbbras03-212 systemd[1]: accel-web-manager.service: Service hold-off time over, scheduling restart.
Aug 31 16:25:57 hbbras03-212 systemd[1]: accel-web-manager.service: Scheduled restart job, restart counter is at 5.
Aug 31 16:25:57 hbbras03-212 systemd[1]: Stopped Accel-PPP Web Manager Backend.
Aug 31 16:25:57 hbbras03-212 systemd[1]: accel-web-manager.service: Start request repeated too quickly.
Aug 31 16:25:57 hbbras03-212 systemd[1]: accel-web-manager.service: Failed with result 'exit-code'.
Aug 31 16:25:57 hbbras03-212 systemd[1]: Failed to start Accel-PPP Web Manager Backend.

jdm@hbbras03-212:/etc/systemd/system$ python3 -m pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the
  • section) to disable this warning.
    asn1crypto (0.24.0)
    attrs (17.4.0)
    Automat (0.6.0)
    blinker (1.4)
    Brotli (1.0.9)
    certifi (2018.1.18)
    chardet (3.0.4)
    click (8.0.4)
    cloud-init (22.2)
    colorama (0.3.7)
    command-not-found (0.3)
    configobj (5.0.6)
    constantly (15.1.0)
    cryptography (2.1.4)
    dataclasses (0.8)
    distro-info (0.18ubuntu0.18.04.1)
    Flask (2.0.3)
    Flask-Compress (1.12)
    Flask-Cors (3.0.10)
    gunicorn (20.1.0)
    httplib2 (0.9.2)
    hyperlink (17.3.1)
    idna (2.6)
    importlib-metadata (4.8.3)
    incremental (16.10.1)
    itsdangerous (2.0.1)
    Jinja2 (3.0.3)
    jsonpatch (1.16)
    jsonpointer (1.10)
    jsonschema (2.6.0)
    keyring (10.6.0)
    keyrings.alt (3.0)
    language-selector (0.1)
    MarkupSafe (2.0.1)
    netifaces (0.10.4)
    oauthlib (2.0.6)
    packaging (21.3)
    PAM (0.4.2)
    pexpect (4.2.1)
    pip (9.0.1)
    pyasn1 (0.4.2)
    pyasn1-modules (0.2.1)
    pycrypto (2.6.1)
    pygobject (3.26.1)
    pyinotify (0.9.6)
    PyJWT (1.5.3)
    pyOpenSSL (17.5.0)
    pyparsing (3.0.9)
    pyserial (3.4)
    python-apt (1.6.5+ubuntu0.7)
    python-debian (0.1.32)
    pyxdg (0.25)
    PyYAML (3.12)
    requests (2.18.4)
    requests-unixsocket (0.1.5)
    SecretStorage (2.3.1)
    service-identity (16.0.0)
    setuptools (59.6.0)
    simplejson (3.13.2)
    six (1.16.0)
    sos (4.3)
    ssh-import-id (5.7)
    systemd-python (234)
    Twisted (17.9.0)
    typing-extensions (4.1.1)
    ubuntu-advantage-tools (27.9)
    ufw (0.36)
    unattended-upgrades (0.1)
    urllib3 (1.22)
    Werkzeug (2.0.3)
    wheel (0.30.0)
    zipp (3.6.0)
    zope.interface (4.3.2)



    cat `which gunicorn3`
    #!/usr/bin/python
    # EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==19.7.1','console_scripts','gunicorn'
    __requires__ = 'gunicorn==19.7.1'
    import re
    import sys
    from pkg_resources import load_entry_point

    if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(
    load_entry_point('gunicorn==19.7.1', 'console_scripts', 'gunicorn')()
    )
    note : gunicorn shebang line changed from python3 to python (as 3.7 is default)
    thanks
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: Yet another Accel-PPP web interface

Post by hashbang »

jdm@hbbras03-212:/etc/systemd/system$ sudo systemctl status accel-web-manager -n 50
● accel-web-manager.service - Accel-PPP Web Manager Backend
Loaded: loaded (/var/lib/accel-web-manager/systemd/accel-web-manager.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-08-31 16:38:09 IST; 4s ago
Process: 25646 ExecStart=/usr/bin/gunicorn3 -w 4 -b 127.0.0.1:8123 accel-web-manager:app (code=exited, status=1/FAILURE)
Main PID: 25646 (code=exited, status=1/FAILURE)

Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: Traceback (most recent call last):
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/bin/gunicorn3", line 11, in <module>
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: load_entry_point('gunicorn==19.7.1', 'console_scripts', 'gunicorn')()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 74, in run
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 203, in run
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: super(Application, self).run()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 72, in run
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: Arbiter(self).run()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 231, in run
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.halt(reason=inst.reason, exit_status=inst.exit_status)
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 344, in halt
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.stop()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 393, in stop
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: time.sleep(0.1)
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 244, in handle_chld
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.reap_workers()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 524, in reap_workers
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: raise HaltServer(reason, self.WORKER_BOOT_ERROR)
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>
Aug 31 16:38:07 hbbras03-212 systemd[1]: Stopped Accel-PPP Web Manager Backend.
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: [2022-08-31 16:38:07 +0530] [25634] [ERROR] Exception in worker process
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: Traceback (most recent call last):
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/arbiter.py", line 578, in spawn_worker
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: worker.init_process()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 126, in init_process
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.load_wsgi()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.wsgi = self.app.wsgi()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/base.py", line 67, in wsgi
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: self.callable = self.load()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: return self.load_wsgiapp()
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: return util.import_app(self.app_uri)
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/usr/lib/python3/dist-packages/gunicorn/util.py", line 377, in import_app
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: __import__(module)
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/var/lib/accel-web-manager/backend/accel-web-manager.py", line 13, in <module>
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: from flask_cors import CORS
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: ModuleNotFoundError: No module named 'flask_cors'
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: [2022-08-31 16:38:07 +0530] [25634] [INFO] Worker exiting (pid: 25634)
Aug 31 16:38:07 hbbras03-212 systemd[1]: Started Accel-PPP Web Manager Backend.
Aug 31 16:38:08 hbbras03-212 systemd[1]: accel-web-manager.service: Main process exited, code=exited, status=1/FAILURE
Aug 31 16:38:09 hbbras03-212 systemd[1]: accel-web-manager.service: Failed with result 'exit-code'.
Aug 31 16:38:09 hbbras03-212 systemd[1]: accel-web-manager.service: Service hold-off time over, scheduling restart.
Aug 31 16:38:09 hbbras03-212 systemd[1]: accel-web-manager.service: Scheduled restart job, restart counter is at 5.
Aug 31 16:38:09 hbbras03-212 systemd[1]: Stopped Accel-PPP Web Manager Backend.
Aug 31 16:38:09 hbbras03-212 systemd[1]: accel-web-manager.service: Start request repeated too quickly.
Aug 31 16:38:09 hbbras03-212 systemd[1]: accel-web-manager.service: Failed with result 'exit-code'.
s.lobanov
Posts: 29
Joined: 11 Oct 2014, 08:28
Contact:

Re: Yet another Accel-PPP web interface

Post by s.lobanov »

hashbang wrote: 31 Aug 2022, 11:09 Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: File "/var/lib/accel-web-manager/backend/accel-web-manager.py", line 13, in <module>
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: from flask_cors import CORS
Aug 31 16:38:12 hbbras03-212 gunicorn3[25612]: ModuleNotFoundError: No module named 'flask_cors'
this is the reason. you need to install Flask-Cors python module (it should be available to your /usr/bin/python). this should help: "/usr/bin/python -m pip install Flask-Cors"
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: Yet another Accel-PPP web interface

Post by hashbang »

hi,
accel_web.png
accel_web.png (118.75 KiB) Viewed 3752 times
in case this helps
gunicorn3.png
gunicorn3.png (177.71 KiB) Viewed 3752 times
thanks
s.lobanov
Posts: 29
Joined: 11 Oct 2014, 08:28
Contact:

Re: Yet another Accel-PPP web interface

Post by s.lobanov »

hashbang wrote: 01 Sep 2022, 11:36 hi,
if you want to manually run accel-web-manager, you should do it from /var/lib/accel-web-manager/backend folder

also, please show 'ls -1 /var/lib/accel-web-manager/backend'
hashbang
Posts: 135
Joined: 12 Jul 2015, 10:28

Re: Yet another Accel-PPP web interface

Post by hashbang »

hi,
installed on ubuntu 22.04 without any problem. I'm liking it. Awaiting for version 4. Link to deb is giving 404 error
thanks
s.lobanov
Posts: 29
Joined: 11 Oct 2014, 08:28
Contact:

Re: Yet another Accel-PPP web interface

Post by s.lobanov »

hashbang wrote: 03 Sep 2022, 10:14 hi,
installed on ubuntu 22.04 without any problem. I'm liking it. Awaiting for version 4. Link to deb is giving 404 error
thanks
great. latest-stable-lts is a good choice.
v0.4.0 has been released: https://github.com/svlobanov/accel-web- ... tag/v0.4.0
Post Reply