Your message dated Sat, 12 Oct 2024 17:06:31 +0000
with message-id <e1szfzx-00btt5...@fasolo.debian.org>
and subject line Bug#1074000: fixed in glances 4.1.2.1+dfsg-1
has caused the Debian Bug report #1074000,
regarding RESTful API feature does not work, because of missing "orjson" library
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1074000: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074000
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: glances
Version: 4.0.5+dfsg-1

I use glances with Debian testing and with API mode, so I can query glances 
parameters over the included REST interface:

glances -w --disable-webui -B 0.0.0.0

But since version 4, this seems to be broken in Debian, because there is no 
"orjson" library found (orjson python package is not available in Debian 
testing).

Steps to reproduce:

1.) start glances in RESTful API mode:
     glances -w --disable-webui -B 0.0.0.0
2.) access API, eg. status:
     curl http://localhost:61208/api/4/status    

it returns: "Internal Server Error"

and glances log-file logs the following error message:

Jun 21 10:20:47 mapout systemd[1]: Started glances.service - Glances.
Jun 21 10:20:47 mapout glances[1168]: INFO:     Started server process [1168]
Jun 21 10:20:47 mapout glances[1168]: INFO:     Waiting for application startup.
Jun 21 10:20:47 mapout glances[1168]: INFO:     Application startup complete.
Jun 21 10:20:47 mapout glances[1168]: INFO:     Uvicorn running on 
http://0.0.0.0:61208 (Press CTRL+C to quit)
Jun 21 14:23:41 mapout glances[1168]: ERROR:    Exception in ASGI application
Jun 21 14:23:41 mapout glances[1168]: Traceback (most recent call last):
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/uvicorn/protocols/http/h11_impl.py", line 407, 
in run_asgi
Jun 21 14:23:41 mapout glances[1168]:     result = await app(  # type: 
ignore[func-returns-value]
Jun 21 14:23:41 mapout glances[1168]:              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/uvicorn/middleware/proxy_headers.py", line 69, 
in __call__
Jun 21 14:23:41 mapout glances[1168]:     return await self.app(scope, receive, 
send)
Jun 21 14:23:41 mapout glances[1168]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/fastapi/applications.py", line 1054, in __call__
Jun 21 14:23:41 mapout glances[1168]:     await super().__call__(scope, 
receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/applications.py", line 123, in 
__call__
Jun 21 14:23:41 mapout glances[1168]:     await self.middleware_stack(scope, 
receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/middleware/errors.py", line 186, in 
__call__
Jun 21 14:23:41 mapout glances[1168]:     raise exc
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/middleware/errors.py", line 164, in 
__call__
Jun 21 14:23:41 mapout glances[1168]:     await self.app(scope, receive, _send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/middleware/gzip.py", line 26, in 
__call__
Jun 21 14:23:41 mapout glances[1168]:     await self.app(scope, receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/middleware/cors.py", line 85, in 
__call__
Jun 21 14:23:41 mapout glances[1168]:     await self.app(scope, receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/middleware/exceptions.py", line 65, 
in __call__
Jun 21 14:23:41 mapout glances[1168]:     await 
wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/_exception_handler.py", line 64, in 
wrapped_app
Jun 21 14:23:41 mapout glances[1168]:     raise exc
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/_exception_handler.py", line 53, in 
wrapped_app
Jun 21 14:23:41 mapout glances[1168]:     await app(scope, receive, sender)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/routing.py", line 756, in __call__
Jun 21 14:23:41 mapout glances[1168]:     await self.middleware_stack(scope, 
receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/routing.py", line 776, in app
Jun 21 14:23:41 mapout glances[1168]:     await route.handle(scope, receive, 
send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/routing.py", line 297, in handle
Jun 21 14:23:41 mapout glances[1168]:     await self.app(scope, receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/routing.py", line 77, in app
Jun 21 14:23:41 mapout glances[1168]:     await 
wrap_app_handling_exceptions(app, request)(scope, receive, send)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/_exception_handler.py", line 64, in 
wrapped_app
Jun 21 14:23:41 mapout glances[1168]:     raise exc
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/_exception_handler.py", line 53, in 
wrapped_app
Jun 21 14:23:41 mapout glances[1168]:     await app(scope, receive, sender)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/routing.py", line 72, in app
Jun 21 14:23:41 mapout glances[1168]:     response = await func(request)
Jun 21 14:23:41 mapout glances[1168]:                ^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/fastapi/routing.py", line 278, in app
Jun 21 14:23:41 mapout glances[1168]:     raw_response = await 
run_endpoint_function(
Jun 21 14:23:41 mapout glances[1168]:                    
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/fastapi/routing.py", line 193, in 
run_endpoint_function
Jun 21 14:23:41 mapout glances[1168]:     return await 
run_in_threadpool(dependant.call, **values)
Jun 21 14:23:41 mapout glances[1168]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/concurrency.py", line 42, in 
run_in_threadpool
Jun 21 14:23:41 mapout glances[1168]:     return await 
anyio.to_thread.run_sync(func, *args)
Jun 21 14:23:41 mapout glances[1168]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/anyio/to_thread.py", line 56, in run_sync
Jun 21 14:23:41 mapout glances[1168]:     return await 
get_async_backend().run_sync_in_worker_thread(
Jun 21 14:23:41 mapout glances[1168]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/anyio/_backends/_asyncio.py", line 2144, in 
run_sync_in_worker_thread
Jun 21 14:23:41 mapout glances[1168]:     return await future
Jun 21 14:23:41 mapout glances[1168]:            ^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/anyio/_backends/_asyncio.py", line 851, in run
Jun 21 14:23:41 mapout glances[1168]:     result = context.run(func, *args)
Jun 21 14:23:41 mapout glances[1168]:              ^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/glances/outputs/glances_restful_api.py", line 
361, in _api_status
Jun 21 14:23:41 mapout glances[1168]:     return ORJSONResponse({'version': 
__version__})
Jun 21 14:23:41 mapout glances[1168]:            
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/responses.py", line 184, in __init__
Jun 21 14:23:41 mapout glances[1168]:     super().__init__(content, 
status_code, headers, media_type, background)
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/starlette/responses.py", line 41, in __init__
Jun 21 14:23:41 mapout glances[1168]:     self.body = self.render(content)
Jun 21 14:23:41 mapout glances[1168]:                 ^^^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]:   File 
"/usr/lib/python3/dist-packages/fastapi/responses.py", line 45, in render
Jun 21 14:23:41 mapout glances[1168]:     assert orjson is not None, "orjson 
must be installed to use ORJSONResponse"
Jun 21 14:23:41 mapout glances[1168]:            ^^^^^^^^^^^^^^^^^^
Jun 21 14:23:41 mapout glances[1168]: AssertionError: orjson must be installed 
to use ORJSONResponse

--- End Message ---
--- Begin Message ---
Source: glances
Source-Version: 4.1.2.1+dfsg-1
Done: Daniel Echeverri <epsi...@debian.org>

We believe that the bug you reported is fixed in the latest version of
glances, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1074...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Echeverri <epsi...@debian.org> (supplier of updated glances package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 12 Oct 2024 10:27:00 -0500
Source: glances
Architecture: source
Version: 4.1.2.1+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Daniel Echeverri <epsi...@debian.org>
Changed-By: Daniel Echeverri <epsi...@debian.org>
Closes: 1074000
Changes:
 glances (4.1.2.1+dfsg-1) unstable; urgency=medium
 .
   * New upstream version 4.1.2.1+dfsg
   * Add python3-orjson and python3-fastapi in Depends. (Closes: #1074000)
   * Add Multi-Arch field in glances-doc package.
   * Add python3-paho-mqtt in Suggests field.
   * debian/patches
     + Add 007_add_shebang.diff patch to avoid lintian warning.
   * debian/copyright
     + Update with the help of the cme tool.
Checksums-Sha1:
 dec9b14f76a2ccc1e5e58f60d49e50ba316858e8 2201 glances_4.1.2.1+dfsg-1.dsc
 53464031292a872bd37cbbf2af27873b4e1f8fe6 6446117 
glances_4.1.2.1+dfsg.orig.tar.gz
 eaecb81727be08215a563a6e2fbfb0b8b1b3f7bd 12684 
glances_4.1.2.1+dfsg-1.debian.tar.xz
 6b560c0fa0d500397983da00c7a4a9109c5c4116 8484 
glances_4.1.2.1+dfsg-1_amd64.buildinfo
Checksums-Sha256:
 71505179d1bd6c80c57671664319f934e466407ebe0711b6e3db44d96e080970 2201 
glances_4.1.2.1+dfsg-1.dsc
 1922a7785d347de287324491f6a037ba37e364557539457181c39e890b40a0e5 6446117 
glances_4.1.2.1+dfsg.orig.tar.gz
 d65db1329a437f983195200787ecfd42f925a09a3cc5480bfa1bea76551528c7 12684 
glances_4.1.2.1+dfsg-1.debian.tar.xz
 7d5365d0663d0e7f676e330f81a5561bb41aae002f6f93f16563739f5f98fd1b 8484 
glances_4.1.2.1+dfsg-1_amd64.buildinfo
Files:
 f8e7a6da9864c3b14276e1f7ac1460c9 2201 utils optional glances_4.1.2.1+dfsg-1.dsc
 f399b6328fdbc88b607b9c9a36b7aa5f 6446117 utils optional 
glances_4.1.2.1+dfsg.orig.tar.gz
 7a98713875896d0a190fde91bbf3b333 12684 utils optional 
glances_4.1.2.1+dfsg-1.debian.tar.xz
 650f27bf377eb165fb7cd81e89a23464 8484 utils optional 
glances_4.1.2.1+dfsg-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEE0NCFsWnDv9lASFj6IfwpUEtSMNsFAmcKpfUTHGVwc2lsb25A
ZGViaWFuLm9yZwAKCRAh/ClQS1Iw28buD/9HBSVxopzPojkinz76+Hpg9kLMbjXV
0Zkw8rNfyE1IeMgAkdZ9ILahyv2XvlZtn9zuCXDpqAuy/peb/A07YHmNiXArOPTn
MZXFiXd0Z/OpK+PZHiXdU3iU764LyeZ8KJxC87Ku47Y/L4YIzMQOWBY4dFJaQavD
YuNij3zOrYYoP5LFp53iYX+jOPPPLaUmodsXpudbhZI0FZmC2/q3QzP98r+jToeb
VGpdiKNZdGnGNbM6HYoeQ6w/5yQIP/AujC1h3wnPw1hU+RpIWTxeF0GI+kSZ+N1b
jxGNuNka68G4+OBo1wzWFCLn14IsGBcT0lwjJq5Pv/4G6gKBLo9nd2M2wwleioxJ
HlJhGudZK/jueMZajx1Zl6sgReXzuMLnIH1u8ZbMk3YjS84g2OfaEg1OXlfCj0iP
0Ipy7DavvSj1r2OsB3DbaGNzVW0H1+XfhyFfWc5LyWF7okoOzkfIrFEXhur5COyi
wAly6Rl5HzLV4FZfn9HhR5r7rMX0xNMFTjq13vaA4OHdESIcY7es/UK4TVrB2WHb
MSy2oEvV3gErvmwCxQ3rAwNp5FzttBe5WN1AS4V4MDzn70SHe/gZgyvrAq4TwgrS
1vmQ4JQZY5CN6AtnRGltydU2aEJBCDPYX+vpPGL9AYQbm0cpzB3XUhafAA3ke5+k
WU2BdkqWnFzUJw==
=35Jo
-----END PGP SIGNATURE-----

Attachment: pgpqYxey0RcQ4.pgp
Description: PGP signature


--- End Message ---

Reply via email to