Forum Replies Created
-
AuthorPosts
-
It works! Thank you so much for all your help.
Thank you!
When I run the same request on my end I get this response:
<!doctype html>
<html lang=en>
<title>500 Internal Server Error</title>Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
I attempted to make sure that the token was correct, and when I put in a token that is not correct I get this response:
{“error”:”Permission Denied. JWT Decode error”}
-
This reply was modified 2 weeks, 4 days ago by
Bjoern Sagstad.
-
This reply was modified 2 weeks, 4 days ago by
Bjoern Sagstad. Reason: easier to read hopefully
-
This reply was modified 2 weeks, 4 days ago by
Bjoern Sagstad.
-
This reply was modified 2 weeks, 4 days ago by
Bjoern Sagstad.
Thank you for responding so quickly.
Yes. I can see the data on the graphical interface, but when I make any requests locally(using the python requests library as normal or using a postman request) I get a error 500 internal server error. I don’t believe I have changed the code on my end since it last worked.
None of the requests I have made locally has worked today or yesterday. I tested various queries such as
{"query": "rate(ifHCOutOctets[5m])"}
and more advanced ones. I tested it on the jupyter.fabric-testbed too with the same error 500 result.Would you have an example snippet of code, or the curl command you have used for it to work that you could share with me and I could test it on my end, just in case something has gone wrong on my side?
July 19, 2024 at 11:27 am in reply to: MFLib question – querying the entire fabric environment #7262One follow up question for this:My question is, from the available resources method mentioned above, it’s simple to check if a rack has a specific NIC. However, I couldn’t find this information as readily using the infrastructure-metric site. Is there a query that returns that information on a node level? ie:
w2
on thewash
site has 2 cx5 NICs available.Yes. The last time I got the error that was how I got it.
Hi,
I just encountered the error again. I think it’s might be related to when I restart the notebook. So, not when I first create the slice but when I reload the slice to use it without having to delete the slice and go through all the setup again.Sites used:BRIST, MICH, RUTG
Slice name: MyMonitoredSliceTwo
Fablib version: 1.6.5
MFLib version: 1.0.40I have also attached the log to this.
Update: I wasn’t able to upload the log file so here are the logs in plain text:
06/18/2024 15:33:41 PM mflib.core INFO Using core_class_version 1.0.38 06/18/2024 15:33:41 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.----- 06/18/2024 15:33:43 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework. 06/18/2024 15:33:43 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe84:7927 06/18/2024 15:35:56 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo" 06/18/2024 15:35:56 PM mflib.mflib DEBUG Setting up Prometheus... 06/18/2024 15:35:56 PM mflib.core INFO Run create for prometheus 06/18/2024 15:35:56 PM mflib.core DEBUG Data is None. 06/18/2024 16:37:38 PM mflib.core INFO Creating mflib object. 06/18/2024 16:37:38 PM mflib.core INFO Using core_class_version 1.0.38 06/18/2024 16:37:38 PM mflib.core INFO Using core_class_version 1.0.38 06/18/2024 16:37:38 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.----- 06/18/2024 16:37:38 PM mflib.core INFO -----Set slice name MyMonitoredSliceTwo.----- 06/18/2024 16:37:41 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework. 06/18/2024 16:37:41 PM mflib.mflib INFO Inititializing slice "MyMonitoredSliceTwo" for MeasurementFramework. 06/18/2024 16:37:41 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe6e:b221 06/18/2024 16:37:41 PM mflib.mflib INFO Found meas node as meas-node at 2620:0:c80:1003:f816:3eff:fe6e:b221 06/18/2024 16:39:54 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo" 06/18/2024 16:39:54 PM mflib.mflib DEBUG Instrumentizing slice "MyMonitoredSliceTwo" 06/18/2024 16:39:54 PM mflib.mflib DEBUG Setting up Prometheus... 06/18/2024 16:39:54 PM mflib.mflib DEBUG Setting up Prometheus... 06/18/2024 16:39:54 PM mflib.core INFO Run create for prometheus 06/18/2024 16:39:54 PM mflib.core INFO Run create for prometheus 06/18/2024 16:39:54 PM mflib.core DEBUG Data is None. 06/18/2024 16:39:54 PM mflib.core DEBUG Data is None. 06/18/2024 16:42:19 PM mflib.core DEBUG STDOUT: "" 06/18/2024 16:42:19 PM mflib.core DEBUG STDOUT: "" 06/18/2024 16:42:19 PM mflib.core ERROR Unable to convert returned comand json. Traceback (most recent call last): File "/opt/conda/lib/python3.11/site-packages/mflib/core.py", line 815, in _run_service_command ret_data = json.loads(jsonstr) ^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 06/18/2024 16:42:19 PM mflib.core ERROR Unable to convert returned comand json. Traceback (most recent call last): File "/opt/conda/lib/python3.11/site-packages/mflib/core.py", line 815, in _run_service_command ret_data = json.loads(jsonstr) ^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/conda/lib/python3.11/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 06/18/2024 16:42:19 PM mflib.core DEBUG STDERR: sudo: unknown user: mfuser sudo: unable to initialize policy plugin 06/18/2024 16:42:19 PM mflib.core DEBUG STDERR: sudo: unknown user: mfuser sudo: unable to initialize policy plugin
-
This reply was modified 8 months, 1 week ago by
Bjoern Sagstad.
I just tested the prometheus system and it works fine. Thank you so much for the quick fix!
-
This reply was modified 2 weeks, 4 days ago by
-
AuthorPosts