Unable to start

I get the following error.

MacBook-Pro:bin vivek$ ./upsource.sh run
Starting Upsource...
* Loading logging configuration from /Users/vivek/Development/Upsource/lib/log4j.xml
* Redirecting Upsource 1.0 logging to /Users/vivek/Development/Upsource/logs/bundleProcess
* Configuring Service-Container[bundleProcess]
* Configuring Starting Page Service
* Configuring Apache Cassandra
cassandra: objc[393]: Class JavaLaunchHelper is implemented in both /Users/vivek/Development/Upsource/internal/java/mac-x64/bin/java and /Users/vivek/Development/Upsource/internal/java/mac-x64/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
* Configuring Hub
* Configuring Service-Container[vcsSettingsContainer]
* Configuring VCS Settings
vcs-settings: Using Java: /Users/vivek/Development/Upsource/internal/java/mac-x64 (version "1.7.0_71")
vcs-settings: 0 [[APP-WRAPPER] Proxy 1] INFO jetbrains.vcs.server.settings.jetty.JettyServiceBase  - Updated service properties file: /Users/vivek/Development/Upsource/conf/vcs-settings/vcs-settings.properties
* Configuring Upsource Analyzer
* Configuring Upsource Monitoring
* Configuring Upsource Frontend
* Starting Service-Container[bundleProcess]
* Upsource 1.0 will be available on [http://127.0.0.1:8080/bundle/starting] after start
[Upsource Error] log4j:WARN No appenders could be found for logger (com.jetbrains.bundle.starting_page.config.StartingPageBackendInitializer).
[Upsource Error] log4j:WARN Please initialize the log4j system properly.
[Upsource Error] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Init web application log4j location: jetbrains/jetpass/server/main/log4j.xml
23:18:59,063 WARN  [CustomEditorConfigurer        ] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserBrowser; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@4d243ecf
23:18:59,064 WARN  [CustomEditorConfigurer        ] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserOS; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@4d243ecf
23:19:01,983 ERROR [SupportedLocales              ] Cannot load locales configuration. To add locales configuration create file classpath:translations/supportedLocales.xml
23:19:02,350 WARN  [MessagesContainer             ] Failed to load translations. No translation will be used in application
23:19:13,450 WARN  [RealmVerifier                 ] RP discovery / realm validation disabled;
gflogger:  version 20131206
23:21:19,631 ERROR [HostToBaseUrlConfiguration    ] Can't get local address
java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
    at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
    at webr.framework.url.HostToBaseUrlConfiguration.getBaseUrl(HostToBaseUrlConfiguration.java:38)
    at jetbrains.jetpass.server.main.HubHostToBaseConfiguration.getBaseUrlOutsideRequest(HubHostToBaseConfiguration.java:42)
    at jetbrains.jetpass.server.main.App.init(App.java:62)
    at jetbrains.jetpass.server.main.InitWebApplicationServiceLocatorListener.onAfterInit(InitWebApplicationServiceLocatorListener.java:47)
    at jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:112)
    at jetbrains.jetpass.server.main.ServletImpl.init(ServletImpl.java:34)
    at javax.servlet.GenericServlet.init(GenericServlet.java:244)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:600)
    at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:389)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:869)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1341)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1334)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.server.Server.start(Server.java:387)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:354)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at com.jetbrains.service.jetty.JettyServiceBase.start(JettyServiceBase.java:118)
    at com.jetbrains.bundle.services.impl.InProcessJettyService.doStart(InProcessJettyService.java:33)
    at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:51)
    at com.jetbrains.bundle.Services.startService(Services.java:422)
    at com.jetbrains.bundle.Services.startAllServices(Services.java:407)
    at com.jetbrains.bundle.Services.start(Services.java:379)
    at com.jetbrains.bundle.BundleMain.start(BundleMain.java:188)
    at com.jetbrains.bundle.BundleMain.start(BundleMain.java:158)
    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    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: java.net.UnknownHostException: MacBook-Pro: nodename nor servname provided, or not known
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
    at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
    ... 45 more
* Starting Starting Page Service
* Starting Apache Cassandra
[Upsource Error] [APP-WRAPPER] Failed to start the application: Failed to start Upsource 1.0: Not allowed exit code 255 from process: bin/cassandra start
[Upsource Error] [APP-WRAPPER] com.jetbrains.launcher.StartupException: Failed to start Upsource 1.0: Not allowed exit code 255 from process: bin/cassandra start
[Upsource Error]     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:164)
[Upsource Error]     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
[Upsource Error]     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
[Upsource Error]     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
[Upsource Error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[Upsource Error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[Upsource Error]     at java.lang.Thread.run(Thread.java:745)
[Upsource Error] Caused by: com.jetbrains.service.util.StatusException: Not allowed exit code 255 from process: bin/cassandra start
cassandra: Starting launcher process with command: [/Users/vivek/Development/Upsource/internal/java/mac-x64/bin/java, -Djl.service=Apache Cassandra Launcher, -Djl.home=/Users/vivek/Development/Upsource/apps/cassandra, -ea, -Xmx5m, -XX:+HeapDumpOnOutOfMemoryError, -Dfile.encoding=UTF-8, -XX:MaxPermSize=3m, -jar, launcher/lib/launcher.jar, Main, do, start, --debug] (at path: "/Users/vivek/Development/Upsource/apps/cassandra", system properties: {})
[Upsource Error]     at com.jetbrains.bundle.services.impl.CliService.executeServiceCommand(CliService.java:121)
cassandra: Using Java: /Users/vivek/Development/Upsource/internal/java/mac-x64 (version "1.7.0_71")
cassandra: Apache Cassandra home directory: /Users/vivek/Development/Upsource/apps/cassandra
cassandra: Command line: [do, start, --debug]
cassandra: JetLauncher version: 0.5.96
cassandra: Using launcher configuration file: jar:file:<Apache Cassandra Home>/launcher/lib/launcher.jar!/launcher.java.config
cassandra: Starting Apache Cassandra...
cassandra: Lock file: /Users/vivek/Development/Upsource/logs/cassandra/application.lock
cassandra: Using no lock
[Upsource Error]     at com.jetbrains.bundle.services.impl.CliService.doStart(CliService.java:46)
cassandra: Update folder deleted
[Upsource Error]     at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:51)
cassandra: Tue Dec 09 23:23:57 GMT 2014 ==> Start launch
[Upsource Error]     at com.jetbrains.bundle.Services.startService(Services.java:422)
cassandra: Launching Apache Cassandra process with command: [/Users/vivek/Development/Upsource/internal/java/mac-x64/bin/java, -Djl.service=Apache Cassandra, -Djl.home=/Users/vivek/Development/Upsource/apps/cassandra, -ea, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=../../logs/cassandra, -Dfile.encoding=UTF-8, -Xbootclasspath/a:lib/jamm/jamm-0.2.6.jar, -javaagent:lib/jamm/jamm-0.2.6.jar, -d64, -Xmx3000m, -XX:MaxPermSize=128m, -jar, launcher/lib/app-wrapper/app-wrapper.jar, AppStarter, com.jetbrains.cassandra.service.CassandraServiceMain] (at path: "/Users/vivek/Development/Upsource/apps/cassandra", system properties: {launcher.app.home=/Users/vivek/Development/Upsource/apps/cassandra, java.awt.headless=true, launcher.app.logs.dir=/Users/vivek/Development/Upsource/logs/cassandra, launcher.log.level=DEBUG})
[Upsource Error]     at com.jetbrains.bundle.Services.startAllServices(Services.java:400)
cassandra: [Apache Cassandra Error] objc[1702]: Class JavaLaunchHelper is implemented in both /Users/vivek/Development/Upsource/internal/java/mac-x64/bin/java and /Users/vivek/Development/Upsource/internal/java/mac-x64/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
[Upsource Error]     at com.jetbrains.bundle.Services.start(Services.java:379)
cassandra: [Apache Cassandra Error] 23:26:04.267 [[APP-WRAPPER] Proxy 1] WARN  org.apache.cassandra.utils.CLibrary - JNA link failure, one or more native method will be unavailable.
[Upsource Error]     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:188)
cassandra: Apache Cassandra process finished
cassandra: Apache Cassandra has exited with code: 30
[Upsource Error]     at com.jetbrains.bundle.BundleMain.start(BundleMain.java:158)
[Upsource Error]     ... 6 more
cassandra: [Apache Cassandra Error] [APP-WRAPPER] Failed to start the application: Unable to start cassandra: java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
cassandra: Launcher is exiting
cassandra: [Apache Cassandra Error] [APP-WRAPPER] com.jetbrains.launcher.StartupException: Unable to start cassandra: java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
cassandra: [Apache Cassandra Error]     at com.jetbrains.cassandra.service.CassandraServiceMain.start(CassandraServiceMain.java:104)
cassandra: [Apache Cassandra Error]     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
cassandra: [Apache Cassandra Error]     at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
cassandra: [Apache Cassandra Error]     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
cassandra: [Apache Cassandra Error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
cassandra: [Apache Cassandra Error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
cassandra: [Apache Cassandra Error]     at java.lang.Thread.run(Thread.java:745)
cassandra: [Apache Cassandra Error] Caused by: java.lang.AssertionError: java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.utils.GuidGenerator.<clinit>(GuidGenerator.java:42)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.dht.RandomPartitioner.getRandomToken(RandomPartitioner.java:69)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.dht.RandomPartitioner.getRandomToken(RandomPartitioner.java:39)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.dht.BootStrapper.getRandomTokens(BootStrapper.java:128)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:861)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.service.StorageService.initServer(StorageService.java:646)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.service.StorageService.initServer(StorageService.java:529)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:324)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:377)
cassandra: [Apache Cassandra Error]     at com.jetbrains.cassandra.service.CassandraServiceMain.start(CassandraServiceMain.java:81)
cassandra: [Apache Cassandra Error]     ... 6 more
cassandra: [Apache Cassandra Error] Caused by: java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
cassandra: [Apache Cassandra Error]     at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
cassandra: [Apache Cassandra Error]     at org.apache.cassandra.utils.GuidGenerator.<clinit>(GuidGenerator.java:39)
cassandra: [Apache Cassandra Error]     ... 15 more
cassandra: [Apache Cassandra Error] Caused by: java.net.UnknownHostException: MacBook-Pro: nodename nor servname provided, or not known
cassandra: [Apache Cassandra Error]     at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
cassandra: [Apache Cassandra Error]     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
cassandra: [Apache Cassandra Error]     at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
cassandra: [Apache Cassandra Error]     at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
cassandra: [Apache Cassandra Error]     ... 16 more
cassandra: Apache Cassandra failed to start.
Upsource process finished
Launcher is exiting

Once I fixed the domain name in my localhost, it started to work, but shouldn't that be part of the configuration?

8 comments
Comment actions Permalink

It looks like you have issues with DNS configuration on the machine. This seems that 'ping localhost' and 'ping $(hostname)' command fails for you. Please make sure that your hostname is resolvable to an IP address.


Please vote for the issue here https://youtrack.jetbrains.com/issue/UP-2706

0
Comment actions Permalink

And here is the log after all the /etc/hosts changes

MacBook-Pro:bin vivek$ ./upsource.sh run
Starting Upsource...
* Loading logging configuration from /Users/vivek/Development/Upsource/lib/log4j.xml
* Redirecting Upsource 1.0 logging to /Users/vivek/Development/Upsource/logs/bundleProcess
* Configuring Service-Container[bundleProcess]
* Configuring Starting Page Service
* Configuring Apache Cassandra
cassandra: objc[3085]: Class JavaLaunchHelper is implemented in both /Users/vivek/Development/Upsource/internal/java/mac-x64/bin/java and /Users/vivek/Development/Upsource/internal/java/mac-x64/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
* Configuring Hub
* Configuring Service-Container[vcsSettingsContainer]
* Configuring VCS Settings
vcs-settings: Using Java: /Users/vivek/Development/Upsource/internal/java/mac-x64 (version "1.7.0_71")
vcs-settings: 0 [[APP-WRAPPER] Proxy 1] INFO jetbrains.vcs.server.settings.jetty.JettyServiceBase  - Updated service properties file: /Users/vivek/Development/Upsource/conf/vcs-settings/vcs-settings.properties
* Configuring Upsource Analyzer
* Configuring Upsource Monitoring
* Configuring Upsource Frontend
* Starting Service-Container[bundleProcess]
* Upsource 1.0 will be available on [http://127.0.0.1:8080/bundle/starting] after start


[Upsource Error] log4j:WARN No appenders could be found for logger (com.jetbrains.bundle.starting_page.config.StartingPageBackendInitializer).
[Upsource Error] log4j:WARN Please initialize the log4j system properly.
[Upsource Error] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Init web application log4j location: jetbrains/jetpass/server/main/log4j.xml
23:48:04,980 WARN  [CustomEditorConfigurer        ] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserBrowser; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@470d3fec
23:48:04,981 WARN  [CustomEditorConfigurer        ] Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [jetbrains.mps.webr.runtime.util.UserOS; offending editor instance: jetbrains.mps.webr.runtime.util.StringNullableEditor@470d3fec
23:48:07,430 ERROR [SupportedLocales              ] Cannot load locales configuration. To add locales configuration create file classpath:translations/supportedLocales.xml
23:48:07,702 WARN  [MessagesContainer             ] Failed to load translations. No translation will be used in application
23:48:17,081 WARN  [RealmVerifier                 ] RP discovery / realm validation disabled;
gflogger:  version 20131206
23:50:22,759 ERROR [HostToBaseUrlConfiguration    ] Can't get local address
java.net.UnknownHostException: MacBook-Pro: MacBook-Pro: nodename nor servname provided, or not known
    at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
    at webr.framework.url.HostToBaseUrlConfiguration.getBaseUrl(HostToBaseUrlConfiguration.java:38)
    at jetbrains.jetpass.server.main.HubHostToBaseConfiguration.getBaseUrlOutsideRequest(HubHostToBaseConfiguration.java:42)
    at jetbrains.jetpass.server.main.App.init(App.java:62)
    at jetbrains.jetpass.server.main.InitWebApplicationServiceLocatorListener.onAfterInit(InitWebApplicationServiceLocatorListener.java:47)
    at jetbrains.springframework.configuration.runtime.ServiceLocator.fireLocalAfterInit(ServiceLocator.java:112)
    at jetbrains.jetpass.server.main.ServletImpl.init(ServletImpl.java:34)
    at javax.servlet.GenericServlet.init(GenericServlet.java:244)
    at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:600)
    at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:389)
    at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:869)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
    at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1341)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1334)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:497)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
    at org.eclipse.jetty.server.Server.start(Server.java:387)
    at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
    at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
    at org.eclipse.jetty.server.Server.doStart(Server.java:354)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
    at com.jetbrains.service.jetty.JettyServiceBase.start(JettyServiceBase.java:118)
    at com.jetbrains.bundle.services.impl.InProcessJettyService.doStart(InProcessJettyService.java:33)
    at com.jetbrains.bundle.services.impl.ServiceBase.start(ServiceBase.java:51)
    at com.jetbrains.bundle.Services.startService(Services.java:422)
    at com.jetbrains.bundle.Services.startAllServices(Services.java:407)
    at com.jetbrains.bundle.Services.start(Services.java:379)
    at com.jetbrains.bundle.BundleMain.start(BundleMain.java:188)
    at com.jetbrains.bundle.BundleMain.start(BundleMain.java:158)
    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
    at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    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: java.net.UnknownHostException: MacBook-Pro: nodename nor servname provided, or not known
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
    at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
    ... 45 more

0
Comment actions Permalink

Ping resolves to...

MacBook-Pro:bin vivek$ ping localhost
PING localdomain (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.050 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.094 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.075 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.078 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.100 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.148 ms
ç64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.065 ms

0
Comment actions Permalink

it attemps to resolve '
MacBook-Pro' to an IP address. Fails.

What is the output of 'hostname' command?

0
Comment actions Permalink

MacBook-Pro:bin vivek$ hostname


MacBook-Pro.local
0
Comment actions Permalink

Please check what we have in prerequisites: https://www.jetbrains.com/upsource/help/1.0/prerequisites.html

  1. Your fully qualified hostname should be resolvable to your IP address. To check it:

    • On Linux or Mac OS, run the following command:
      ping $(hostname -f)
    • On Windows, to get fully qualified hostname, run:
      ipconfig /all 
      then try to ping that name (it should look like mymachine.mydomain.com)
1
Comment actions Permalink

Thanks, resolved the issue!


1
Comment actions Permalink

I had the same issue

`

$(hostname -f)

command [hostname]: hostname: Temporary failure in name resolution

` 

It's Solved by adding the hostname (XXXX) into the hosts file

127.0.0.1 XXXX XXXX.localdomain

as there is no domain name in the host

0

Please sign in to leave a comment.