Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence Performance Framework - issues

Tony
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 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
Adrien Ragot _Requirement Yogi_
Contributor
June 7, 2019

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
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 17, 2019

Hey @Adrien Ragot _Requirement Yogi_ , thanks for jumping into this thread! Let us know if this tip has helped you @Tony . Looking forward to your findings.

0 votes
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 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
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events