1. Bjoern Sagstad

Bjoern Sagstad

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Infrastructure-metrics query locally #8176
    Bjoern Sagstad
    Participant

      It works! Thank you so much for all your help.

      in reply to: Infrastructure-metrics query locally #8169
      Bjoern Sagstad
      Participant

        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.
        in reply to: Infrastructure-metrics query locally #8165
        Bjoern Sagstad
        Participant

          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?

          in reply to: MFLib question – querying the entire fabric environment #7262
          Bjoern Sagstad
          Participant
            One 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 the wash site has 2 cx5 NICs available.

            in reply to: MFLIB error in instrumentazion #7183
            Bjoern Sagstad
            Participant

              Yes. The last time I got the error that was how I got it.

              in reply to: MFLIB error in instrumentazion #7133
              Bjoern Sagstad
              Participant

                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.40

                I 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

                 

                in reply to: Mflib – Prometheus instrumentize error #7054
                Bjoern Sagstad
                Participant

                  I just tested the prometheus system and it works fine. Thank you so much for the quick fix!

                Viewing 7 posts - 1 through 7 (of 7 total)
                FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

                KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)
                FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

                KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)