Sonarqube unable to load component - linux

Im getting a error while running sonar-scanner on a (self-hosted) vsts agent. The agent (visual studio team services) is running on a kubernetes cluster (linux).
In VSTS i added the Sonarqube prepare and run analyses (retrieved via the VSTS marketplace). At the run analyses i get the following error:
2018-04-17T13:41:17.7246126Z 13:41:17.718 ERROR: Error during SonarQube Scanner execution
2018-04-17T13:41:17.7257629Z 13:41:17.718 ERROR: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
2018-04-17T13:41:17.7289820Z 13:41:17.719 ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.ActiveRules
Full verbose logging of the sonar-scanner:
2018-04-17T13:40:55.4491103Z Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
2018-04-17T13:40:55.9843800Z INFO: Scanner configuration file: /vsts/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.1.1/sonar-scanner/conf/sonar-scanner.properties
2018-04-17T13:40:55.9872383Z INFO: Project root configuration file: NONE
2018-04-17T13:40:56.0773880Z 13:40:56.071 INFO: SonarQube Scanner 3.1.0.1141
2018-04-17T13:40:56.0788506Z 13:40:56.076 INFO: Java 1.8.0_162 Oracle Corporation (64-bit)
2018-04-17T13:40:56.0805405Z 13:40:56.076 INFO: Linux 4.9.0-5-amd64 amd64
2018-04-17T13:40:56.4592573Z 13:40:56.458 DEBUG: keyStore is :
2018-04-17T13:40:56.4608365Z 13:40:56.459 DEBUG: keyStore type is : jks
2018-04-17T13:40:56.4620170Z 13:40:56.460 DEBUG: keyStore provider is :
2018-04-17T13:40:56.4631954Z 13:40:56.460 DEBUG: init keystore
2018-04-17T13:40:56.4643759Z 13:40:56.461 DEBUG: init keymanager of type SunX509
2018-04-17T13:40:56.5660597Z 13:40:56.564 DEBUG: Create: /root/.sonar/cache
2018-04-17T13:40:56.5696355Z 13:40:56.568 INFO: User cache: /root/.sonar/cache
2018-04-17T13:40:56.5709625Z 13:40:56.569 DEBUG: Create: /root/.sonar/cache/_tmp
2018-04-17T13:40:56.5752714Z 13:40:56.574 DEBUG: Extract sonar-scanner-api-batch in temp...
2018-04-17T13:40:56.5940510Z 13:40:56.592 DEBUG: Get bootstrap index...
2018-04-17T13:40:56.5952154Z 13:40:56.593 DEBUG: Download: https://<url>/batch/index
2018-04-17T13:40:56.7993378Z 13:40:56.798 DEBUG: Get bootstrap completed
2018-04-17T13:40:56.8215666Z 13:40:56.818 DEBUG: Download https://<url>/batch/file?name=sonar-scanner-engine-shaded-6.5.jar to /root/.sonar/cache/_tmp/fileCache5321971657904640201.tmp
2018-04-17T13:41:02.6399191Z 13:41:02.638 DEBUG: Create isolated classloader...
2018-04-17T13:41:02.6506592Z 13:41:02.649 DEBUG: Start temp cleaning...
2018-04-17T13:41:02.6644082Z 13:41:02.663 DEBUG: Temp cleaning done
2018-04-17T13:41:02.6656506Z 13:41:02.663 DEBUG: Execution getVersion
2018-04-17T13:41:02.6669835Z 13:41:02.665 INFO: SonarQube server 6.5.0
2018-04-17T13:41:02.6684967Z 13:41:02.665 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)
2018-04-17T13:41:02.6701596Z 13:41:02.666 DEBUG: Work directory: /vsts/agent/_work/1/s/.scannerwork
2018-04-17T13:41:02.6713389Z 13:41:02.667 DEBUG: Execution execute
2018-04-17T13:41:02.9257781Z 13:41:02.924 DEBUG: Publish global mode
2018-04-17T13:41:03.0332419Z 13:41:03.032 INFO: Load global settings
2018-04-17T13:41:03.1301467Z 13:41:03.128 DEBUG: GET 200 https://<url>/api/settings/values.protobuf | time=89ms
2018-04-17T13:41:03.1423184Z 13:41:03.140 INFO: Load global settings (done) | time=109ms
2018-04-17T13:41:03.1546880Z 13:41:03.153 INFO: User cache: /root/.sonar/cache
2018-04-17T13:41:03.3769269Z 13:41:03.375 INFO: Load plugins index
2018-04-17T13:41:03.3867504Z 13:41:03.385 DEBUG: GET 200 https://<url>/deploy/plugins/index.txt | time=9ms
2018-04-17T13:41:03.3882935Z 13:41:03.387 INFO: Load plugins index (done) | time=12ms
2018-04-17T13:41:03.3894980Z 13:41:03.388 DEBUG: Load plugins
2018-04-17T13:41:03.3919841Z 13:41:03.390 DEBUG: Download plugin sonar-csharp-plugin-5.10.1.1411.jar to /root/.sonar/cache/_tmp/fileCache5198949102678735871.tmp
2018-04-17T13:41:03.4017607Z 13:41:03.399 DEBUG: GET 200 https://<url>/deploy/plugins/csharp/sonar-csharp-plugin-5.10.1.1411.jar | time=9ms
2018-04-17T13:41:06.7030760Z 13:41:06.699 DEBUG: Download plugin sonar-python-plugin-1.8.0.1496.jar to /root/.sonar/cache/_tmp/fileCache5837697557641973805.tmp
2018-04-17T13:41:06.7140570Z 13:41:06.712 DEBUG: GET 200 https://<url>/deploy/plugins/python/sonar-python-plugin-1.8.0.1496.jar | time=11ms
2018-04-17T13:41:07.7937342Z 13:41:07.792 DEBUG: Download plugin sonar-java-plugin-4.12.0.11033.jar to /root/.sonar/cache/_tmp/fileCache3113521041013245867.tmp
2018-04-17T13:41:07.8036767Z 13:41:07.802 DEBUG: GET 200 https://<url>/deploy/plugins/java/sonar-java-plugin-4.12.0.11033.jar | time=10ms
2018-04-17T13:41:09.1704132Z 13:41:09.169 DEBUG: Download plugin sonar-scm-git-plugin-1.2.jar to /root/.sonar/cache/_tmp/fileCache3652847485025121764.tmp
2018-04-17T13:41:09.1814559Z 13:41:09.179 DEBUG: GET 200 https://<url>/deploy/plugins/scmgit/sonar-scm-git-plugin-1.2.jar | time=10ms
2018-04-17T13:41:10.1258417Z 13:41:10.124 DEBUG: Download plugin sonar-flex-plugin-2.3.jar to /root/.sonar/cache/_tmp/fileCache1763014158619511232.tmp
2018-04-17T13:41:10.1434478Z 13:41:10.141 DEBUG: GET 200 https://<url>/deploy/plugins/flex/sonar-flex-plugin-2.3.jar | time=17ms
2018-04-17T13:41:10.5811390Z 13:41:10.579 DEBUG: Download plugin sonar-xml-plugin-1.4.3.1027.jar to /root/.sonar/cache/_tmp/fileCache4278096937563691973.tmp
2018-04-17T13:41:10.5931521Z 13:41:10.591 DEBUG: GET 200 https://<url>/deploy/plugins/xml/sonar-xml-plugin-1.4.3.1027.jar | time=12ms
2018-04-17T13:41:13.0089908Z 13:41:13.006 DEBUG: Download plugin sonar-php-plugin-2.10.0.2087.jar to /root/.sonar/cache/_tmp/fileCache8869518949034818200.tmp
2018-04-17T13:41:13.0190680Z 13:41:13.017 DEBUG: GET 200 https://<url>/deploy/plugins/php/sonar-php-plugin-2.10.0.2087.jar | time=11ms
2018-04-17T13:41:13.9587794Z 13:41:13.956 DEBUG: Download plugin sonar-scm-svn-plugin-1.5.0.715.jar to /root/.sonar/cache/_tmp/fileCache8353866177366095107.tmp
2018-04-17T13:41:13.9686573Z 13:41:13.966 DEBUG: GET 200 https://<url>/deploy/plugins/scmsvn/sonar-scm-svn-plugin-1.5.0.715.jar | time=10ms
2018-04-17T13:41:15.7441037Z 13:41:15.740 DEBUG: Download plugin sonar-javascript-plugin-3.1.1.5128.jar to /root/.sonar/cache/_tmp/fileCache1134031791761299423.tmp
2018-04-17T13:41:15.7552087Z 13:41:15.753 DEBUG: GET 200 https://<url>/deploy/plugins/javascript/sonar-javascript-plugin-3.1.1.5128.jar | time=10ms
2018-04-17T13:41:16.6007888Z 13:41:16.598 DEBUG: Load plugins (done) | time=13210ms
2018-04-17T13:41:16.6656267Z 13:41:16.664 DEBUG: API compatibility mode is enabled on plugin Git [scmgit] (built with API lower than 5.2)
2018-04-17T13:41:16.8080245Z 13:41:16.806 DEBUG: API compatibility mode is enabled on plugin SVN [scmsvn] (built with API lower than 5.2)
2018-04-17T13:41:16.8782356Z 13:41:16.877 DEBUG: Plugins:
2018-04-17T13:41:16.8803313Z 13:41:16.877 DEBUG: * C# 5.10.1.1411 (csharp)
2018-04-17T13:41:16.8814834Z 13:41:16.877 DEBUG: * SonarPython 1.8.0.1496 (python)
2018-04-17T13:41:16.8826606Z 13:41:16.878 DEBUG: * SonarJava 4.12.0.11033 (java)
2018-04-17T13:41:16.8838164Z 13:41:16.878 DEBUG: * Git 1.2 (scmgit)
2018-04-17T13:41:16.8849469Z 13:41:16.878 DEBUG: * Flex 2.3 (flex)
2018-04-17T13:41:16.8861132Z 13:41:16.878 DEBUG: * SonarXML 1.4.3.1027 (xml)
2018-04-17T13:41:16.8872441Z 13:41:16.878 DEBUG: * SonarPHP 2.10.0.2087 (php)
2018-04-17T13:41:16.8884157Z 13:41:16.878 DEBUG: * SVN 1.5.0.715 (scmsvn)
2018-04-17T13:41:16.8895519Z 13:41:16.879 DEBUG: * SonarJS 3.1.1.5128 (javascript)
2018-04-17T13:41:17.2954878Z 13:41:17.294 INFO: Process project properties
2018-04-17T13:41:17.3024512Z 13:41:17.301 DEBUG: Process project properties (done) | time=7ms
2018-04-17T13:41:17.3187780Z 13:41:17.317 INFO: Load project repositories
2018-04-17T13:41:17.3400387Z 13:41:17.339 DEBUG: GET 200 https://<url>/batch/project.protobuf?key=<key> | time=20ms
2018-04-17T13:41:17.3772015Z 13:41:17.376 INFO: Load project repositories (done) | time=59ms
2018-04-17T13:41:17.4391020Z 13:41:17.438 DEBUG: Available languages:
2018-04-17T13:41:17.4407025Z 13:41:17.438 DEBUG: * C# => "cs"
2018-04-17T13:41:17.4419498Z 13:41:17.439 DEBUG: * Python => "py"
2018-04-17T13:41:17.4431469Z 13:41:17.440 DEBUG: * Java => "java"
2018-04-17T13:41:17.4447051Z 13:41:17.440 DEBUG: * Flex => "flex"
2018-04-17T13:41:17.4459538Z 13:41:17.440 DEBUG: * XML => "xml"
2018-04-17T13:41:17.4471153Z 13:41:17.440 DEBUG: * PHP => "php"
2018-04-17T13:41:17.4483109Z 13:41:17.440 DEBUG: * JavaScript => "js"
2018-04-17T13:41:17.4494550Z 13:41:17.445 INFO: Load quality profiles
2018-04-17T13:41:17.4667036Z 13:41:17.465 DEBUG: GET 200 https://<url>/api/qualityprofiles/search.protobuf?projectKey=<key> | time=20ms
2018-04-17T13:41:17.4718216Z 13:41:17.471 INFO: Load quality profiles (done) | time=26ms
2018-04-17T13:41:17.4787808Z 13:41:17.478 INFO: Load active rules
2018-04-17T13:41:17.5539598Z 13:41:17.552 DEBUG: GET 200 https://<url>/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params,actives,createdAt&activation=true&qprofile=AWLTddaUW_zM7o53qFW6&p=1&ps=500 | time=73ms
2018-04-17T13:41:17.6794770Z 13:41:17.678 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.6808969Z 13:41:17.678 INFO: EXECUTION FAILURE
2018-04-17T13:41:17.6823237Z 13:41:17.678 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.6838138Z 13:41:17.678 INFO: Total time: 21.735s
2018-04-17T13:41:17.7207625Z 13:41:17.718 INFO: Final Memory: 8M/109M
2018-04-17T13:41:17.7229316Z 13:41:17.718 INFO: ------------------------------------------------------------------------
2018-04-17T13:41:17.7246126Z 13:41:17.718 ERROR: Error during SonarQube Scanner execution
2018-04-17T13:41:17.7257629Z 13:41:17.718 ERROR: Unable to load component class org.sonar.scanner.report.ActiveRulesPublisher
2018-04-17T13:41:17.7289820Z 13:41:17.719 ERROR: Caused by: Unable to load component interface org.sonar.api.batch.rule.ActiveRules
2018-04-17T13:41:17.7301826Z 13:41:17.728 ERROR:
2018-04-17T13:41:17.7318487Z 13:41:17.728 ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
2018-04-17T13:41:17.7530568Z ##[error]/vsts/agent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/4.1.1/sonar-scanner/bin/sonar-scanner failed with return code: 1

The class org.sonar.api.batch.rule.ActiveRules is defined in sonar-plugin-api, so I think the bug is caused by a plugin.
I see you use C# 5.10.1.1411. I found this issue: ActiveRulesPublisher issue for C# 5.10.1. The reporter uses exactly the same version as you (5.10.1.1411). Steps which should solve your problem:
stop the SonarQube server
purge the {SONAR_QUBE}/data/es folder
restart the SonarQube server
relaunch the project analysis

Related

How can I connect to my GitLab omnibus LDAP server to running in a container?

I have been trying to work on this for weeks.
root#git:/# gitLab-rake gitlab:ldap:check
Checking LDAP ...
LDAP: ... Server: ldapmain
Deprecation warning: Net::LDAP::ConnectionRefused will be deprecated. Use Errno::ECONNREFUSED instead.
Deprecation warning: Net::LDAP::ConnectionRefused will be deprecated. Use Errno::ECONNREFUSED instead.
Could not connect to the LDAP server: Connection refused - connect(2) for 172.17.0.2:389
Checking LDAP ... Finished
These are the /etc/gitlab/gitlab.rb files:
gitlab_rails['ldap_enabled'] = true
# gitlab_rails['prevent_ldap_sign_in'] = false
###! **remember to close this block with 'EOS' below**
gitlab_rails['ldap_servers'] = YAML.load <<-'EOS'
main: # 'main' is the GitLab 'provider ID' of this LDAP server
label: 'GitLab LDAP'
host: 'git.example.com'
port: 389
uid: 'sAMAccountName'
bind_dn: 'cn=admin,dc=example,dc=com'
password: 'example'
encryption: 'plain' # "start_tls" or "simple_tls" or "plain"
verify_certificates: false
active_directory: true
allow_username_or_email_login: true
lowercase_usernames: false
block_auto_created_users: false
base: 'OU=users,dc=example,dc=com'
user_filter: ''
# ## EE only
group_base: 'cn=my_group,ou=groups,dc=example,dc=com'
admin_group: 'my_admin_group'
EOS
Is there any work around this error? Thanks in advance

Installing TMUX in Microsoft Windows Server 2016 Standard Edition and issues with MSYS2

I have a Microsoft Windows Server 2016 Standard Edition VM in which I need to schedule a job which should run every 3 or 5 minutes. This job actually will check for the files in Windows server location Source: ex: D:\Feeds and move the files to Linux Server Destination: /data/feeds/
I have installed the Git bash and scheduled a bash script to run as loop which does the job, but it's getting failed in between with the below error
0 [main] sh 54094 dofork: child -1 - CreateProcessW failed for 'C:\Program Files\Git\usr\bin\sh.exe', errno 13
feed.sh: fork: Permission denied
feed.sh: line 6: /usr/bin/ls: Permission denied
I have to again the start the feed.sh script to move the files from Source (Windows server) to Destination (Linux SFTP server).
In order to fix this, I tried installing TMUX to schedule the script in tmux, for which I tried installing MSYS2 packages, I have installed the same but still vi, sftp commands are not working. I have tried updating the packages but getting the below timeout error.
# pacman -S git
resolving dependencies...
looking for conflicting packages...
Packages (31) expat-2.2.9-1 heimdal-7.7.0-1 openssh-8.3p1-1 perl-Authen-SASL-2.16-2 perl-Convert-BinHex-1.125-1 perl-Encode-Locale-1.05-1 perl-Error-0.17029-1
perl-File-Listing-6.04-2 perl-HTML-Parser-3.72-4 perl-HTML-Tagset-3.20-2 perl-HTTP-Cookies-6.08-1 perl-HTTP-Daemon-6.10-1 perl-HTTP-Date-6.05-1
perl-HTTP-Message-6.25-1 perl-HTTP-Negotiate-6.01-2 perl-IO-Socket-SSL-2.068-1 perl-IO-Stringy-2.113-1 perl-LWP-MediaTypes-6.04-1 perl-MIME-tools-5.509-1
perl-MailTools-2.21-1 perl-Net-HTTP-6.19-1 perl-Net-SMTP-SSL-1.04-1 perl-Net-SSLeay-1.88-1 perl-TermReadKey-2.38-1 perl-TimeDate-2.33-1 perl-Try-Tiny-0.30-1
perl-URI-1.76-1 perl-WWW-RobotRules-6.02-2 perl-libwww-6.46-1 vim-8.2.0869-1 git-2.27.0-1
Total Download Size: 16.68 MiB
Total Installed Size: 94.47 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'expat-2.2.9-1-x86_64.pkg.tar.xz' from repo.msys2.org : Connection timed out after 10016 milliseconds
error: failed retrieving file 'expat-2.2.9-1-x86_64.pkg.tar.xz' from sourceforge.net : Connection timed out after 10002 milliseconds
Debug output:
# pacman -Syuv --debug
debug: pacman v5.2.1 - libalpm v12.0.1
debug: config: attempting to read file /etc/pacman.conf
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'mingw32'
debug: config file /etc/pacman.conf, line 72: including /etc/pacman.d/mirrorlist.mingw32
debug: config: new section 'mingw64'
debug: config file /etc/pacman.conf, line 75: including /etc/pacman.d/mirrorlist.mingw64
debug: config: new section 'msys'
debug: config file /etc/pacman.conf, line 78: including /etc/pacman.d/mirrorlist.msys
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: registering sync database 'mingw32'
debug: database path for tree mingw32 set to /var/lib/pacman/sync/mingw32.db
debug: GPGME version: 1.13.1-unknown
debug: GPGME engine info: file=/usr/bin/gpg, home=/etc/pacman.d/gnupg/
debug: checking signature for /var/lib/pacman/sync/mingw32.db
debug: 1 signatures returned
debug: fingerprint: AD351C50AE085775EB59333B5F92EFC1A47D45A1
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1593429151
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: AD351C50AE085775EB59333B5F92EFC1A47D45A1, Alexey Pavlov (Alexpux) <alexpux#gmail.com>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for mingw32 repository
debug: adding new server URL to database 'mingw32': http://repo.msys2.org/mingw/i686
debug: adding new server URL to database 'mingw32': https://sourceforge.net/projects/msys2/files/REPOS/MINGW/i686
debug: registering sync database 'mingw64'
debug: database path for tree mingw64 set to /var/lib/pacman/sync/mingw64.db
debug: checking signature for /var/lib/pacman/sync/mingw64.db
debug: 1 signatures returned
debug: fingerprint: AD351C50AE085775EB59333B5F92EFC1A47D45A1
debug: summary: valid
debug: summary: green
debug: status: Success
debug: timestamp: 1593425462
debug: exp_timestamp: 0
debug: validity: full; reason: Success
debug: key: AD351C50AE085775EB59333B5F92EFC1A47D45A1, Alexey Pavlov (Alexpux) <alexpux#gmail.com>, owner_trust unknown, disabled 0
debug: signature is valid
debug: signature is fully trusted
debug: setting usage of 15 for mingw64 repository
debug: adding new server URL to database 'mingw64': http://repo.msys2.org/mingw/x86_64
debug: adding new server URL to database 'mingw64': https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64
Root : /
Conf File : /etc/pacman.conf
DB Path : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/
Hook Dirs : /usr/share/libalpm/hooks/ /etc/pacman.d/hooks/
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
GPG Dir : /etc/pacman.d/gnupg/
Targets : None
:: Synchronizing package databases...
debug: url: http://repo.msys2.org/mingw/i686/mingw32.db
debug: maxsize: 26214400
debug: using time condition: 1593429151
debug: opened tempfile for download: /var/lib/pacman/sync/mingw32.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'mingw32.db' from repo.msys2.org : Connection timed out after 10018 milliseconds
debug: url: https://sourceforge.net/projects/msys2/files/REPOS/MINGW/i686/mingw32.db
debug: maxsize: 26214400
debug: using time condition: 1593429151
debug: opened tempfile for download: /var/lib/pacman/sync/mingw32.db.part (wb)
debug: curl returned error 28 from transfer
error: failed retrieving file 'mingw32.db' from sourceforge.net : Connection timed out after 10000 milliseconds
Is there any other way to schedule the bash script in powershell?

No matching host key when connecting to sftp.webtrends.com

I am trying to use Firebase Cloud Functions to send a file to webtrends ftp server, but I have encountered a problem I can not get past. Since I use Firebase Cloud Functions my function is running from a nodejs server. I am using this npm package: https://www.npmjs.com/package/ssh2-sftp-client.
After reading online and interpreting the debug log I understand the problem to be that the server uses a deprecated cryptation algorithm (ssh-dss). I read here https://www.openssh.com/legacy.html that ssh-dss is legacy and therefore not supported by ssh2.
Most of the other solutions I have found tell me to configure the ssh config, but I do not have access to the remote in this case and can not configure it.
Here is the code I am using to connect:
const Client = require('ssh2-sftp-client');
const sftp = new Client();
sftp.connect({
host: 'sftp.webtrends.com',
port: '****', // omitted
username: '****', // omitted
password: '****', // omitted
algorithms: {
serverHostKeys: ['ssh-dss'],
},
});
And here is the debug log:
DEBUG: Local ident: 'SSH-2.0-ssh2js0.1.20'
DEBUG: Client: Trying sftp.webtrends.com on port **** ...
DEBUG: Client: Connected
DEBUG: Parser: IN_INIT
DEBUG: Parser: IN_GREETING
DEBUG: Parser: IN_HEADER
DEBUG: Remote ident: 'SSH-2.0-1.82_sshlib GlobalSCAPE'
DEBUG: Parser: IN_PACKET
DEBUG: Parser: IN_PACKETBEFORE (expecting 8)
DEBUG: Parser: IN_PACKETDATA
DEBUG: Parser: IN_PACKETDATAAFTER, packet: KEXINIT
DEBUG: Comparing KEXINITs ...
DEBUG: (remote) KEX algorithms: diffie-hellman-group14-sha1,diffie-hellman-
group-exchange-sha1,diffie-hellman-group1-sha1
DEBUG: (local) KEX algorithms: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-
sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
DEBUG: (local) Host key formats: ssh-rsa,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
DEBUG: Outgoing: Writing KEXINIT
DEBUG: Parser: pktLen:484,padLen:11,remainLen:480
DEBUG: Outgoing: Writing DISCONNECT (KEY_EXCHANGE_FAILED)
DEBUG: KEX algorithm: diffie-hellman-group14-sha1
DEBUG: (remote) Host key formats: ssh-dss
DEBUG: No matching host key format
There is a typo in your config options. Use these settings as described in the docs and it might work:
algorithms: {
serverHostKey: ['ssh-dss'], // serverHostKey, without the 's'
},
So, if you cannot configure the server, and ssh2-sftp-client says they don't support ssh-dss, your only option is to not use ssh2-sftp-client but another package that supports ssh-dss.
Doing a quick Google search for nodejs ftp client "ssh-dss", it should not be that difficult to find one that supports ssh-dss, for example yocto-sftp

Why does web-component-tester time out in flight mode?

I've got a basic web-component-tester project which works fine when I'm online.
If I switch to flight mode, it seems to fail to connect to Selenium, and instead gives a largely useless error message after about 60s delay: "Error: Unable to connect to selenium".
Edit 2: I've narrowed the problem down in the following question, but I'd still like to know how to avoid it with web-component-tester:
Why does NodeJS request() fail on localhost in flight mode, but not 127.0.0.1? (Windows 10)
Edit: After some digging, it's something to do with DNS resolver somewhere beneath selenium-standalone failing while in flight mode, and not a lot to do with web-component-tester.
After inserting some debug logging into selenium-standalone, I tracked down the failure point to the check for whether Selenium is running. When online, this works fine, but when offline I get:
// check-started.js, logging the error inside the request() call:
Error: getaddrinfo ENOENT localhost:60435
at Object.exports._errnoException (util.js:1022:11)
at errnoException (dns.js:33:15)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
The following seem to describe similar situations, but I don't see how to persuade selenium-standalone nor web-component-tester to specify an IP address family to even try the suggested solutions:
https://github.com/nodejs/node/issues/4825
https://github.com/nodejs/node/issues/10290
node.js http.request and ipv6 vs ipv4
My original text is below.
The full error log and wct.conf.json are below. I can supply package.json and bower.json too if it would help.
I'm on Windows 10.
wct.conf.json:
{
"verbose": true,
"plugins": {
"local": {
"skipSeleniumInstall": true,
"browsers": ["chrome"]
},
"sauce": {
"disabled": true
}
}
}
error log:
> color-curve#0.0.1 test C:\Users\Dave\projects\infinity-components\color-curve
> standard "**/*.html" && wct -l chrome
step: loadPlugins
step: configure
hook: configure
Expanded local browsers: [ 'chrome' ] into capabilities: [ { browserName: 'chrome',
version: '60',
chromeOptions:
{ binary: 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
args: [Object] } } ]
configuration: { suites: [ 'test/index.html' ],
verbose: true,
quiet: false,
expanded: false,
testTimeout: 90000,
persistent: false,
extraScripts: [],
clientOptions: { root: '/components/', verbose: true },
compile: 'auto',
activeBrowsers: [ { browserName: 'chrome', version: '60', chromeOptions: [Object] } ],
browserOptions: {},
plugins:
{ local:
{ disabled: false,
skipSeleniumInstall: true,
browsers: [Object],
seleniumArgs: [] },
sauce: { disabled: true } },
registerHooks: [Function: registerHooks],
enforceJsonConf: false,
webserver:
{ hostname: 'localhost',
_generatedIndexContent: '<!doctype html>\n<html>\n <head>\n <meta charset="utf-8">\n <script>WCT = {"root":"/components/","verbose":true};</script>\n <script>window.__generatedByWct = true;</script>\n <script src="../web-component-tester/browser.js"></script>\n\n <script src="../web-component-tester/data/a11ySuite.js"></script>\n</head>\n <body>\n <script>\n WCT.loadSuites(["test/index.html"]);\n </script>\n </body>\n</html>\n' },
root: 'C:\\Users\\Dave\\projects\\infinity-components\\color-curve',
_: [],
origSuites: [ 'test/' ] }
hook: prepare
hook: prepare:selenium
Starting Selenium server for local browsers
INFO - Selenium build info: version: '3.0.1', revision: '1969d75'
INFO - Launching a standalone Selenium Server
INFO::main: Logging initialized #222ms
INFO - Driver class not found: com.opera.core.systems.OperaDriver
INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:
Unable to create new instances on this machine.
INFO - Driver class not found: com.opera.core.systems.OperaDriver
INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN10
INFO:osjs.Server:main: jetty-9.2.15.v20160210
INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler#100fc185{/,null,AVAILABLE}
INFO:osjs.ServerConnector:main: Started ServerConnector#2922e2bb{HTTP/1.1}{0.0.0.0:51126}
INFO:osjs.Server:main: Started #419ms
INFO - Selenium Server is up and running
INFO - Selenium build info: version: '3.0.1', revision: '1969d75'
INFO - Launching a standalone Selenium Server
INFO::main: Logging initialized #222ms
INFO - Driver class not found: com.opera.core.systems.OperaDriver
INFO - Driver provider com.opera.core.systems.OperaDriver registration is skipped:
Unable to create new instances on this machine.
INFO - Driver class not found: com.opera.core.systems.OperaDriver
INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN10
INFO:osjs.Server:main: jetty-9.2.15.v20160210
INFO:osjsh.ContextHandler:main: Started o.s.j.s.ServletContextHandler#100fc185{/,null,AVAILABLE}
INFO:osjs.ServerConnector:main: Started ServerConnector#2922e2bb{HTTP/1.1}{0.0.0.0:51126}
INFO:osjs.Server:main: Started #419ms
INFO - Selenium Server is up and running
Error: Unable to connect to selenium

Intern sends headers data into address bar

Every time I run ./node_modules/.bin/intern-runner config=tests/intern
internjs sends some junk data into browser address bar and tries to execute it.
Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22left%3A%200%3B%20position%3A%20absolute%3B%20top%3A%20-1000px%3B%22%3Ea%3C%2Fdiv%3E])
???
And then it finally get the valid url where it can continue with testing Suite.
10:36:14.837 INFO - Executing: [get: http://localhost:9000/index.html])
I've tested it on firefox 27, 32, 38.2 , on Linux box and windows 7 + cygwin.
Everywhere I found the same behaviour. It doesn't appear to be a problem with selenium (tried grid config, standalone ) or the driver itself.
My config is mostly from https://github.com/theintern/intern-tutorial
This behaviour causes problems with IE (11 in my case) as it's not able to get pass the first junk request and gets stuck at it.
10:35:04.654 INFO - Launching a standalone Selenium Server
10:35:04.815 INFO - Java: Oracle Corporation 24.85-b03
10:35:04.815 INFO - OS: Linux 3.10.0-229.11.1.el7.x86_64 amd64
10:35:04.854 INFO - v2.47.1, with Core v2.47.1. Built from revision 411b314
10:35:05.207 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{platform=WINDOWS, ensureCleanSession=true, browserName=internet explorer, version=}] does not match the current platform LINUX
10:35:05.208 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{platform=WINDOWS, browserName=MicrosoftEdge, version=}] does not match the current platform LINUX
10:35:05.208 INFO - Driver class not found: com.opera.core.systems.OperaDriver
10:35:05.208 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
10:35:05.660 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
10:35:05.660 INFO - Selenium Server is up and running
10:36:08.181 INFO - Executing: [new session: Capabilities [{idle-timeout=60, platform=LINUX, browserName=firefox, browserstack.selenium_version=2.45.0, name=tests/intern, version=38.2}]])
10:36:08.190 INFO - Creating a new session for Capabilities [{idle-timeout=60, platform=LINUX, browserName=firefox, browserstack.selenium_version=2.45.0, name=tests/intern, version=38.2}]
10:36:13.368 INFO - Done: [new session: Capabilities [{idle-timeout=60, platform=LINUX, browserName=firefox, browserstack.selenium_version=2.45.0, name=tests/intern, version=38.2}]]
10:36:13.378 INFO - Executing: [get: about:blank])
10:36:13.412 INFO - Done: [get: about:blank]
10:36:13.420 INFO - Executing: [get local storage size])
10:36:13.422 INFO - Executing: [get location context])
10:36:13.425 INFO - Executing: [get application cache status])
10:36:13.427 INFO - Executing: [take screenshot])
10:36:13.428 INFO - Executing: [execute async script: arguments[0](true);, []])
10:36:13.435 WARN - Exception thrown
org.openqa.selenium.UnsupportedCommandException: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.LocationContext
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'xxxxx', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.server.handler.html5.Utils.convert(Utils.java:91)
at org.openqa.selenium.remote.server.handler.html5.Utils.getLocationContext(Utils.java:57)
at org.openqa.selenium.remote.server.handler.html5.GetLocationContext.call(GetLocationContext.java:32)
at org.openqa.selenium.remote.server.handler.html5.GetLocationContext.call(GetLocationContext.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
10:36:13.440 WARN - Exception: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.LocationContext
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
10:36:13.438 WARN - Exception thrown
org.openqa.selenium.UnsupportedCommandException: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.WebStorage
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.server.handler.html5.Utils.convert(Utils.java:91)
at org.openqa.selenium.remote.server.handler.html5.Utils.getWebStorage(Utils.java:62)
at org.openqa.selenium.remote.server.handler.html5.GetLocalStorageSize.call(GetLocalStorageSize.java:31)
at org.openqa.selenium.remote.server.handler.html5.GetLocalStorageSize.call(GetLocalStorageSize.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
10:36:13.467 WARN - Exception: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.WebStorage
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
10:36:13.437 WARN - Exception thrown
org.openqa.selenium.UnsupportedCommandException: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.ApplicationCache
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.server.handler.html5.Utils.convert(Utils.java:91)
at org.openqa.selenium.remote.server.handler.html5.Utils.getApplicationCache(Utils.java:47)
at org.openqa.selenium.remote.server.handler.html5.GetAppCacheStatus.call(GetAppCacheStatus.java:32)
at org.openqa.selenium.remote.server.handler.html5.GetAppCacheStatus.call(GetAppCacheStatus.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
10:36:13.487 WARN - Exception: driver (org.openqa.selenium.firefox.FirefoxDriver) does not support org.openqa.selenium.html5.ApplicationCache
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
10:36:13.503 INFO - Executing: [get window size])
10:36:13.504 INFO - Executing: [doubleclick: no args])
10:36:13.505 INFO - Executing: [Long press: null])
10:36:13.513 INFO - Done: [take screenshot]
10:36:13.539 INFO - Done: [execute async script: arguments[0](true);, []]
10:36:13.557 INFO - Done: [get window size]
10:36:13.563 INFO - Executing: [set window size])
10:36:13.572 WARN - Exception thrown
java.lang.UnsupportedOperationException: Underlying driver does not implement advanced user interactions yet.
at org.openqa.selenium.support.events.EventFiringWebDriver.getTouch(EventFiringWebDriver.java:312)
at org.openqa.selenium.remote.server.handler.interactions.touch.LongPressOnElement.call(LongPressOnElement.java:41)
at org.openqa.selenium.remote.server.handler.interactions.touch.LongPressOnElement.call(LongPressOnElement.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
10:36:13.574 WARN - Exception: Underlying driver does not implement advanced user interactions yet.
10:36:13.574 WARN - Exception thrown
org.openqa.selenium.WebDriverException: [JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]'[JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]' when calling method: [wdIMouse::doubleClick]
Command duration or timeout: 12 milliseconds
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Session ID: 6ba8c75c-021b-4a46-8368-6dd3c0487142
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=LINUX, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=38.2.1}]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:595)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:618)
at org.openqa.selenium.remote.RemoteExecuteMethod.execute(RemoteExecuteMethod.java:33)
at org.openqa.selenium.remote.RemoteMouse.doubleClick(RemoteMouse.java:71)
at org.openqa.selenium.support.events.internal.EventFiringMouse.doubleClick(EventFiringMouse.java:46)
at org.openqa.selenium.remote.server.handler.interactions.DoubleClickInSession.call(DoubleClickInSession.java:34)
at org.openqa.selenium.remote.server.handler.interactions.DoubleClickInSession.call(DoubleClickInSession.java:1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.openqa.selenium.WebDriverException: [JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]'[JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]' when calling method: [wdIMouse::doubleClick]
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: '-------', ip: '-------', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
at <anonymous class>.FirefoxDriver.prototype.mouseDoubleClick(file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/driver-component.js:11092)
at <anonymous class>.DelayedCommand.prototype.executeInternal_/h(file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/command-processor.js:12643)
at <anonymous class>.DelayedCommand.prototype.executeInternal_(file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/command-processor.js:12648)
at <anonymous class>.DelayedCommand.prototype.execute/<(file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/command-processor.js:12590)
10:36:13.578 WARN - Exception: [JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]'[JavaScript Error: "Argument to isShown must be of type Element" {file: "file:///tmp/anonymous6679311816744638276webdriver-profile/extensions/fxdriver#googlecode.com/components/synthetic-mouse.js" line: 8547}]' when calling method: [wdIMouse::doubleClick]
Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 03:03:16'
System info: host: 'xxxxx', ip: 'xxxxxxxxx', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-229.11.1.el7.x86_64', java.version: '1.7.0_85'
Driver info: driver.version: unknown
10:36:13.597 INFO - Done: [set window size]
10:36:13.601 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Ctitle%3Ea%3C%2Ftitle%3E])
10:36:13.650 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Ctitle%3Ea%3C%2Ftitle%3E]
10:36:13.655 INFO - Executing: [get title])
10:36:13.664 INFO - Done: [get title]
10:36:13.669 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cstyle%3E%23a%7Bwidth%3A8px%3Bheight%3A8px%3B-ms-transform%3Ascale(0.5)%3B-moz-transform%3Ascale(0.5)%3B-webkit-transform%3Ascale(0.5)%3Btransform%3Ascale(0.5)%3B%7D%3C%2Fstyle%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E])
10:36:13.691 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cstyle%3E%23a%7Bwidth%3A8px%3Bheight%3A8px%3B-ms-transform%3Ascale(0.5)%3B-moz-transform%3Ascale(0.5)%3B-webkit-transform%3Ascale(0.5)%3Btransform%3Ascale(0.5)%3B%7D%3C%2Fstyle%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E]
10:36:13.699 INFO - Executing: [execute script: return (function () {
var bbox = document.getElementById('a').getBoundingClientRect();
return bbox.right - bbox.left === 4;
}).apply(this, arguments);, []])
10:36:13.707 INFO - Done: [execute script: return (function () {
var bbox = document.getElementById('a').getBoundingClientRect();
return bbox.right - bbox.left === 4;
}).apply(this, arguments);, []]
10:36:13.711 INFO - Executing: [get: about:blank])
10:36:13.734 INFO - Done: [get: about:blank]
10:36:13.742 INFO - Executing: [fetching available log types])
10:36:13.744 INFO - Executing: [find element: By.tagName: html])
10:36:13.746 INFO - Executing: [find element: By.tagName: html])
10:36:13.751 INFO - Done: [fetching available log types]
10:36:13.795 INFO - Done: [find element: By.tagName: html]
10:36:13.801 INFO - Executing: [tag name: 0 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> tag name: html]])
10:36:13.803 INFO - Done: [find element: By.tagName: html]
10:36:13.811 INFO - Done: [tag name: 0 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> tag name: html]]
10:36:13.812 INFO - Executing: [get element attribute: 0 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> tag name: html], nonexisting])
10:36:13.819 INFO - Done: [get element attribute: 0 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> tag name: html], nonexisting]
10:36:13.823 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E])
10:36:13.847 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E]
10:36:13.851 INFO - Executing: [execute script: return document.getElementById("a");, []])
10:36:13.859 INFO - Done: [execute script: return document.getElementById("a");, []]
10:36:13.862 INFO - Executing: [tag name: 1 [org.openqa.selenium.remote.RemoteWebElement#294ad511 -> unknown locator]])
10:36:13.869 INFO - Done: [tag name: 1 [org.openqa.selenium.remote.RemoteWebElement#294ad511 -> unknown locator]]
10:36:13.873 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22opacity%3A%20.1%3B%22%3Ea%3C%2Fdiv%3E])
10:36:13.898 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22opacity%3A%20.1%3B%22%3Ea%3C%2Fdiv%3E]
10:36:13.902 INFO - Executing: [execute script: var o = document.getElementById("a").style.opacity; return o && o.charAt(0) === "0";, []])
10:36:13.910 INFO - Done: [execute script: var o = document.getElementById("a").style.opacity; return o && o.charAt(0) === "0";, []]
10:36:13.913 INFO - Executing: [execute script: document.getElementById("a").style.opacity = "0";, []])
10:36:13.919 INFO - Done: [execute script: document.getElementById("a").style.opacity = "0";, []]
10:36:13.923 INFO - Executing: [find element: By.id: a])
10:36:13.929 INFO - Done: [find element: By.id: a]
10:36:13.936 INFO - Executing: [is displayed: 2 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]])
10:36:13.943 INFO - Done: [is displayed: 2 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]]
10:36:13.949 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22left%3A%200%3B%20position%3A%20absolute%3B%20top%3A%20-1000px%3B%22%3Ea%3C%2Fdiv%3E])
10:36:13.970 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22left%3A%200%3B%20position%3A%20absolute%3B%20top%3A%20-1000px%3B%22%3Ea%3C%2Fdiv%3E]
10:36:13.974 INFO - Executing: [find element: By.id: a])
10:36:13.980 INFO - Done: [find element: By.id: a]
10:36:13.984 INFO - Executing: [is displayed: 3 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]])
10:36:13.995 INFO - Done: [is displayed: 3 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]]
10:36:13.999 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cform%20method%3D%22get%22%20action%3D%22about%3Ablank%22%3E%3Cinput%20id%3D%22a%22%20type%3D%22submit%22%20name%3D%22a%22%20value%3D%22a%22%3E%3C%2Fform%3E])
10:36:14.023 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cform%20method%3D%22get%22%20action%3D%22about%3Ablank%22%3E%3Cinput%20id%3D%22a%22%20type%3D%22submit%22%20name%3D%22a%22%20value%3D%22a%22%3E%3C%2Fform%3E]
10:36:14.031 INFO - Executing: [find element: By.id: a])
10:36:14.045 INFO - Done: [find element: By.id: a]
10:36:14.050 INFO - Executing: [submit: 4 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]])
10:36:14.069 INFO - Done: [submit: 4 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]]
10:36:14.072 INFO - Executing: [get current url])
10:36:14.079 INFO - Done: [get current url]
10:36:14.084 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22margin%3A%203000px%3B%22%3E%3C%2Fdiv%3E])
10:36:14.105 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cdiv%20id%3D%22a%22%20style%3D%22margin%3A%203000px%3B%22%3E%3C%2Fdiv%3E]
10:36:14.109 INFO - Executing: [find element: By.id: a])
10:36:14.122 INFO - Done: [find element: By.id: a]
10:36:14.126 INFO - Executing: [get location: 5 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]])
10:36:14.135 INFO - Done: [get location: 5 [[FirefoxDriver: firefox on LINUX (6ba8c75c-021b-4a46-8368-6dd3c0487142)] -> id: a]]
10:36:14.140 INFO - Executing: [get: about:blank?1])
10:36:14.165 INFO - Done: [get: about:blank?1]
10:36:14.170 INFO - Executing: [refresh])
10:36:14.191 INFO - Done: [refresh]
10:36:14.200 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cscript%3Ecounter%20%3D%200%3B%20var%20d%20%3D%20document%3B%20d.onclick%20%3D%20d.onmousedown%20%3D%20d.onmouseup%20%3D%20function%20()%20%7B%20counter%2B%2B%3B%20%7D%3B%3C%2Fscript%3E])
10:36:14.220 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cscript%3Ecounter%20%3D%200%3B%20var%20d%20%3D%20document%3B%20d.onclick%20%3D%20d.onmousedown%20%3D%20d.onmouseup%20%3D%20function%20()%20%7B%20counter%2B%2B%3B%20%7D%3B%3C%2Fscript%3E]
10:36:14.224 INFO - Executing: [find element: By.tagName: html])
10:36:14.232 INFO - Done: [find element: By.tagName: html]
10:36:14.236 INFO - Executing: [mousemove: 6 false])
10:36:14.255 INFO - Done: [mousemove: 6 false]
10:36:14.360 INFO - Executing: [doubleclick: no args])
10:36:14.379 INFO - Done: [doubleclick: no args]
10:36:14.382 INFO - Executing: [execute script: return counter;, []])
10:36:14.396 INFO - Done: [execute script: return counter;, []]
10:36:14.402 INFO - Executing: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cstyle%3E%23a%7Bwidth%3A8px%3Bheight%3A8px%3B-ms-transform%3Ascale(0.5)%3B-moz-transform%3Ascale(0.5)%3B-webkit-transform%3Ascale(0.5)%3Btransform%3Ascale(0.5)%3B%7D%3C%2Fstyle%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E])
10:36:14.429 INFO - Done: [get: data:text/html;charset=utf-8,%3C!DOCTYPE%20html%3E%3Cstyle%3E%23a%7Bwidth%3A8px%3Bheight%3A8px%3B-ms-transform%3Ascale(0.5)%3B-moz-transform%3Ascale(0.5)%3B-webkit-transform%3Ascale(0.5)%3Btransform%3Ascale(0.5)%3B%7D%3C%2Fstyle%3E%3Cdiv%20id%3D%22a%22%3E%3C%2Fdiv%3E]
10:36:14.434 INFO - Executing: [execute script: return document.getElementById("a");, []])
10:36:14.442 INFO - Done: [execute script: return document.getElementById("a");, []]
10:36:14.446 INFO - Executing: [get element size: 7 [org.openqa.selenium.remote.RemoteWebElement#7bae314f -> unknown locator]])
10:36:14.451 INFO - Done: [get element size: 7 [org.openqa.selenium.remote.RemoteWebElement#7bae314f -> unknown locator]]
10:36:14.454 INFO - Executing: [get: about:blank])
10:36:14.476 INFO - Done: [get: about:blank]
10:36:14.483 INFO - Executing: [get current url])
10:36:14.484 INFO - Executing: [execute script: return (function getCoverageData() {
function stringify(value) {
function escapeString(/*string*/ str) {
return ('"' + str.replace(/(["\\])/g, '\\$1') + '"')
.replace(/[\f]/g, '\\f')
.replace(/[\b]/g, '\\b')
.replace(/[\n]/g, '\\n')
.replace(/[\t]/g, '\\t')
.replace(/[\r]/g, '\\r'); // string
}
function serialize(value, key) {
.....
10:36:14.837 INFO - Executing: [get: http://localhost:9000/index.html])
config
define({
// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
// specified browser environments in the `environments` array below as well. See
// <https://theintern.github.io/intern/#option-capabilities> for links to the different capabilities options for
// different services.
//
// Note that the `build` capability will be filled in with the current commit ID or build tag from the CI
// environment automatically
capabilities: {
'browserstack.selenium_version': '2.45.0'
},
// Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
// OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
// capabilities options specified for an environment will be copied as-is
environments: [
//{ browserName: 'internet explorer', version: '11', platform: 'WIN8' },
//{ browserName: 'internet explorer', version: '10', platform: 'WIN8' },
//{ browserName: 'internet explorer', version: '9', platform: 'WINDOWS' },
{ browserName: 'firefox', version: '38.2', platform: [ 'LINUX' ] }
//{ browserName: 'chrome', version: '39', platform: [ 'WINDOWS', 'MAC' ] },
//{ browserName: 'safari', version: '8', platform: 'MAC' }
],
maxConcurrency: 2,
tunnel: 'NullTunnel',
loaderOptions: {
// Packages that should be registered with the loader in each testing environment
packages: [ { name: 'myPackage', location: '.' } ]
},
// Non-functional test suite(s) to run in each browser
suites: [ 'tests/aa' ],
// Functional test suite(s) to execute against each browser once non-functional tests are completed
functionalSuites: [ 'tests/bb' ],
// A regular expression matching URLs to files that should not be included in code coverage analysis
excludeInstrumentation: /^(?:tests|node_modules)\//
});
Make sure you've followed the directions under Required Configuration on the InternetExplorerDriver wiki page. I ran into an issue like this as well; adding the registry setting mentioned on that page fixed it:
For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.
As for the "junk requests", they're a standard part of Leadfoot's start-up process. Leadfoot first runs a battery of tests to detect known WebDriver implementation bugs.

Resources