Skip to content

get_module_info returns error

Bug Report

  1. Please make sure you have selected the correct template (bug report/feature request) from the Description drop-down menu above.
  2. You can switch to either "plain text editing" or "rich text editing" as you prefer at the bottom of this text box.
  3. Please do not delete any of the below fields!
  4. Please fill out all fields below.

Summary

Ph2_ACF: v6-16 dirigent installation steps: git clone https://gitlab.cern.ch/cms_tk_ph2/dirigent.git deltavcal && cd deltavcal git checkout -b 3.3.0 3.3.0 git submodule update --init --recursive . install.sh

While running get_module_info, after entering the credentials and the following errors are observed: ERROR: ParseError Details: not well-formed (invalid token): line 34, column 113 Traceback (most recent call last): File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 739, in run self.pprint(api.folders(verbose=options.verbose)) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 417, in folders return list(self.get(["tables"], verbose=verbose).keys()) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 358, in get resp = self._action(action, headers=headers, url=callurl, data=data) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 286, in _action cookies, force_level = self.cprov(self.url, force_level) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 276, in <lambda> CernSSO().login_sign_on(url, force_level=force_level,login_type='2fa'), force_level) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 189, in login_sign_on action, form_data = self.read_form(r3) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 100, in read_form root = self.html_root(r) File "/var/software/dirigent/deltavcal/deps/resthub_dev/clients/python/src/main/python/rhapi.py", line 97, in html_root return ET.fromstring(c) File "/usr/lib64/python3.9/xml/etree/ElementTree.py", line 1347, in XML parser.feed(text) xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 34, column 113 and the process freezes.

Expected Result

Load the correct values from the database.

Actual Result

The process freezes.

Steps to Reproduce

  1. dirigent get_module_info

modules.json instruments.json dirigent.toml dirigent.log status.log logs.zip installation.log --> the prints on the terminal when I install dirigent

Checklist

Please note: depending on the issue, log files may be found either in your working directory, or in the Results_dirigent/ folder

  • I have attached my dirigent.toml, instruments.json, and modules.json files
  • I have attached the Ph2 ACF XML file
  • I have attached the dirigent.log and status.log files
  • I have zipped and attached the Ph2 ACF logs/ folder

Final steps

  1. Please assign this report to @mfranks below.
  2. Add the label "bug" in the Labels field below.
  3. Please ignore Epic, Milestone, Weight, Due date, and Iteration fields below.
Edited by Chin Zhe Tee