[Bug]: Can not deploy offline with docker.
Installation Method
None
The Problem
Hi, guys. I would like to deploy Stirling-PDF via docker on a server where the Internet was not available. After dozens of attempts, I was failed to visit self-hosted Stirling-PDF via http://localhost_ip:49675.
docker-compose.yml
version: '3.3'
services:
stirling-pdf:
image: stirlingtools/stirling-pdf:latest
ports:
- '49675:8080'
volumes:
- ./StirlingPDF/trainingData:/usr/share/tessdata # Required for extra OCR languages
- ./StirlingPDF/extraConfigs:/configs
- ./StirlingPDF/customFiles:/customFiles/
- ./StirlingPDF/logs:/logs/
- ./StirlingPDF/pipeline:/pipeline/
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
- POSTHOG_ENABLED=false
An java.net.UnknownHostException happened after running docker compose -f docker-compose.yml up . Below was details of the exception:
Version of Stirling-PDF
latest
Last Working Version of Stirling-PDF
No response
Page Where the Problem Occurred
java.net.UnknownHostException
Docker Configuration
version: '3.3'
services:
stirling-pdf:
image: stirlingtools/stirling-pdf:latest
ports:
- '49675:8080'
volumes:
- ./StirlingPDF/trainingData:/usr/share/tessdata # Required for extra OCR languages
- ./StirlingPDF/extraConfigs:/configs
- ./StirlingPDF/customFiles:/customFiles/
- ./StirlingPDF/logs:/logs/
- ./StirlingPDF/pipeline:/pipeline/
environment:
- DOCKER_ENABLE_SECURITY=false
- INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false
- POSTHOG_ENABLED=false
Relevant Log Output
zhongsheng@zhongsheng-virtual-machine:~/Downloads/Docker-Stirling-PDF$ sudo docker compose -f docker-compose-without-login.yml up
WARN[0000] /home/zhongsheng/Downloads/Docker-Stirling-PDF/docker-compose-without-login.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Running 2/2
✔ Network docker-stirling-pdf_default Created 0.2s
✔ Container docker-stirling-pdf-stirling-pdf-1 Created 0.1s
Attaching to stirling-pdf-1
stirling-pdf-1 | Copying original files without overwriting existing files
stirling-pdf-1 | Running Stirling PDF with DOCKER_ENABLE_SECURITY=false and VERSION_TAG=0.36.6
stirling-pdf-1 | Setting permissions and ownership for necessary directories...
stirling-pdf-1 | Picked up JAVA_TOOL_OPTIONS: -XX:MaxRAMPercentage=75
stirling-pdf-1 | ____ _____ ___ ____ _ ___ _ _ ____ ____ ____ _____
stirling-pdf-1 | / ___|_ _|_ _| _ \| | |_ _| \ | |/ ___| | _ \| _ \| ___|
stirling-pdf-1 | \___ \ | | | || |_) | | | || \| | | _ _____| |_) | | | | |_
stirling-pdf-1 | ___) || | | || _ <| |___ | || |\ | |_| |_____| __/| |_| | _|
stirling-pdf-1 | |____/ |_| |___|_| \_\_____|___|_| \_|\____| |_| |____/|_|
stirling-pdf-1 | Powered by Spring Boot 3.4.1
stirling-pdf-1 | 07:41:49.459 [main] INFO s.software.SPDF.SPdfApplication - Starting SPdfApplication v0.36.6 using Java 21.0.5 with PID 10 (/app.jar started by stirlingpdfuser in /)
stirling-pdf-1 | 07:41:49.467 [main] INFO s.software.SPDF.SPdfApplication - The following 1 profile is active: "default"
stirling-pdf-1 | 07:41:54.195 [main] INFO s.software.SPDF.SPdfApplication - Running configs ApplicationProperties(legal=ApplicationProperties.Legal(termsAndConditions=https://www.stirlingpdf.com/terms-and-conditions, privacyPolicy=https://www.stirlingpdf.com/privacy-policy, accessibilityStatement=, cookiePolicy=, impressum=), security=ApplicationProperties.Security(enableLogin=false, csrfDisabled=false, initialLogin=ApplicationProperties.Security.InitialLogin(username=), oauth2=ApplicationProperties.Security.OAUTH2(enabled=false, issuer=, clientId=, autoCreateUser=true, blockRegistration=false, useAsUsername=email, scopes=[openid, profile, email], provider=google, client=ApplicationProperties.Security.OAUTH2.Client(google=Google [clientId=, clientSecret=NULL, scopes=[https://www.googleapis.com/auth/userinfo.email, https://www.googleapis.com/auth/userinfo.profile], useAsUsername=email], github=GitHub [clientId=, clientSecret=NULL, scopes=[read:user], useAsUsername=login], keycloak=Keycloak [issuer=, clientId=, clientSecret=NULL, scopes=[openid, profile, email], useAsUsername=preferred_username])), saml2=ApplicationProperties.Security.SAML2(enabled=false, autoCreateUser=true, blockRegistration=false, registrationId=stirling, idpSingleLogoutUrl=https://dev-XXXXXXXX.okta.com/app/dev-XXXXXXXX_stirlingpdf_1/externalKey/slo/saml, idpSingleLoginUrl=https://dev-XXXXXXXX.okta.com/app/dev-XXXXXXXX_stirlingpdf_1/externalKey/sso/saml, idpIssuer=http://www.okta.com/externalKey, idpCert=class path resource [okta.crt]), loginAttemptCount=5, loginResetTimeMinutes=120, loginMethod=all, customGlobalAPIKey=null), system=ApplicationProperties.System(defaultLocale=en-US, googlevisibility=false, showUpdate=false, showUpdateOnlyAdmin=false, customHTMLFiles=false, tessdataDir=/usr/share/tessdata, enableAlphaFunctionality=false, enableAnalytics=true), ui=ApplicationProperties.Ui(appName=null, homeDescription=null, appNameNavbar=null), endpoints=ApplicationProperties.Endpoints(toRemove=[], groupsToRemove=[]), metrics=ApplicationProperties.Metrics(enabled=true), automaticallyGenerated=ApplicationProperties.AutomaticallyGenerated(UUID=f895d06d-cbf0-4acc-b5e8-e4bf20ec53f1, appVersion=0.36.6), enterpriseEdition=ApplicationProperties.EnterpriseEdition(enabled=false, maxUsers=0, customMetadata=ApplicationProperties.EnterpriseEdition.CustomMetadata(autoUpdateMetadata=false, author=username, creator=Stirling-PDF, producer=Stirling-PDF)), autoPipeline=ApplicationProperties.AutoPipeline(outputFolder=null), processExecutor=ApplicationProperties.ProcessExecutor(sessionLimit=ApplicationProperties.ProcessExecutor.SessionLimit(libreOfficeSessionLimit=1, pdfToHtmlSessionLimit=1, pythonOpenCvSessionLimit=8, weasyPrintSessionLimit=16, installAppSessionLimit=1, calibreSessionLimit=1, qpdfSessionLimit=4, tesseractSessionLimit=1), timeoutMinutes=ApplicationProperties.ProcessExecutor.TimeoutMinutes(libreOfficeTimeoutMinutes=30, pdfToHtmlTimeoutMinutes=20, pythonOpenCvTimeoutMinutes=30, weasyPrintTimeoutMinutes=30, installAppTimeoutMinutes=60, calibreTimeoutMinutes=30, tesseractTimeoutMinutes=30, qpdfTimeoutMinutes=30)))
stirling-pdf-1 | 07:41:54.817 [main] INFO s.s.S.config.EndpointConfiguration - Total disabled endpoints: 3. Disabled endpoints: book-to-pdf, pdf-to-book, pdf-to-pdfa
stirling-pdf-1 | 07:41:58.486 [main] INFO s.software.SPDF.SPdfApplication - Started SPdfApplication in 10.674 seconds (process running for 13.306)
stirling-pdf-1 | 07:41:58.505 [scheduling-1] WARN s.software.SPDF.utils.FileMonitor - not monitoring any directory, even the root directory itself: ./pipeline/watchedFolders
stirling-pdf-1 | 07:41:58.509 [scheduling-1] INFO s.software.SPDF.utils.FileMonitor - Registered directory: ./pipeline/watchedFolders
stirling-pdf-1 | 07:41:58.513 [main] INFO s.software.SPDF.SPdfApplication - Stirling-PDF Started.
stirling-pdf-1 | 07:41:58.514 [main] INFO s.software.SPDF.SPdfApplication - Navigate to http://localhost:8080
stirling-pdf-1 | java.net.UnknownHostException: eu.i.posthog.com: Try again
stirling-pdf-1 | at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
stirling-pdf-1 | at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52)
stirling-pdf-1 | at java.base/java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1211)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1828)
stirling-pdf-1 | at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1139)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:169)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:131)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:73)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
stirling-pdf-1 | at com.posthog.java.HttpSender.send(HttpSender.java:85)
stirling-pdf-1 | at com.posthog.java.QueueManager.sendAll(QueueManager.java:108)
stirling-pdf-1 | at com.posthog.java.QueueManager.run(QueueManager.java:132)
stirling-pdf-1 | at java.base/java.lang.Thread.run(Thread.java:1583)
stirling-pdf-1 | Retrying sending events to PostHog after 1 retries. Waiting for 1500ms before retrying.
stirling-pdf-1 | java.net.UnknownHostException: eu.i.posthog.com
stirling-pdf-1 | at java.base/java.net.InetAddress$CachedLookup.get(InetAddress.java:988)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:169)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:131)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:73)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
stirling-pdf-1 | at com.posthog.java.HttpSender.send(HttpSender.java:85)
stirling-pdf-1 | at com.posthog.java.QueueManager.sendAll(QueueManager.java:108)
stirling-pdf-1 | at com.posthog.java.QueueManager.run(QueueManager.java:132)
stirling-pdf-1 | at java.base/java.lang.Thread.run(Thread.java:1583)
stirling-pdf-1 | Retrying sending events to PostHog after 2 retries. Waiting for 4500ms before retrying.
stirling-pdf-1 | java.net.UnknownHostException: eu.i.posthog.com
stirling-pdf-1 | at java.base/java.net.InetAddress$CachedLookup.get(InetAddress.java:988)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:169)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:131)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:73)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
stirling-pdf-1 | at com.posthog.java.HttpSender.send(HttpSender.java:85)
stirling-pdf-1 | at com.posthog.java.QueueManager.sendAll(QueueManager.java:108)
stirling-pdf-1 | at com.posthog.java.QueueManager.run(QueueManager.java:132)
stirling-pdf-1 | at java.base/java.lang.Thread.run(Thread.java:1583)
stirling-pdf-1 | Retrying sending events to PostHog after 3 retries. Waiting for 13500ms before retrying.
stirling-pdf-1 | java.net.UnknownHostException: eu.i.posthog.com: Try again
stirling-pdf-1 | at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
stirling-pdf-1 | at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:52)
stirling-pdf-1 | at java.base/java.net.InetAddress$PlatformResolver.lookupByName(InetAddress.java:1211)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1828)
stirling-pdf-1 | at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:1139)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1818)
stirling-pdf-1 | at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1688)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:169)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:131)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:73)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
stirling-pdf-1 | at com.posthog.java.shaded.okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
stirling-pdf-1 | at com.posthog.java.HttpSender.send(HttpSender.java:85)
stirling-pdf-1 | at com.posthog.java.QueueManager.sendAll(QueueManager.java:108)
stirling-pdf-1 | at com.posthog.java.QueueManager.run(QueueManager.java:132)
stirling-pdf-1 | at java.base/java.lang.Thread.run(Thread.java:1583)
stirling-pdf-1 | Giving up on sending events to PostHog after 4 retries.
Additional Information
No response
Browsers Affected
No response
No Duplicate of the Issue
- [X] I have verified that there are no existing issues raised related to my problem.
Does the application not work offline? This error in log is non blocking, the application should still load
also instead of POSTHOG_ENABLED you can do SYSTEM enableAnalytics as false (you can see this in settings.yml as well)
I had tied everything from what you said. It did not work for me.
I'm also running this in a restricted environment. Setting the environment variable SYSTEM_ENABLEANALYTICS to false worked for me.
I would, however, suggest that perhaps the inability to reach the analytics service shouldn't be a fatal error.
It's very odd it doesn't show as a fatal error on my system