Problems running xwiki without internet access

Hello,

I’m trialling XWiki on my work intranet where (sadly) we do not have internet access available. So I’m installing and configuring it on an external laptop and then manually copying the files onto the intranet machine.

Initially this worked fine, but after adding a bunch of extensions I started getting an error when running XWiki on the intranet machine, but not on the external laptop with internet access.

XWiki still seems to work fine on the intranet, but I’d like to resolve or at least understand the errors before moving on.

The key error seems to be:

2018-02-07 18:14:49,758 [Core extension repository updater] ERROR aultExtensionRepositoryManager - Unexpected error when trying to find extension [org.eclipse.jetty:jetty-xml/9.4.6.v20170531] in repository [maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public]

I’m not sure if that’s a problem with a specific extension, or if for XWiki is trying to automatically check for new updates (in which case I’m not sure why it was okay previously when there were only a few extensions installed).

Full logs below, any pointers would be much appreciated .

Thanks,
Adam.

sableye(shand)$ ./start_xwiki.sh
An XWiki lock file exists at /var/tmp/xwiki-8080.lck but no XWiki is executing. Removing lock file...
Starting Jetty on port 8080, please wait...
2018-02-07 18:13:56.490:INFO::main: Logging initialized @878ms to org.eclipse.jetty.util.log.StdErrLog
2018-02-07 18:13:56.886:INFO:oejs.Server:main: jetty-9.4.6.v20170531
2018-02-07 18:13:56.921:INFO:oejs.AbstractNCSARequestLog:main: Opened /Users/shand/Sites/xwiki-platform-distribution-flavor-jetty-hsqldb-9.8/data/logs/2018_02_07.request.log
2018-02-07 18:13:56.929:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:///Users/shand/Sites/xwiki-platform-distribution-flavor-jetty-hsqldb-9.8/jetty/contexts/] at interval 0
2018-02-07 18:13:57.148:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2018-02-07 18:13:57.149:INFO:oejs.session:main: No SessionScavenger set, using defaults
2018-02-07 18:13:57.154:INFO:oejs.session:main: Scavenging every 660000ms
2018-02-07 18:13:57.197:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@69ea3742{/,file:///Users/shand/Sites/xwiki-platform-distribution-flavor-jetty-hsqldb-9.8/webapps/root/,AVAILABLE}{/root}
2018-02-07 18:13:57.987:INFO:oeja.AnnotationConfiguration:main: Scanning elapsed time=6ms
2018-02-07 18:14:30,973 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2018-02-07 18:14:30,983 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data/solr]
2018-02-07 18:14:33,040 [coreLoadExecutor-6-thread-1] WARN  o.a.s.c.SolrResourceLoader     - Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2018-02-07 18:14:35,716 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
2018-02-07 18:14:39.743:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@23fe1d71{/xwiki,file:///Users/shand/Sites/xwiki-platform-distribution-flavor-jetty-hsqldb-9.8/webapps/xwiki/,AVAILABLE}{/xwiki}
2018-02-07 18:14:39.774:INFO:oejs.AbstractConnector:main: Started ServerConnector@7866ffa{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2018-02-07 18:14:39.775:INFO:oejs.Server:main: Started @44165ms
2018-02-07 18:14:39.775:INFO:oxtjl.NotifyListener:main: ----------------------------------
2018-02-07 18:14:39.779:INFO:oxtjl.NotifyListener:main: Server started, you can now open http://sableye....co.nz:8080/ in your browser to access your wiki.
2018-02-07 18:14:39.780:INFO:oxtjl.NotifyListener:main: ----------------------------------
2018-02-07 18:14:49,758 [Core extension repository updater] ERROR aultExtensionRepositoryManager - Unexpected error when trying to find extension [org.eclipse.jetty:jetty-xml/9.4.6.v20170531] in repository [maven-xwiki:maven:http://nexus.xwiki.org/nexus/content/groups/public]
org.xwiki.extension.ResolveException: Failed to resolve artifact [org.eclipse.jetty:jetty-xml:jar:9.4.6.v20170531] descriptor
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:403)
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:386)
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:380)
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolve(AetherExtensionRepository.java:186)
	at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:288)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.updateExtensions(DefaultCoreExtensionScanner.java:116)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionRepository$1.run(DefaultCoreExtensionRepository.java:138)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.eclipse.jetty:jetty-xml:pom:9.4.6.v20170531 from/to maven-xwiki (http://nexus.xwiki.org/nexus/content/groups/public): Connect to nexus.xwiki.org:80 timed out
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.loadPom(AetherExtensionRepository.java:514)
	at org.xwiki.extension.repository.aether.internal.AetherExtensionRepository.resolveMaven(AetherExtensionRepository.java:397)
	... 7 common frames omitted
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.eclipse.jetty:jetty-xml:pom:9.4.6.v20170531 from/to maven-xwiki (http://nexus.xwiki.org/nexus/content/groups/public): Connect to nexus.xwiki.org:80 timed out
	at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
	... 11 common frames omitted
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to nexus.xwiki.org:80 timed out
	at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
	at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
	at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:318)
	at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:274)
	at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
	... 16 common frames omitted
^@2018-02-07 18:16:06,222 [Core extension repository updater] ERROR aultExtensionRepositoryManager - Unexpected error when trying to find extension [org.eclipse.jetty:jetty-xml/9.4.6.v20170531] in repository [store.xwiki.com:xwiki:https://store.xwiki.com/xwiki/rest]
org.xwiki.extension.ResolveException: Failed to create extension object for extension [org.eclipse.jetty:jetty-xml/9.4.6.v20170531]
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:344)
	at org.xwiki.extension.repository.internal.DefaultExtensionRepositoryManager.resolve(DefaultExtensionRepositoryManager.java:288)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionScanner.updateExtensions(DefaultCoreExtensionScanner.java:116)
	at org.xwiki.extension.repository.internal.core.DefaultCoreExtensionRepository$1.run(DefaultCoreExtensionRepository.java:138)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Failed to request [https://store.xwiki.com/xwiki/rest/repository/extensions/org.eclipse.jetty%3Ajetty-xml/versions/9.4.6.v20170531]
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:247)
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTObject(XWikiExtensionRepository.java:305)
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:350)
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.resolve(XWikiExtensionRepository.java:340)
	... 4 common frames omitted
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to store.xwiki.com:443 [store.xwiki.com/5.135.69.203] failed: Operation timed out (Connection timed out)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159)
	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
	at org.xwiki.extension.repository.xwiki.internal.XWikiExtensionRepository.getRESTResource(XWikiExtensionRepository.java:244)
	... 7 common frames omitted
Caused by: java.net.ConnectException: Operation timed out (Connection timed out)
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:589)
	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:339)
	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
	... 17 common frames omitted
^@^@^@^@^@^@^@^@^@^@

This is simply XWiki trying to check for updates for installed extensions. I’ve added http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/#HExtensionRepositories to the doc.

Very helpful, thanks!