It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confluence Performance Framework - issues

Tony Dec 06, 2018

Made all the required pre-requisite configuration and executed “Run.py” python script with python 2.7. We are getting the below error.

 

[root@esjirv20 e3]# python --version

Python 2.7.5

[root@esjirv20 e3]# ./Run.py -r confluence-users

Traceback (most recent call last):

  File "./Run.py", line 21, in <module>

    from provisioning.confluence.SetupHelper import SetupHelper

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>

    from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>

    from mechanize import ParseResponse, urlopen, urljoin

ImportError: cannot import name ParseResponse

 

 

Please help us to debug the same

2 answers

0 votes
Diego Rodrigues Atlassian Team Dec 12, 2018

Hello there Tony, thanks for coming by!
Could you clarify for us which of these pages have you visited during the preparation for testing:

Atlassian Performance Testing

Performance Testing Framework For Confluence

Bitbucket - Elastic Experiement Executor

Also are you trying to run one of the pre-defined experiments or have you created your own?
List of pre-defined experiments:

Bitbucket - Elastic Experiment Executor List

Tony Dec 13, 2018

I'm mainly focused on Confluence Performance Framework. 

Reference Link:Performance Testing Framework For Confluence

PHASE I     Environmental Setup- Completed

PHASE II   Pending tasks

Define experiments & Execute

Execute the scripts

Gather the results

Analysis the results

Reports

By Executing $ ./Orchestrate.py -e confluence-users

/bin/sh: /usr/local/bin/cloudtoken: No such file or directory

2018-11-23 23:13:57,909 - MainThread - ERROR - Unable to locate '/root/.config/cloudtoken/tokens.json' unable to load AWS credentials, trying to proceed without them.

Traceback (most recent call last):

  File "./Orchestrate.py"

 - Actions 

  • Removed all Bitbucket files from repository
  • Commented all AWS reference - /opt/elastic-experiment-executor/e3/e3.yaml
  • Removed PublicNetwork.template file from repo

In Python 2.7.5:

[root@esjirv20 e3]# python --version

Python 2.7.5

./Orchestrate.py -e confluence-users

Traceback (most recent call last):

  File "./Orchestrate.py", line 13, in <module>

    from Run import Run

 File "/opt/elastic-experiment-executor/e3/Run.py", line 21, in <module>

    from provisioning.confluence.SetupHelper import SetupHelper

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>

    from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>

    from mechanize import ParseResponse, urlopen, urljoin

ImportError: cannot import name ParseResponse

[root@esjirv20 e3]# ./Run.py -r confluence-users

Traceback (most recent call last):

  File "./Run.py", line 21, in <module>

    from provisioning.confluence.SetupHelper import SetupHelper

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/SetupHelper.py", line 9, in <module>

    from ConfluenceSetupWizard import BundleSelectionPage, ConfluenceInstance, ConfluenceSecuritySettingsPage, \

  File "/opt/elastic-experiment-executor/e3/provisioning/confluence/ConfluenceSetupWizard.py", line 1, in <module>

    from mechanize import ParseResponse, urlopen, urljoin

ImportError: cannot import name ParseResponse

 

In Python 3:

[root@hzisotv82 e3]# /usr/bin/python3 ./Orchestrate.py -e confluence-users

Traceback (most recent call last):

  File "./Orchestrate.py", line 10, in <module>

    from Analyze import run_rrd_analysis

  File "/opt/elastic-experiment-executor/e3/Analyze.py", line 5, in <module>

    from analysis.rrdtool.Analyze import graph_experiment

  File "/opt/elastic-experiment-executor/e3/analysis/rrdtool/Analyze.py", line 198, in <module>

    type=click.Choice(e3.get_runs()))

  File "/opt/elastic-experiment-executor/e3/common/E3.py", line 55, in get_runs

    run_dir = self.get_run_dir()

  File "/opt/elastic-experiment-executor/e3/common/E3.py", line 78, in get_run_dir

    return os.path.join(self.get_e3_home(), 'runs')

  File "/opt/elastic-experiment-executor/e3/common/E3.py", line 39, in get_e3_home

    e3_home = self._config.get('e3', {'home': None}).get('home')

AttributeError: 'NoneType' object has no attribute 'get'

 

Queries:

  • Performance Framework possible to use in Confluence Standalone?
  • Please let us know the exact python which needs to be used to execute the confluence performance frame work? Python 2.7.x or Python3?
  • How we can define e3.yaml?
  • Performance Framework applicable only in AWS environment ?

Regards,

Tony

It's because the methods of Mechanize have changed. I had version 0.4.2 and ParseResponse didn't exist, indeed.

Solution:

```

pip uninstall mechanize

pip install mechanize==0.2.5

```

Diego Rodrigues Atlassian Team Jun 17, 2019

Hey @Adrien Ragot (Play SQL / Requirement Yogi) , thanks for jumping into this thread! Let us know if this tip has helped you @Tony . Looking forward to your findings.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,502 views 11 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you