I am doing Objective-C code analysis by using sonarqube. The configuration is as below:
SonarQube 5.4
Objective-C (Community) 5.0.0
xcode 6
xctool
OCLint 0.10.2
The OCLint doing the analysis and puting it in to the sonar-reports/oclint.xml. But nothing is coming-up on sonar dashboard.
Following is the log:
Running run-sonar.sh...
Xcode workspace file is:
Xcode project file is: demo.xcodeproj
Xcode application scheme is: demo
Xcode test scheme is:
Excluded paths from coverage are:
-n Extracting Xcode project information
+ xctool -project demo.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme demo clean
[Info] Loading settings for scheme 'demo' ... (3057 ms)
=== CLEAN ===
xcodebuild clean demo
demo / demo (Debug)
✓ Check dependencies (363 ms)
✓ Remove demo.app (73 ms)
✓ Remove demo.app.dSYM (73 ms)
✓ Remove demo.build (132 ms)
0 errored, 0 warning (526 ms)
demo / demoTests (Debug)
✓ Check dependencies (0 ms)
✓ Remove demoTests.xctest (1 ms)
✓ Remove demoTests.xctest.dSYM (1 ms)
✓ Remove demoTests.build (3 ms)
0 errored, 0 warning (5 ms)
xcodebuild build clean
demo / demo (Debug)
✓ Check dependencies (119 ms)
✓ Create product structure (0 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/bin/mkdir -p /Users/vikas/Library/Developer/Xcode/DerivedData/demo-bjvmeyunxomqaoezclqtsosfosgc/Build/Products/Debug-iphonesimulator/demo.app
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Remove demo.app.dSYM (0 ms)
✓ Remove demo.build (0 ms)
✓ Remove demo.app (1 ms)
0 errored, 0 warning (124 ms)
demo / demoTests (Debug)
✓ Check dependencies (0 ms)
✓ Create product structure (0 ms)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/bin/mkdir -p /Users/vikas/Library/Developer/Xcode/DerivedData/demo-bjvmeyunxomqaoezclqtsosfosgc/Build/Products/Debug-iphonesimulator/demoTests.xctest
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✓ Remove demoTests.xctest (0 ms)
✓ Remove demoTests.xctest.dSYM (0 ms)
✓ Remove demoTests.build (0 ms)
0 errored, 0 warning (3 ms)
** CLEAN SUCCEEDED ** (2229 ms)
+ returnValue=0
+ set +x
+ xctool -project demo.xcodeproj -sdk iphonesimulator ARCHS=i386 VALID_ARCHS=i386 CURRENT_ARCH=i386 ONLY_ACTIVE_ARCH=NO -scheme demo -reporter json-compilation-database:compile_commands.json build
+ returnValue=0
+ set +x
Skipping tests as no test scheme has been provided!
-n Running OCLint...
-n Path included in oclint analysis is: --include .*/demo/demo/..
+ oclint-json-compilation-database --include ../demo/demo/.. -- -max-priority-1 10000 -max-priority-2 10000 -max-priority-3 10000 -report-type pmd -o sonar-reports/oclint.xml
+ returnValue=0
+ set +x
-n Running SonarQube using SonarQube Runner
+ sonar-runner -X
INFO: Scanner configuration file: /usr/local/Cellar/sonar-runner/2.5/libexec/conf/sonar-runner.properties
INFO: Project configuration file: /Users/vikas/Documents/projects/demo/sonar-project.properties
INFO: SonarQube Scanner 2.5
INFO: Java 1.8.0_25 Oracle Corporation (64-bit)
INFO: Mac OS X 10.10.2 x86_64
INFO: Error stacktraces are turned on.
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/global
INFO: User cache: /Users/vikas/.sonar/cache
DEBUG: Extract sonar-runner-batch in temp...
DEBUG: Get bootstrap index...
DEBUG: Download: http://localhost:9000/batch_bootstrap/index
DEBUG: Get bootstrap completed
DEBUG: Create isolated classloader...
DEBUG: Start temp cleaning...
DEBUG: Temp cleaning done
DEBUG: Execution getVersion
DEBUG: Execution start
DEBUG: Publish global mode
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/global
INFO: Load global repositories
DEBUG: GET 200 http://localhost:9000/batch/global | time=121ms
INFO: Load global repositories (done) | time=532ms
INFO: User cache: /Users/vikas/.sonar/cache
INFO: Load plugins index
DEBUG: GET 200 http://localhost:9000/deploy/plugins/index.txt | time=6ms
INFO: Load plugins index (done) | time=7ms
DEBUG: Load plugins
DEBUG: Load plugins (done) | time=325ms
DEBUG: API compatibility mode is enabled on plugin C# [csharp] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Java [java] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin Objective-C (Community) [objectivec] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
DEBUG: API compatibility mode is enabled on plugin JavaScript [javascript] (built with API lower than 5.2)
DEBUG: Plugins:
DEBUG: * C# 4.4 (csharp)
DEBUG: * Java 3.10 (java)
DEBUG: * Git 1.0 (scmgit)
DEBUG: * Objective-C (Community) 0.5.0-SNAPSHOT (objectivec)
DEBUG: * SVN 1.2 (scmsvn)
DEBUG: * JavaScript 2.10 (javascript)
INFO: Default locale: "en_US", source code encoding: "UTF-8"
DEBUG: Work directory: /Users/vikas/Documents/projects/demo/.sonar
DEBUG: Execution getVersion
DEBUG: Execution execute
INFO: Process project properties
DEBUG: Process project properties (done) | time=3ms
DEBUG: cache: /Users/vikas/.sonar/ws_cache/http%3A%2F%2Flocalhost%3A9000/5.4/projects/OCD1
INFO: Load project repositories
DEBUG: GET 404 http://localhost:9000/batch/project.protobuf?key=OCD1 | time=56ms
DEBUG: Project repository not available - continuing without it
INFO: Load project repositories (done) | time=87ms
INFO: Apply project exclusions
DEBUG: Available languages:
DEBUG: * C# => "cs"
DEBUG: * Java => "java"
DEBUG: * Objective-C (Community) => "objectivec"
DEBUG: * JavaScript => "js"
INFO: Load quality profiles
DEBUG: GET 200 http://localhost:9000/api/qualityprofiles/search.protobuf?defaults=true | time=83ms
INFO: Load quality profiles (done) | time=294ms
INFO: Load active rules
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=cs-sonar-way-37148&p=1&ps=500 | time=43ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=java-sonar-way-46287&p=1&ps=500 | time=36ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=js-sonar-way-89672&p=1&ps=500 | time=39ms
DEBUG: GET 200 http://localhost:9000/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives&activation=true&qprofile=objectivec-oclint-09271&p=1&ps=500 | time=48ms
INFO: Load active rules (done) | time=758ms
INFO: SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.
INFO: Publish mode
DEBUG: Start recursive analysis of project modules
INFO: ------------- Scan OCDemo
INFO: Language is forced to objectivec
INFO: Load server rules
DEBUG: GET 200 http://localhost:9000/api/rules/list.protobuf | time=361ms
INFO: Load server rules (done) | time=474ms
DEBUG: Initializers :
INFO: Base dir: /Users/vikas/Documents/projects/demo
INFO: Working dir: /Users/vikas/Documents/projects/demo/.sonar
INFO: Source paths: .
INFO: Source encoding: UTF-8, default locale: en_US
INFO: Index files
DEBUG: Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/*.cs
DEBUG: Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav
DEBUG: Declared extensions of language Objective-C (Community) were converted to sonar.lang.patterns.objectivec : **/*.h,**/*.m
DEBUG: Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js
DEBUG: Language of file 'demo/AppDelegate.h' is detected to be 'objectivec'
DEBUG: Language of file 'demo/AppDelegate.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/main.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/ViewController.m' is detected to be 'objectivec'
DEBUG: Language of file 'demo/ViewController.h' is detected to be 'objectivec'
DEBUG: Language of file 'demoTests/demoTests.m' is detected to be 'objectivec'
INFO: 6 files indexed
INFO: Quality profile for objectivec: OCLint
INFO: JaCoCoSensor: JaCoCo report not found : /Users/vikas/Documents/projects/demo/target/jacoco.exec
INFO: JaCoCoItSensor: JaCoCo IT report not found: /Users/vikas/Documents/projects/demo/target/jacoco-it.exec
DEBUG: Code colorizer, supported languages: cs,objectivec
DEBUG: Sensors : Lines Sensor (wrapped) -> QProfileSensor -> Objective-C Squid Sensor -> SCM Sensor (wrapped) -> Code Colorizer Sensor (wrapped) -> CPD Sensor (wrapped)
INFO: Sensor Lines Sensor (wrapped)
INFO: Sensor Lines Sensor (wrapped) (done) | time=121ms
INFO: Sensor QProfileSensor
INFO: Sensor QProfileSensor (done) | time=5ms
INFO: Sensor Objective-C Squid Sensor
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
DEBUG: Metric lines is an internal metric computed by SonarQube. Provided value is ignored.
INFO: Sensor Objective-C Squid Sensor (done) | time=256ms
INFO: Sensor SCM Sensor (wrapped)
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: Sensor SCM Sensor (wrapped) (done) | time=0ms
INFO: Sensor Code Colorizer Sensor (wrapped)
INFO: Sensor Code Colorizer Sensor (wrapped) (done) | time=232ms
INFO: Sensor CPD Sensor (wrapped)
INFO: DefaultCpdIndexer is used for objectivec
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/AppDelegate.h, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/AppDelegate.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/ViewController.h, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/ViewController.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demo/main.m, basedir=/Users/vikas/Documents/projects/demo]
DEBUG: Populating index from [moduleKey=OCD1, relative=demoTests/demoTests.m, basedir=/Users/vikas/Documents/projects/demo]
INFO: Sensor CPD Sensor (wrapped) (done) | time=29ms
DEBUG: Detection of duplications for OCD1:demo/ViewController.m
DEBUG: Detection of duplications for OCD1:demo/AppDelegate.m
DEBUG: Detection of duplications for OCD1:demoTests/demoTests.m
INFO: Analysis report generated in 70ms, dir size=11 KB
INFO: Analysis reports compressed in 54ms, zip size=10 KB
DEBUG: Upload report
DEBUG: POST 200 http://localhost:9000/api/ce/submit?projectKey=OCD1&projectName=OCDemo | time=416ms
INFO: Analysis report uploaded in 436ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/OCD1
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AVR6giSDVdsGRifC8N_i
DEBUG: Report metadata written to /Users/vikas/Documents/projects/demo/.sonar/report-task.txt
DEBUG: Post-jobs :
INFO: Analysis report generated in /Users/vikas/Documents/projects/demo/.sonar/batch-report
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 14.414s
INFO: Final Memory: 41M/134M
INFO: ------------------------------------------------------------------------
DEBUG: Execution getVersion
DEBUG: Execution stop
+ returnValue=0
+ set +x
I got the solution.This issues because of older version of OCLint. I download the latest one from git fork. Along with this I Set the Parent of Profile Oclit-> Objective-C and it start working.
Related
Following https://github.com/tensorflow/tensorflow/tree/master/tensorflow/tools/benchmark
bazel build -c opt --crosstool_top=//external:android/crosstool --cpu=armeabi-v7a --host_crosstool_top=#bazel_tools//tools/cpp:toolchain --config monolithic tensorflow/tools/benchmark:benchmark_model
I get
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/Users/user/external_projects/tensorflow/tools/bazel.rc
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=176
ERROR: Config value monolithic is not defined in any .rc file
How to fix it?
bazel version
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/Users/user/external_projects/tensorflow/tools/bazel.rc
Build label: 0.23.1
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Mar 4 10:40:32 2019 (1551696032)
Build timestamp: 1551696032
Build timestamp as int: 1551696032
Update:
For fresh tensorflow master I get:
INFO: Analysed target //tensorflow/tools/benchmark:benchmark_model (71 packages loaded, 4664 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_user/144c1461f36cde95de1693452c235294/external/com_google_absl/absl/types/BUILD.bazel:178:1: C++ compilation of rule '#com_google_absl//absl/types:bad_optional_access' failed (Exit 1)
clang: error: unknown argument: '-m<platform_for_version_min>-version-min=10.14'
Target //tensorflow/tools/benchmark:benchmark_model failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 98.302s, Critical Path: 18.67s
INFO: 399 processes: 399 local.
FAILED: Build did NOT complete successfully
Update 2:
On Ubuntu 16 and fresh tensorflow master:
bazel version
INFO: Invocation ID: 34e40dab-96b2-45ef-b549-dab45a2738bc
Build label: 0.22.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Jan 28 12:58:08 2019 (1548680288)
Build timestamp: 1548680288
Build timestamp as int: 1548680288
Output:
WARNING: /data/user_data/external_projects/tensorflow/tensorflow/core/BUILD:1794:12: in srcs attribute of cc_library rule //tensorflow/core:android_tensorflow_lib_lite: please do not import '//tensorflow/core/distributed_runtime:server_lib.h' directly. You should either move the file to this package or depend on an appropriate rule there
INFO: Analysed target //tensorflow/tools/benchmark:benchmark_model (72 packages loaded, 4809 targets configured).
INFO: Found 1 target...
INFO: From Compiling external/snappy/snappy-sinksource.cc [for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
INFO: From Compiling external/snappy/snappy-stubs-internal.cc [for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
INFO: From Compiling external/snappy/snappy.cc [for host]:
cc1plus: warning: command line option '-Wno-implicit-function-declaration' is valid for C/ObjC but not for C++
ERROR: /home/user/.cache/bazel/_bazel_user/b4774fbdb8542988b4e302c9e073f145/external/com_google_absl/absl/container/BUILD.bazel:529:1: C++ compilation of rule '#com_google_absl//absl/container:raw_hash_set' failed (Exit 1)
Target //tensorflow/tools/benchmark:benchmark_model failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 59.522s, Critical Path: 11.24s
INFO: 456 processes: 456 local.
FAILED: Build did NOT complete successfully
Which version of the NDK are you using? I used the following command line and it worked:
$ bazel build -c opt \
--crosstool_top=//external:android/crosstool \
--cpu=armeabi-v7a \
--host_crosstool_top=#bazel_tools//tools/cpp:toolchain \
--config monolithic \
--cxxopt=-std=c++11 \
tensorflow/tools/benchmark:benchmark_model
This is with Bazel 0.23.2 and NDK r17c on https://github.com/tensorflow/tensorflow/commit/7bd86377dedaf459d22b68363a0a2d4580180379.
I'm trying out the command line runner of Selenium IDE selenium-side-runner on a .side file.
I can open this .side file in Selenium IDE and run the test suite, it can execute just fine, but when running the command line runner i get this error.
myuser#mycomputer [10:02:36] $ selenium-side-runner --debug selenium/seleniumtesting.side
debug: Could not load /Users/myuser/projects/selenium/.side.yml
debug: { capabilities: { browserName: 'chrome' },
params: {},
runId: 'a508a80619537b4ac9c18368857f84f2',
path: '/usr/local/lib/node_modules/',
server: undefined,
timeout: 15000,
baseUrl: undefined }
info: Running selenium/seleniumtesting.side
debug: jest worker args
debug: 0=--no-watchman, 1=--testMatch, 2={**/***/*.test.js,**/***.test.js}
debug: jest work opts
debug: cwd=/Users/myuser/projects/selenium/side-suite-seleniumtesting, stdio=inherit
FAIL ./BasicFullCheckoutflow.test.js (6.314s)
Basic Full Checkout flow
✕ 2. Add product to the cart (3035ms)
✓ 3. Checkout (1530ms)
● Basic Full Checkout flow › 2. Add product to the cart
StaleElementReferenceError: stale element reference: element is not attached to the page document
(Session info: chrome=73.0.3683.103)
(Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.3 x86_64)
at Object.checkLegacyResponse (../../../../../../usr/local/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/error.js:585:15)
at parseHttpResponse (../../../../../../usr/local/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:533:13)
at Executor.execute (../../../../../../usr/local/lib/node_modules/selenium-side-runner/node_modules/selenium-webdriver/lib/http.js:468:26)
UPDATE: This is only happening for chrome webdriver, when i run with firefox it went through fine
selenium-side-runner -c "browserName=firefox" selenium/seleniumtesting.side
Try in headless mode with below options:-
selenium-side-runner -c "browserName=chrome chromeOptions.args=[headless,no-sandbox,disable-dev-shm-usage]" selenium/seleniumtesting.side
When I tried to deploy the Content Runtime it failed with the error:
null_resource.singlenode (remote-exec): ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
null_resource.singlenode (remote-exec): Creating admin user: chef-admin
null_resource.singlenode: Still creating... (8m30s elapsed)
null_resource.singlenode (remote-exec): ERROR: CONFIGURATION ERROR:Specified config file /etc/opscode/pivotal.rb does not exist
Error applying plan:
I see this error when I try to create content-runtime using vSphere or Other template. What could be the cause?
This looks like an issue while installing chef. Run the command on the failed vm:
~/advanced-content-runtime/verify-installation.sh
And check the results.
The command will indicate a failure with chef, but will show you the location of the chef install log:
~/advanced-content-runtime/.advanced-runtime-config/chef-install.log
Then check the log for pivotal:
egrep pivotal ~/advanced-content-runtime/.advanced-runtime-config/chef-install.log
On a system where chef installed correctly, the result seen with the commands above are:
[2017-11-07T16:44:10-06:00] INFO: Storing updated cookbooks/private-chef/templates/default/pivotal.rb.erb in the cache.
[2017-11-07T16:44:13-06:00] INFO: Processing file[/etc/opscode/pivotal.pem] action create (private-chef::private_keys line 33)
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] created file /etc/opscode/pivotal.pem
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] updated file contents /etc/opscode/pivotal.pem
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] owner changed to 999
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] group changed to 0
[2017-11-07T16:44:13-06:00] INFO: file[/etc/opscode/pivotal.pem] mode changed to 600
[2017-11-07T16:47:51-06:00] INFO: Processing template[/etc/opscode/pivotal.rb] action create (private-chef::ctl_config line 32)
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] created file /etc/opscode/pivotal.rb
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] updated file contents /etc/opscode/pivotal.rb
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] owner changed to 0
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] group changed to 0
[2017-11-07T16:47:51-06:00] INFO: template[/etc/opscode/pivotal.rb] mode changed to 644
From review of the chef logs, you might find a failed chef config, specifically this issue: https://github.com/chef/chef-server/issues/987.
You can clean the chef install (chef-server-ctl cleanse), and launch the command line to then successfully complete the install. From CAM perspective, you can resubmit the other template create of the content runtime, and the VM will then become usable and known to CAM.
(Continuing the discussion with the same title on the datastax forum). I was able to reproduce the issue where opscenter is unable to connect to a 2.0.1 cluster, using "Use existing cluster", failing with the message "Error creating cluster: Call to /cluster-configs timed out.". It is related to having "rpc_server_type: hsha" in cassandra.yaml.
I reproduced it as follows:
(1) Installed ubuntu 12.04 (x86-64 architecture) in qemu. Updated it to the latest version of all packages. Configured it with a static ip address (192.168.77.3). Qemu networking was set up so that the host machine and the qemu virtual machine can communicate.
(2) Downloaded Sun jre-7u45-linux-x64.tar.gz and installed it. Installed libjna-java. This all done as per the datastax installing on Debian/ubuntu docs.
(3) Installed datastax cassandra 2.0.1 using the Debian package, as described in the datastax docs.
(4) Made the following changes to cassandra.yaml:
seeds: "192.168.77.3"
listen_address: 192.168.77.3
rpc_address: 192.168.77.3
rpc_server_type: hsha
NB: To see the failure, it is essential to use hsha.
(5) Stopped the cassandra instance (Debian automatically starts it when installed). Note that the init script doesn't work for stopping cassandra (this is a new problem with cassandra 2.0), so I had to kill the process by hand. This is a trap: you may think you restarted cassandra and that it has taken your configuration changes into account, only it hasn't because you are still running the old instance.
(6) Cleared out instance data: sudo rm -fr /var/lib/cassandra/*
(7) Started a new cassandra instance. Checked that nodetool could connect to it from both the virtual machine (i.e. running locally) and from the host machine.
(8) Tried to add the cluster from opscenter-free running on the host (i.e. not running on the virtual machine). opscenter version 3.2.2, ubuntu 13.10. As no cluster had been added yet, I got the "Welcome to Datastax opscenter" dialog, with "Create New Cluster" or "Use Existing cluster". Chose "Use Existing Cluster". Added the ip address (192.168.77.3) of the qemu virtual machine instance. Clicked "Save cluster". This failed with "Error creating cluster: Call to /cluster-configs timed out".
The opscenter log:
2013-10-28 11:59:04+0100 [] INFO: Log opened.
2013-10-28 11:59:04+0100 [] INFO: twistd 10.2.0 (/usr/bin/python2.7 2.7.5) starting up.
2013-10-28 11:59:04+0100 [] INFO: reactor class: twisted.internet.selectreactor.SelectReactor.
2013-10-28 11:59:04+0100 [] INFO: set uid/gid 0/0
2013-10-28 11:59:04+0100 [] INFO: Logging level set to 'info'
2013-10-28 11:59:04+0100 [] INFO: OpsCenter version: 3.2.2
2013-10-28 11:59:04+0100 [] INFO: Compatible agent version: 3.2.2
2013-10-28 11:59:04+0100 [] INFO: No clusters are configured yet, checking to see if a config migration is needed
2013-10-28 11:59:04+0100 [] INFO: Main config does not appear to include a cluster configuration, skipping migration
2013-10-28 11:59:04+0100 [] INFO: No clusters are configured
2013-10-28 11:59:04+0100 [] INFO: HTTP BASIC authentication disabled
2013-10-28 11:59:04+0100 [] INFO: Starting webserver with ssl disabled.
2013-10-28 11:59:04+0100 [] INFO: SSL agent communication enabled
2013-10-28 11:59:04+0100 [] INFO: opscenterd.WebServer.OpsCenterdWebServer starting on 8888
2013-10-28 11:59:04+0100 [] INFO: Starting factory <opscenterd.WebServer.OpsCenterdWebServer instance at 0x2f2a6c8>
2013-10-28 11:59:04+0100 [] INFO: morbid.morbid.StompFactory starting on 61619
2013-10-28 11:59:04+0100 [] INFO: Starting factory <morbid.morbid.StompFactory instance at 0x3062320>
2013-10-28 11:59:04+0100 [] INFO: Configuring agent communication with ssl support enabled.
2013-10-28 11:59:04+0100 [] INFO: morbid.morbid.StompFactory starting on 61620
2013-10-28 11:59:04+0100 [] INFO: OS Version: Linux version 3.11.0-12-generic (buildd#allspice) (gcc version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu7) ) #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013
2013-10-28 11:59:04+0100 [] INFO: CPU Info: ['2401.000', '1200.000', '1200.000', '2401.000', '1200.000', '1200.000', '1200.000', '2401.000']
2013-10-28 11:59:04+0100 [] INFO: Mem Info: 15979MB
2013-10-28 11:59:04+0100 [] INFO: Package Manager: Unknown
2013-10-28 12:03:02+0100 [] INFO: Starting factory <opscenterd.ThriftService.NoReconnectCassandraClientFactory instance at 0x31cd7e8>
2013-10-28 12:03:02+0100 [] INFO: Adding new cluster 'Test_Cluster': {u'jmx': {u'username': u'', u'password': u'', u'port': u'7199'}, 'kerberos_client_principals': {}, 'kerberos': {}, u'agents': {}, 'kerberos_hostnames': {}, 'kerberos_services': {}, u'cassandra': {u'username': u'', u'seed_hosts': u'192.168.77.3', u'api_port': u'9160', u'password': u''}}
2013-10-28 12:03:02+0100 [] INFO: Starting new cluster services for Test_Cluster
2013-10-28 12:03:02+0100 [Test_Cluster] INFO: Starting services for cluster Test_Cluster
2013-10-28 12:03:02+0100 [] INFO: Metric caching enabled with 50 points and 1000 metrics cached
2013-10-28 12:03:02+0100 [] INFO: Starting PushService
2013-10-28 12:03:02+0100 [Test_Cluster] INFO: Starting CassandraCluster service
2013-10-28 12:03:02+0100 [Test_Cluster] INFO: agent_config items: {'cassandra_log_location': '/var/log/cassandra/system.log', 'thrift_port': 9160, 'thrift_ssl_truststore': None, 'rollups300_ttl': 2419200, 'rollups86400_ttl': -1, 'jmx_port': 7199, 'metrics_ignored_solr_cores': '', 'api_port': '61621', 'metrics_enabled': 1, 'thrift_ssl_truststore_type': 'JKS', 'kerberos_use_ticket_cache': True, 'kerberos_renew_tgt': True, 'rollups60_ttl': 604800, 'cassandra_install_location': '', 'rollups7200_ttl': 31536000, 'kerberos_debug': False, 'storage_keyspace': 'OpsCenter', 'ec2_metadata_api_host': '169.254.169.254', 'provisioning': 0, 'kerberos_use_keytab': True, 'metrics_ignored_column_families': '', 'thrift_ssl_truststore_password': None, 'metrics_ignored_keyspaces': 'system, system_traces, system_auth, dse_auth, OpsCenter'}
2013-10-28 12:03:02+0100 [] INFO: Stopping factory <opscenterd.ThriftService.NoReconnectCassandraClientFactory instance at 0x31cd7e8>
This is due to a bug in Cassandra unfortunately:
https://issues.apache.org/jira/browse/CASSANDRA-6373
The workaround at the moment is to use the sync thrift server. If a workaround is implemented in OpsCenter, I will update my response.
My English is not so good. Sorry.
I have:
PHPUnit 3.7.24
Selenium 2.35.0
I am starting selenium server:
java -jar /usr/local/bin/selenium-server-standalone-2.35.0.jar
Output:
04.09.2013 13:51:15 org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
13:51:25.373 INFO - Java: Sun Microsystems Inc. 20.45-b01
13:51:25.374 INFO - OS: Linux 3.8.0-29-generic i386
13:51:25.388 INFO - v2.35.0, with Core v2.35.0. Built from revision c916b9d
13:51:25.542 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
13:51:25.543 INFO - Version Jetty/5.1.x
13:51:25.544 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
13:51:25.545 INFO - Started HttpContext[/selenium-server,/selenium-server]
13:51:25.546 INFO - Started HttpContext[/,/]
13:51:25.567 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#dda25b
13:51:25.567 INFO - Started HttpContext[/wd,/wd]
13:51:25.571 INFO - Started SocketListener on 0.0.0.0:4444
13:51:25.577 INFO - Started org.openqa.jetty.jetty.Server#b61fd1
My simple test:
public function testTitle()
{
$this->url('/');
$this->assertEquals('My title.', $this->title());
}
Next, run phpunit test with command:
phpunit --debug functional/MainPageTest.php
Output:
PHPUnit 3.7.24 by Sebastian Bergmann.
Configuration read from /home/demyan112rv/www/boo/protected/tests/phpunit.xml
Starting test 'MainPageTest::testTitle'.
E
Time: 17.59 seconds, Memory: 2.75Mb
There was 1 error:
1) MainPageTest::testTitle
PHP Warning: include(PHPUnit_Extensions_Story_TestCase.php): failed to open stream: No such file or directory in /home/demyan112rv/www/yii/YiiBase.php on line 421
PHP Warning: include(): Failed opening 'PHPUnit_Extensions_Story_TestCase.php' for inclusion (include_path='.:/home/demyan112rv/www/boo/protected/helpers:/home/demyan112rv/www/boo/protected/widgets:/home/demyan112rv/www/boo/protected/extensions/mail:/home/demyan112rv/www/boo/protected/services:/home/demyan112rv/www/boo/protected/components:/home/demyan112rv/www/boo/protected/models:/usr/share/php:/usr/share/pear') in /home/demyan112rv/www/yii/YiiBase.php on line 421
BadMethodCallException: The command http://localhost:4444/wd/hub/session/url is not recognized by the server.
/home/demyan112rv/www/yii/test/CWeb2TestCase.php:60
/home/demyan112rv/www/boo/protected/tests/functional/MainPageTest.php:11
/home/demyan112rv/www/boo/protected/tests/functional/MainPageTest.php:11
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
And in this time in selenium server a have next output:
13:55:39.438 INFO - Executing: [new session: {browserName=firefox}] at URL: /session)
13:55:39.452 INFO - Creating a new session for Capabilities [{browserName=firefox}]
13:55:56.642 INFO - Done: /session
I have error "BadMethodCallException: The command http:/ /localhost:4444/wd/hub/session/url is not recognized by the server.". This bug fixed for 2.35 in this link , but i have 2.35 and i have this error.
How to fix this problem?
Solution (i don't may answer on my question, because my rating is less than 10.
$ whereis phpunit
phpunit: /usr/bin/phpunit /usr/bin/X11/phpunit /usr/local/bin/phpunit
I have 3 path to phphunit. I don't know, it's normal or no.
When i changed command from:
phpunit --debug functional/MainPageTest.php
to
/usr/bin/phpunit --debug functional/MainPageTest.php
it's working!!!
if you have setUp your browser launch method i.e
function setUp()
{
$this->setBrowser("*firefox");
$this->setBrowserUrl("http://www.google.com/");
}
your function should look like this
public function testTitle()
{
$this->open('/');
$this->assertEquals('My title.', $this->title());
}
I've changed $this -> url('/'); to $this -> open('/');
please try now.