Sites to white list

Hi
I work at a school and we are looking at using defold. We have installed it but when we select a new template with a blank template it reaches out to the internet and gets blocked by our filter.
Is there a list of site to whitelist?

Thanks

1 Like

For templates to work, github.com should be there on the list (probably port 443 and port 22 both)

And obviously anything *.defold.com
https://build.defold.com is mandatory, for example, if you want to use native extensions.

5 Likes

Exciting! I’d really like to learn more about your plans for Defold in a school context! We’ve collaborated with schools and done programming meetups and summer camps for kids here in Sweden (in collaboration with the non-profit organisation Hello World).

4 Likes

We can download the templates manually but get this from within Defold

image

Could it be that certain apps are blocked from making connections while others such as your browser is allowed to make the connection?

Or that Defold is trying to clone the repos from GitHub via SSH (port 22)?

Nope, we are downloading links like https://github.com/defold/template-empty/archive/master.zip

iirc, the github download links are redirects?

E.g.

$ curl https://github.com/defold/template-empty/archive/master.zip
<html><body>You are being <a href="https://codeload.github.com/defold/template-empty/zip/master">redirected</a>.</body></html>
1 Like

No we have no restrictions on programs accessing the internet. Which is puzzling us as to why this is happening.

There must be something with your network preventing the download. @vlaaad can you please confirm that it’s a normal HTTP GET and on port 80 or 443?

Does the editor log mention anything useful?

editor log?

You can view the editor logs via the menu:

And if you check the most recent one, after your error pops up, to see if there’s anything relevant there

Ok yes, I manually loaded a template and was able to access the menus. Here is a log snippet

2019-06-25 14:50:29.181 21201 [clojure-agent-send-off-pool-8] WARN editor.analytics - {:line 191, :msg “An exception was thrown when sending analytics data”}
java.net.ConnectException: Connection refused: connect
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:591)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
at java.base/sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:265)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1181)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1075)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:163)
at editor.analytics$post_BANG_.invokeStatic(analytics.clj:174)
at editor.analytics$send_payload_BANG_.invokeStatic(analytics.clj:182)
at editor.analytics$send_one_batch_BANG_.invokeStatic(analytics.clj:206)
at editor.analytics$start_worker_BANG_$fn__10039.invoke(analytics.clj:242)
at clojure.core$binding_conveyor_fn$fn__5739.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2019-06-25 14:50:29.183 21203 [clojure-agent-send-off-pool-8] WARN editor.analytics - {:line 231, :msg “Analytics shut down after 5 failed send attempts”}

This looks safe to ignore

Ok I’ve renamed the log file and opened Defold and stopped at receiving the error

editor2.2019-06-25.txt (40.9 KB)

1 Like

I see it can’t check for updates, are you sure it has access to *.defold.com and *.github.com?

1 Like

And what if you try to select New Project->Empty Project, wait for it to fail with “Host Unreachable” and check the log?

Or is that what you did here?