Skip to content

OCSResponseError 102 - OCS error: 102 #64

@ghost

Description

Overwiev

Smashbox Test System

  • Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)
  • Owncloudcmd version 2.1.1
  • Python 2.7.11+
  • Smashbox via Github
  • requirements.txt installed
  • Certificate imported from owncloud system
  • Network 1 (e.g. 192.168.1.2)
  • SSH key exported to owncloud system, ssh login possible without password
  • urllib3 and certifi installed
  • edited etc/smashbox.conf
oc_account_password <- random password
oc_server <- IP address
oc_root <- subfolder
oc_ssl_enabled <- SSL is used
oc_sync_cmd <- adjusted path to owncloudcmd
oc_admin_user <- admin user
oc_admin_password <- admin password (working)

Owncloud System

  • FreeBSD 10.3-RELEASE
  • Owncloud 9.0.2 (stable)
  • HTTPS configuration with official certificate
  • PHP 5.6.21
  • Apache/2.4.20
  • other network 2 (e.g. 192.167.2.54)

Problem

Used tests

  • bin/smash lib/test_basicSync.py

Expected behavior

  • Tests are working fine

Actual behavior

SUMMARY:smash.:runid: 160519-145854
SUMMARY:smash.:URL: https://smashbox:***@ [adress of owncloud server]/owncloud/remote.php/webdav/
SUMMARY:smash.:Running iteration 1
SUMMARY:smash.:running lib/test_basicSync.py in /home/test/smashbox/test_basicSync as smashbox default
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): [adress of owncloud server]
/home/test/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
/home/test/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): [adress of owncloud server]
/home/test/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
/home/test/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:821: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
  InsecureRequestWarning)
Traceback (most recent call last):
  File "python/smashbox/multiprocessing_engine.py", line 309, in <module>
    _smash_.run()
  File "python/smashbox/multiprocessing_engine.py", line 188, in run
    smashbox.utilities.setup_test()        
  File "/home/test/smashbox/python/smashbox/utilities/__init__.py", line 68, in setup_test
    reset_owncloud_account(num_test_users=config.oc_number_test_users)
  File "/home/test/smashbox/python/smashbox/utilities/__init__.py", line 111, in reset_owncloud_account
    create_owncloud_account(config.oc_account_name, config.oc_account_password)
  File "/home/test/smashbox/python/smashbox/utilities/__init__.py", line 185, in create_owncloud_account
    oc_api.create_user(username, password)
  File "/home/test/smashbox/src/pyocclient/owncloud/owncloud.py", line 946, in create_user
    self.__check_ocs_status(tree, [100])
  File "/home/test/smashbox/src/pyocclient/owncloud/owncloud.py", line 1589, in __check_ocs_status
    raise OCSResponseError(r)
owncloud.owncloud.OCSResponseError: OCS error: 102
SUMMARY:smash.:Elapsed time: 2s (0:00:02.522678)
CRITICAL:smash.:Aborting run -- non-zero exit code (1)

Maybe somebody can give me a hint or know this problem? This will be great! Another question: Will smashbox work on FreeBSD? I got a working configuration with Ubuntu Owncloud server, but not with a FreeBSD server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions