Can't connect in Ubuntu box from Windows host in Vagrant - windows
I'm having problems trying to ssh in an ubuntu box inside my windows machine. I'm following the basic Getting Started tutorial from Vagrant site (http://docs.vagrantup.com/v2/getting-started/up.html)
Software Versions:
Vagrant: 1.7.2
Virtualbox: 4.3.22
SO: Windows 7
Box: hashicorp/precise32
The scenario:
When I hit vagrant up everything goes according to plan: services and vm starts, but in the final step, which vagrant tests the ssh, it fails after severals Warning: Connection refused. Retrying...
After that when I open the Virtualbox GUI, I can log in the box and check that openssh-server is running. When I try to ssh through the command line I get the error:
ssh 127.0.0.1 -p 2222
ssh: connect to host 127.0.0.1 port 2222: Bad file number
When I hit vagrant ssh (with the logs in INFO level), I get this output:
INFO global: Vagrant version: 1.7.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="C:\\dev\\tools\\Vagrant\\embedded\\gems\\gems\\vagrant-1.7.2\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\dev\\tools\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
INFO global: VAGRANT_LOG="INFO"
INFO global: Plugins:
INFO global: - bundler = 1.7.11
INFO global: - mime-types = 1.25.1
INFO global: - rdoc = 4.0.0
INFO global: - rest-client = 1.6.8
INFO global: - vagrant-share = 1.1.3
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: global-status command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: help command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: list-commands command
INFO manager: Registered plugin: vagrant-login
INFO manager: Registered plugin: package command
INFO manager: Registered plugin: plugin command
INFO manager: Registered plugin: provision command
INFO manager: Registered plugin: push command
INFO manager: Registered plugin: rdp command
INFO manager: Registered plugin: reload command
INFO manager: Registered plugin: resume command
INFO manager: Registered plugin: ssh command
INFO manager: Registered plugin: ssh-config command
INFO manager: Registered plugin: status command
INFO manager: Registered plugin: suspend command
INFO manager: Registered plugin: up command
INFO manager: Registered plugin: version command
INFO manager: Registered plugin: ssh communicator
INFO manager: Registered plugin: winrm communicator
INFO manager: Registered plugin: Arch guest
INFO manager: Registered plugin: CoreOS guest
INFO manager: Registered plugin: Darwin guest
INFO manager: Registered plugin: Debian guest
INFO manager: Registered plugin: ESXi guest.
INFO manager: Registered plugin: Fedora guest
INFO manager: Registered plugin: FreeBSD guest
INFO manager: Registered plugin: Funtoo guest
INFO manager: Registered plugin: Gentoo guest
INFO manager: Registered plugin: Linux guest.
INFO manager: Registered plugin: Mint guest
INFO manager: Registered plugin: NetBSD guest
INFO manager: Registered plugin: NixOS guest
INFO manager: Registered plugin: OmniOS guest.
INFO manager: Registered plugin: OpenBSD guest
INFO manager: Registered plugin: PLD Linux guest
INFO manager: Registered plugin: RedHat guest
INFO manager: Registered plugin: SmartOS guest.
INFO manager: Registered plugin: Solaris guest.
INFO manager: Registered plugin: Solaris 11 guest.
INFO manager: Registered plugin: SUSE guest
INFO manager: Registered plugin: TinyCore Linux guest.
INFO manager: Registered plugin: Ubuntu guest
INFO manager: Registered plugin: Windows guest.
INFO manager: Registered plugin: Arch host
INFO manager: Registered plugin: BSD host
INFO manager: Registered plugin: Mac OS X host
INFO manager: Registered plugin: FreeBSD host
INFO manager: Registered plugin: Gentoo host
INFO manager: Registered plugin: Linux host
INFO manager: Registered plugin: null host
INFO manager: Registered plugin: Red Hat host
INFO manager: Registered plugin: Slackware host
INFO manager: Registered plugin: SUSE host
INFO manager: Registered plugin: Windows host
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: kernel
INFO manager: Registered plugin: docker-provider
INFO manager: Registered plugin: Hyper-V provider
INFO manager: Registered plugin: VirtualBox provider
INFO manager: Registered plugin: ansible
INFO manager: Registered plugin: CFEngine Provisioner
INFO manager: Registered plugin: chef
INFO manager: Registered plugin: docker
INFO manager: Registered plugin: file
INFO manager: Registered plugin: puppet
INFO manager: Registered plugin: salt
INFO manager: Registered plugin: shell
INFO manager: Registered plugin: atlas
INFO manager: Registered plugin: ftp
INFO manager: Registered plugin: heroku
INFO manager: Registered plugin: local-exec
INFO manager: Registered plugin: noop
INFO manager: Registered plugin: NFS synced folders
INFO manager: Registered plugin: RSync synced folders
INFO manager: Registered plugin: SMB synced folders
INFO global: Loading plugins!
INFO manager: Registered plugin: vagrant-share
INFO vagrant: `vagrant` invoked: ["ssh"]
INFO environment: Environment initialized (#<Vagrant::Environment:0x36893d0>)
INFO environment: - cwd: C:/dev/local-server
INFO environment: Home path: C:/Users/vitallan/.vagrant.d
INFO environment: Local data path: C:/dev/local-server/.vagrant
INFO environment: Running hook: environment_plugins_loaded
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x2c494c8>
INFO environment: Running hook: environment_load
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x2cc93a0>
INFO cli: CLI: [] "ssh" []
INFO loader: Set :root = #<Pathname:C:/dev/local-server/Vagrantfile>
INFO loader: Loading configuration in order: [:home, :root]
INFO command: Active machine found with name default. Using provider: virtualbox
INFO environment: Getting machine: default (virtualbox)
INFO environment: Uncached load of machine.
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "--version"]
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_3
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO loader: Set "27710496_machine_default" = []
INFO loader: Loading configuration in order: [:home, :root, "27710496_machine_default"]
INFO box_collection: Box found: hashicorp/precise32 (virtualbox)
INFO environment: Running hook: authenticate_box_url
INFO host: Autodetecting host type for [#<Vagrant::Environment: C:/dev/local-server>]
INFO host: Detected: windows!
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 2 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x376dbc8>
INFO warden: Calling IN action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x4727a18>
INFO warden: Calling OUT action: #<VagrantPlugins::LoginCommand::AddAuthentication:0x4727a18>
INFO loader: Set :"28616568_hashicorp/precise32_virtualbox" = #<Pathname:C:/Users/vitallan/.vagrant.d/boxes/hashicorp-VAGRANTSLASH-precise32/1.0.0/virtualbox/Vagrantfile>
INFO loader: Loading configuration in order: [:"28616568_hashicorp/precise32_virtualbox", :home, :root, "27710496_machine_default"]
INFO machine: Initializing machine: default
INFO machine: - Provider: VagrantPlugins::ProviderVirtualBox::Provider
INFO machine: - Box: #<Vagrant::Box:0x474dfb0>
INFO machine: - Data dir: C:/dev/local-server/.vagrant/machines/default/virtualbox
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "--version"]
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_3
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b"]
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO command: With machine: default (#<VagrantPlugins::ProviderVirtualBox::Provider:0x487e4f8 #logger=#<Log4r::Logger:0x487e4c8 #fullname="vagrant::provider::virtualbox", #outputters=[], #additive=true, #name="virtualbox", #path="vagrant::provider", #parent=#<Log4r::Logger:0x37e65e8 #fullname="vagrant", #outputters=[#<Log4r::StderrOutputter:0x375fd50 #mon_owner=nil, #mon_count=0, #mon_mutex=#<Mutex:0x375fc18>, #name="stderr", #level=0, #formatter=#<Log4r::DefaultFormatter:0x375dbd8 #depth=7>, #out=#<IO:<STDERR>>>], #additive=true, #name="vagrant", #path="", #parent=#<Log4r::RootLogger:0x37e6540 #level=0, #outputters=[]>, #level=2, #trace=false>, #level=2, #trace=false>, #machine=#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>, #driver=#<VagrantPlugins::ProviderVirtualBox::Driver::Meta:0x4897560 #logger=#<Log4r::Logger:0x48a4148 #fullname="vagrant::provider::virtualbox::meta", #outputters=[], #additive=true, #name="meta", #path="vagrant::provider::virtualbox", #parent=#<Log4r::Logger:0x487e4c8 #fullname="vagrant::provider::virtualbox", #outputters=[], #additive=true, #name="virtualbox", #path="vagrant::provider", #parent=#<Log4r::Logger:0x37e65e8 #fullname="vagrant", #outputters=[#<Log4r::StderrOutputter:0x375fd50 #mon_owner=nil, #mon_count=0, #mon_mutex=#<Mutex:0x375fc18>, #name="stderr", #level=0, #formatter=#<Log4r::DefaultFormatter:0x375dbd8 #depth=7>, #out=#<IO:<STDERR>>>], #additive=true, #name="vagrant", #path="", #parent=#<Log4r::RootLogger:0x37e6540 #level=0, #outputters=[]>, #level=2, #trace=false>, #level=2, #trace=false>, #level=2, #trace=false>, #interrupted=false, #vboxmanage_path="C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", #uuid="d2575078-1bc6-448b-9c70-04e21249f33b", #version="4.3.22", #driver=#<VagrantPlugins::ProviderVirtualBox::Driver::Version_4_3:0x48d4568 #logger=#<Log4r::Logger:0x48ed108 #fullname="vagrant::provider::virtualbox_4_3", #outputters=[], #additive=true, #name="virtualbox_4_3", #path="vagrant::provider", #parent=#<Log4r::Logger:0x37e65e8 #fullname="vagrant", #outputters=[#<Log4r::StderrOutputter:0x375fd50 #mon_owner=nil, #mon_count=0, #mon_mutex=#<Mutex:0x375fc18>, #name="stderr", #level=0, #formatter=#<Log4r::DefaultFormatter:0x375dbd8 #depth=7>, #out=#<IO:<STDERR>>>], #additive=true, #name="vagrant", #path="", #parent=#<Log4r::RootLogger:0x37e6540 #level=0, #outputters=[]>, #level=2, #trace=false>, #level=2, #trace=false>, #interrupted=false, #vboxmanage_path="C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", #uuid="d2575078-1bc6-448b-9c70-04e21249f33b">>, #cap_logger=#<Log4r::Logger:0x491d600 #fullname="vagrant::capability_host::vagrantplugins::providervirtualbox::provider", #outputters=[], #additive=true, #name="provider", #path="vagrant::capability_host::vagrantplugins::providervirtualbox", #parent=#<Log4r::Logger:0x37e65e8 #fullname="vagrant", #outputters=[#<Log4r::StderrOutputter:0x375fd50 #mon_owner=nil, #mon_count=0, #mon_mutex=#<Mutex:0x375fc18>, #name="stderr", #level=0, #formatter=#<Log4r::DefaultFormatter:0x375dbd8 #depth=7>, #out=#<IO:<STDERR>>>], #additive=true, #name="vagrant", #path="", #parent=#<Log4r::RootLogger:0x37e6540 #level=0, #outputters=[]>, #level=2, #trace=false>, #level=2, #trace=false>, #cap_host_chain=[[:virtualbox, #<#<Class:0x491d8d0>:0x4b76518>]], #cap_args=[#<Vagrant::Machine: default (VagrantPlugins::ProviderVirtualBox::Provider)>], #cap_caps={:docker=>#<Vagrant::Registry:0x491d7f8 #items={:public_address=>#<Proc:0x3806538#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/docker/plugin.rb:54>, :proxy_machine=>#<Proc:0x3806490#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/docker/plugin.rb:59>}, #results_cache={}>, :hyperv=>#<Vagrant::Registry:0x491d780 #items={:public_address=>#<Proc:0x380ed10#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/hyperv/plugin.rb:25>}, #results_cache={}>, :virtualbox=>#<Vagrant::Registry:0x491d708 #items={:forwarded_ports=>#<Proc:0x383fcd0#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/virtualbox/plugin.rb:27>, :nic_mac_addresses=>#<Proc:0x383fc58#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-1.7.2/plugins/providers/virtualbox/plugin.rb:32>, :public_address=>#<Proc:0x2a38508#C:/dev/tools/Vagrant/embedded/gems/gems/vagrant-share-1.1.3/lib/vagrant-share.rb:39>}, #results_cache={}>}>)
INFO machine: Calling action: ssh on provider VirtualBox (d2575078-1bc6-448b-9c70-04e21249f33b)
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #<Vagrant::Action::Builder:0x460fde8>
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckVirtualbox:0x4686480>
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "--version"]
INFO meta: Using VirtualBox driver: VagrantPlugins::ProviderVirtualBox::Driver::Version_4_3
INFO base: VBoxManage path: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "list", "hostonlyifs"]
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckCreated:0x4686468>
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckAccessible:0x4686450>
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::CheckRunning:0x4686438>
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SSHExec:0x4686420>
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO subprocess: Starting process: ["C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe", "showvminfo", "d2575078-1bc6-448b-9c70-04e21249f33b", "--machinereadable"]
INFO subprocess: Starting process: ["C:\\Program Files (x86)\\Git\\bin/ssh.EXE"]
INFO ssh: Invoking SSH: ["vagrant#127.0.0.1", "-p", "2222", "-o", "Compression=yes", "-o", "DSAAuthentication=yes", "-o", "LogLevel=FATAL", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", "-o", "IdentitiesOnly=yes", "-i", "C:/Users/vitallan/.vagrant.d/insecure_private_key"]
Does anyone know how can I ssh in my box?
EDIT: i tried openning new forwardding doors (like #user1389596 suggested), but it still doesnt work
Hmm, ssh 127.0.0.1 is the loopback address (the same machine). Shouldn't you use the local LAN IP of your ubuntu server intead?
Related
Cannot run SonarQube as Service
If I just run the StartSonar.bat everything works and starts fine. If I setup a service to run using NSSM using: Path: ..\blah\wrapper.exe Startup directory: ..\blah Arguments: -c ..\blah\conf\wrapper.conf I get an error in the logs that says: 2019.06.24 16:03:49 INFO web[][o.s.p.ProcessEntryPoint] Starting web 2019.06.24 16:03:50 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 2019.06.24 16:03:51 INFO web[][o.e.p.PluginsService] no modules loaded 2019.06.24 16:03:51 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.join.ParentJoinPlugin] 2019.06.24 16:03:51 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.percolator.PercolatorPlugin] 2019.06.24 16:03:51 INFO web[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin] 2019.06.24 16:03:52 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2019.06.24 16:03:52 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 7.7.0.23042 / 1dcac8b8de36b377a1810cc8f1c4c31744e12729 2019.06.24 16:03:52 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://BRKPRCSQUBE1;databaseName=sonar;integratedSecurity=true 2019.06.24 16:03:53 ERROR web[][o.s.s.p.Platform] Web server startup failed java.lang.IllegalStateException: Can not connect to database. Please check connectivity and settings (see the properties prefixed by 'sonar.jdbc.'). That leads me to believe there is a problem with setting up the database correctly, but once again.. if I run the StartSonar.bat everything works fine. The only thing I can think of is that I am setting up the service as a "Local System account," instead of when I run the bat it would be from my own account. That being said, I cannot use my account and then login and change my password or something every time my AD changes.
Error in accessing SonarQube dashboard on localhost:9000
I was configuring SonarQube 6.1 on my PC and initially i was able to view sonarqube dashboard on localhost:9000. But after doing required changes in configuration files(sonar and wrapper) ,after creating db in sql server i am NOT ABLE to see sonar dashboard on localhost:9000 ,its giving network error(tcp_error). Sql server connection : sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true. Any hint will be appreciated. i am attaching the logs here : --> Wrapper Started as Console Launching a JVM... Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. 2018.02.14 19:22:49 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\Sonarqube 6.1\temp 2018.02.14 19:22:49 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[es]: C:\Program Files\Java\jdk1.8.0_152\jre\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Sonarqube 6.1\temp -javaagent:C:\Program Files\Java\jdk1.8.0_152\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Sonarqube 6.1\temp\sq-process2295132313122351201properties 2018.02.14 19:22:51 INFO es[][o.s.p.ProcessEntryPoint] Starting es 2018.02.14 19:22:51 INFO es[][o.s.s.EsSettings] Elasticsearch listening on /127.0.0.1:9001 2018.02.14 19:22:51 INFO es[][o.elasticsearch.node] [sonarqube] version[2.3.3], pid[69296], build[218bdf1/2016-05-17T15:40:04Z] 2018.02.14 19:22:51 INFO es[][o.elasticsearch.node] [sonarqube] initializing ... 2018.02.14 19:22:51 INFO es[][o.e.plugins] [sonarqube] modules [], plugins [], sites [] 2018.02.14 19:22:51 INFO es[][o.elasticsearch.env] [sonarqube] using [1] data paths, mounts [[C (C:)]], net usable_space [17.2gb], net total_space [97.6gb], spins? [unknown], types [NTFS] 2018.02.14 19:22:51 INFO es[][o.elasticsearch.env] [sonarqube] heap size [990.7mb], compressed ordinary object pointers [true] 2018.02.14 19:23:10 INFO es[][o.elasticsearch.node] [sonarqube] initialized 2018.02.14 19:23:10 INFO es[][o.elasticsearch.node] [sonarqube] starting ... 2018.02.14 19:23:10 INFO es[][o.e.transport] [sonarqube] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001} 2018.02.14 19:23:10 INFO es[][o.e.discovery] [sonarqube] sonarqube/SiLqQ7h5TnqOmun2zWvO_w 2018.02.14 19:23:14 INFO es[][o.e.cluster.service] [sonarqube] new_master {sonarqube}{SiLqQ7h5TnqOmun2zWvO_w}{127.0.0.1}{127.0.0.1:9001}{rack_id=sonarqube, master=true}, reason: zen-disco-join(elected_as_master, [0] joins received) 2018.02.14 19:23:14 INFO es[][o.elasticsearch.node] [sonarqube] started 2018.02.14 19:23:15 INFO es[][o.e.gateway] [sonarqube] recovered [5] indices into cluster_state 2018.02.14 19:23:19 INFO es[][o.e.c.r.allocation] [sonarqube] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[tests][4]] ...]). 2018.02.14 19:23:19 INFO app[][o.s.p.m.Monitor] Process[es] is up 2018.02.14 19:23:19 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[web]: C:\Program Files\Java\jdk1.8.0_152\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx1024m -Xms512m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Sonarqube 6.1\temp -javaagent:C:\Program Files\Java\jdk1.8.0_152\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;C:\Sonarqube 6.1\lib\jdbc\mssql\sqljdbc42.jar org.sonar.server.app.WebServer C:\Sonarqube 6.1\temp\sq-process6566518313829106923properties 2018.02.14 19:23:20 INFO web[][o.s.p.ProcessEntryPoint] Starting web 2018.02.14 19:23:21 INFO web[][o.s.s.a.TomcatContexts] Webapp directory: C:\Sonarqube 6.1\web 2018.02.14 19:23:21 INFO web[][o.a.c.h.Http11NioProtocol] Initializing ProtocolHandler ["http-nio-0.0.0.0-9000"] 2018.02.14 19:23:22 INFO web[][o.a.t.u.n.NioSelectorPool] Using a shared selector for servlet write/read 2018.02.14 19:23:24 INFO web[][o.e.plugins] [The Stepford Cuckoos] modules [], plugins [], sites [] 2018.02.14 19:23:25 INFO web[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2018.02.14 19:23:25 INFO web[][o.s.s.p.LogServerVersion] SonarQube Server / 6.1 / dc148a71a1c184ccad588b66251980c994879dff 2018.02.14 19:23:25 INFO web[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\Sonarqube 6.1 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin C# / 5.3.1 / 829e9f5ce2582c2e45f2db2130d2fbaa509fbc64 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Git / 1.2 / a713dd64daf8719ba4e7f551f9a1966c62690c17 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin Java / 4.0 / b653c6c8640ab3d6015d036a060f58e027a653af 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin JavaScript / 2.14 / 8e37a262d72dd863345f9c6e87421e2d1853a2e6 2018.02.14 19:23:28 INFO web[][o.s.s.p.ServerPluginRepository] Deploy plugin SVN / 1.3 / aff503d48bc77b07c2b62abf93249d0a20bd355c 2018.02.14 19:23:30 INFO web[][o.s.s.p.w.RailsAppsDeployer] Deploying Ruby on Rails applications 2018.02.14 19:23:31 INFO web[][o.s.d.c.MssqlCharsetHandler] Verify that database collation is case-sensitive and accent-sensitive 2018.02.14 19:23:33 INFO web[][o.s.s.p.UpdateCenterClient] Update center: https://update.sonarsource.org/update-center.properties (no proxy) 2018.02.14 19:23:38 INFO web[][o.s.s.n.NotificationDaemon] Notification service started (delay 60 sec.) 2018.02.14 19:23:39 INFO web[][o.s.s.s.RegisterMetrics] Register metrics 2018.02.14 19:23:41 INFO web[][o.s.s.r.RegisterRules] Register rules 2018.02.14 19:23:45 INFO web[][o.s.s.q.RegisterQualityProfiles] Register quality profiles 2018.02.14 19:23:47 INFO web[][o.s.s.s.RegisterNewMeasureFilters] Register measure filters 2018.02.14 19:23:47 INFO web[][o.s.s.s.RegisterDashboards] Register dashboards 2018.02.14 19:23:47 INFO web[][o.s.s.s.RegisterPermissionTemplates] Register permission templates 2018.02.14 19:23:47 INFO web[][o.s.s.s.RenameDeprecatedPropertyKeys] Rename deprecated property keys 2018.02.14 19:23:47 INFO web[][o.s.s.e.IndexerStartupTask] Index issues 2018.02.14 19:23:47 INFO web[][o.s.s.e.IndexerStartupTask] Index tests 2018.02.14 19:23:47 INFO web[][o.s.s.e.IndexerStartupTask] Index users 2018.02.14 19:23:47 INFO web[][o.s.s.e.IndexerStartupTask] Index views 2018.02.14 19:23:48 INFO web[][jruby.rack] jruby 1.7.9 (ruby-1.8.7p370) 2013-12-06 87b108a on Java HotSpot(TM) 64-Bit Server VM 1.8.0_152-b16 [Windows 10-amd64] 2018.02.14 19:23:48 INFO web[][jruby.rack] using a shared (threadsafe!) runtime 2018.02.14 19:25:23 INFO web[][jruby.rack] keeping custom (config.logger) Rails logger instance 2018.02.14 19:25:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.ws.WebServiceFilter#4dbb34d2 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#d28af38] 2018.02.14 19:25:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.InitFilter#65316401 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#7138d1d1] 2018.02.14 19:25:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.OAuth2CallbackFilter#70eb9145 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#1e14f235] 2018.02.14 19:25:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.LoginAction#33c29508 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#afe5c1f] 2018.02.14 19:25:24 INFO web[][o.s.s.p.w.MasterServletFilter] Initializing servlet filter org.sonar.server.authentication.ws.ValidateAction#6e03c549 [pattern=org.sonar.api.web.ServletFilter$UrlPattern#49ce7754] 2018.02.14 19:25:24 INFO web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-0.0.0.0-9000"] 2018.02.14 19:25:24 INFO web[][o.s.s.a.TomcatAccessLog] Web server is started 2018.02.14 19:25:24 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000 2018.02.14 19:25:24 INFO app[][o.s.p.m.Monitor] Process[web] is up 2018.02.14 19:25:24 INFO app[][o.s.p.m.JavaProcessLauncher] Launch process[ce]: C:\Program Files\Java\jdk1.8.0_152\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Sonarqube 6.1\temp -javaagent:C:\Program Files\Java\jdk1.8.0_152\jre\lib\management-agent.jar -cp ./lib/common/*;./lib/server/*;./lib/ce/*;C:\Sonarqube 6.1\lib\jdbc\mssql\sqljdbc42.jar org.sonar.ce.app.CeServer C:\Sonarqube 6.1\temp\sq-process3506711799158227159properties 2018.02.14 19:25:27 INFO ce[][o.s.p.ProcessEntryPoint] Starting ce 2018.02.14 19:25:27 INFO ce[][o.s.ce.app.CeServer] Compute Engine starting up... 2018.02.14 19:25:29 INFO ce[][o.e.plugins] [Gorgon] modules [], plugins [], sites [] 2018.02.14 19:25:31 INFO ce[][o.s.s.e.EsClientProvider] Connected to local Elasticsearch: [127.0.0.1:9001] 2018.02.14 19:25:32 INFO ce[][o.sonar.db.Database] Create JDBC data source for jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true 2018.02.14 19:25:34 INFO ce[][o.s.s.p.ServerFileSystemImpl] SonarQube home: C:\Sonarqube 6.1 2018.02.14 19:25:34 INFO ce[][o.s.c.c.CePluginRepository] Load plugins 2018.02.14 19:25:40 INFO ce[][o.s.s.c.q.PurgeCeActivities] Delete the Compute Engine tasks created before Fri Aug 18 19:25:40 IST 2017 2018.02.14 19:25:40 INFO ce[][o.s.ce.app.CeServer] Compute Engine is up 2018.02.14 19:25:40 INFO app[][o.s.p.m.Monitor] Process[ce] is up
vagrant hangs up after fixed port collision
I am trying to bring up vagrant on a Windows machine. It hangs up after Fixed port collision for 22 => 2222. Now on port 2200. A part of the debug log is below: DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO warden: Calling IN action: #<Vagrant::Action::Builtin::HandleForwardedPortCollisions:0x44e7760> DEBUG environment: Attempting to acquire process-lock: fpcollision DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: fpcollision INFO handle_port_collisions: Detecting any forwarded port collisions... DEBUG handle_port_collisions: Extra in use: [] DEBUG handle_port_collisions: Remap: {} DEBUG handle_port_collisions: Repair: true INFO handle_port_collisions: Attempting to repair FP collision: 2222 INFO handle_port_collisions: Repaired FP collision: 2222 to 2200 INFO interface: info: Fixed port collision for 22 => 2222. Now on port 2200. INFO interface: info: ==> vlad: Fixed port collision for 22 => 2222. Now on port 2200. ==> vlad: Fixed port collision for 22 => 2222. Now on port 2200. INFO environment: Released process lock: fpcollision DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSValidIds:0x44431c8> INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "list", "vms"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: "vlad_vlad" {efce349f-2b2e-40db-9a14-2298d3024638} DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO warden: Calling IN action: #<VagrantPlugins::SyncedFolderNFS::ActionCleanup:0x435c3a8> DEBUG host: Searching for cap: nfs_prune DEBUG host: Checking in: windows INFO nfs: Host doesn't support pruning NFS. Skipping. INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolderCleanup:0x4263ca8> INFO subprocess: Starting process: ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0/powershell.EXE", "-NoProfile", "-ExecutionPolicy", "Bypass", "$PSVersionTable.PSVersion.Major"] INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: 2 I do not have the slightest idea of how to proceed. Any help is appreciated.
After powershell installation vagrant continued with the setup of the VM
Teamcity on EC2 "Could not determine the local IP address (...): unknown error"
I'm trying to setup Teamcity on an EC2 Ubuntu instance. I've: Downloaded the package through wget http://download.jetbrains.com/teamcity/TeamCity-9.0.4.tar.gz. Unpackaged it. Unpackaged it: tar -xvzf TeamCity-9.0.4.tar.gz. sh Teamcity/bin/teamcity-server.sh start. I can't access the web-app, and when I check the logs, says: INFO - jetbrains.buildServer.STARTUP - Server shutdown has been requested WARN - jetbrains.buildServer.STARTUP - Could not determine the local IP address: ip-172-30-1-83: ip-172-30-1-83: unknown error INFO - jetbrains.buildServer.STARTUP - Server IP address: -unknown- INFO - jetbrains.buildServer.STARTUP - Server shutdown complete Complete log: INFO - jetbrains.buildServer.STARTUP - Starting TeamCity server INFO - jetbrains.buildServer.STARTUP - Server shutdown has been requested INFO - jetbrains.buildServer.STARTUP - TeamCity version: 9.0.4 (build 32407), data format version 709 INFO - jetbrains.buildServer.STARTUP - OS: Linux, User: ubuntu, JRE: 1.8.0_45-b14 Java HotSpot(TM) 64-Bit Server VM INFO - jetbrains.buildServer.STARTUP - JVM parameters: -Djava.util.logging.config.file=/home/ubuntu/TeamCity/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xmx512m -XX:MaxPermSize=270m -Dlog4j.configuration=file:/home/ubuntu/TeamCity/bin/../conf/teamcity-server-log4j.xml -Dteamcity_logs=../logs/ -Djsse.enableSNIExtension=false -Djava.awt.headless=true -Djava.endorsed.dirs=/home/ubuntu/TeamCity/endorsed -Dcatalina.base=/home/ubuntu/TeamCity -Dcatalina.home=/home/ubuntu/TeamCity -Djava.io.tmpdir=/home/ubuntu/TeamCity/temp INFO - jetbrains.buildServer.STARTUP - Garbage collection: Copy, MarkSweepCompact WARN - jetbrains.buildServer.STARTUP - Could not determine the local IP address: ip-172-30-1-83: ip-172-30-1-83: unknown error INFO - jetbrains.buildServer.STARTUP - Web server version: Apache Tomcat/7.0.59 INFO - jetbrains.buildServer.STARTUP - Server IP address: -unknown- INFO - jetbrains.buildServer.STARTUP - Servlet real path: /home/ubuntu/TeamCity/webapps/ROOT/ INFO - jetbrains.buildServer.STARTUP - Current stage: TeamCity server is shutting down INFO - jetbrains.buildServer.STARTUP - Stopping the main application INFO - jetbrains.buildServer.STARTUP - The main servlet is not initialized, nothing to shut down. INFO - jetbrains.buildServer.STARTUP - Server shutdown complete Any hints on how to solve it? I have Teamcity's web-app working on my local machine (also Ubuntu, and the same Teamcity package).
Read the shell script TeamCity/bin/teamcity-server.sh, it is written with limitation, the script can't run out of the application folder. export CATALINA_OPTS CATALINA_HOME=./.. CATALINA_BASE=./.. So you should cd to the bin folder and run : cd Teamcity/bin sh teamcity-server.sh start Let me know if it fixs your issue or not.
Vagrant hangs on Windows 7
vagrant up seems to hang on Windows 7 My Vagrant file VAGRANTFILE_API_VERSION = "2" ENV['VAGRANT_DEFAULT_PROVIDER'] = 'docker' Vagrant.configure("2") do |config| config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true config.vm.define "elk" do |elk| elk.vm.synced_folder "./www", "/var/www" elk.vm.provider "docker" do |d| d.build_dir = "./Docker" end end end vagrant up --debug ==> elk: Syncing folders to the host VM... INFO machine: Calling action: sync_folders on provider VirtualBox (3c7dc34c-6fcf-4ace-87d1-0602b664e783) DEBUG environment: Attempting to acquire process-lock: machine-action-740c202843bdf6334148bb69e000ec99 DEBUG environment: Attempting to acquire process-lock: dotlock INFO environment: Acquired process lock: dotlock INFO environment: Released process lock: dotlock INFO environment: Acquired process lock: machine-action-740c202843bdf6334148bb69e000ec99 INFO environment: Released process lock: machine-action-740c202843bdf6334148bb69e000ec99 INFO runner: Preparing hooks for middleware sequence... INFO runner: 1 hooks defined. INFO runner: Running action: #<Vagrant::Action::Builder:0x3786018> INFO warden: Calling IN action: #<Vagrant::Action::Builtin::SyncedFolders:0x38079d8> INFO subprocess: Starting process: ["C:\\windows\\System32\\WindowsPowerShell\\v1.0\\/powershell.EXE", "-NoProfile", "-ExecutionPolicy", "Bypass", "$PSVersionTable.PSVersion.Major"] DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: 2
Found related vagrant issue here: https://github.com/mitchellh/vagrant/issues/3139 Updating powershell to v3.0 solved the issue: http://www.microsoft.com/en-us/download/details.aspx?id=34595