Hi!
I'm trying to install Sandstorm from source on an Ubuntu 16.04 machine running on Azure, but I'm getting the following errors in the Sandstorm system log when trying to complete the setup (built from v0.196, commit 82498f6):
When trying to fetch "pre-installed" apps:
Exception in setTimeout callback: Error: getaddrinfo ENOTFOUND app-index.sandstorm.io app-index.sandstorm.io:443
at Object.Future.wait (/programs/server/node_modules/fibers/future.js:449:15)
at Object.call (packages/meteor/helpers.js:119:1)
at Object.HTTP.get (packages/http/httpcall_common.js:50:20)
at SandstormDb.updateAppIndex (packages/sandstorm-db/db.js:1717:23)
at startPreinstallingAppsHelper (imports/server/migrations.js:673:8)
at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
at packages/meteor/timers.js:6:1
at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)
- - - - -
at errnoException (dns.js:27:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26)
And when trying to log in using Google or Github:
{"line":"398","file":"oauth_server.js","message":"Error in OAuth Server: Failed to complete OAuth handshake with Google. getaddrinfo ENOTFOUND accounts.google.com accounts.google.com:443","time":{"$date":1479813890728},"level":"warn"}
Exception while invoking method 'login' Error: Failed to complete OAuth handshake with Google. getaddrinfo ENOTFOUND accounts.google.com accounts.google.com:443
at getTokens (packages/google/google_server.js:59:1)
at Object.handleOauthRequest (packages/google/google_server.js:10:1)
at OAuth._requestHandlers.(anonymous function) (packages/oauth2/oauth2_server.js:8:1)
at middleware (packages/oauth/oauth_server.js:173:1)
at packages/oauth/oauth_server.js:146:1
My sandstorm.conf file is as follows:
SERVER_USER=eemeli
PORT=6080
MONGO_PORT=6081
BIND_IP=0.0.0.0
BASE_URL=http://custom-url-here.fi:6080
WILDCARD_HOST=*.custom-url-here.fi:6080
UPDATE_CHANNEL=none
ALLOW_DEV_ACCOUNTS=false
SMTP_LISTEN_PORT=30025
The server has inbound ports 80, 443, and 6080 open, and curl'ing from there to any of the apparently not-found domains (e.g.
https://accounts,
google.com,
https://github.com) is successful. Getting an admin token and signing in with it do succeed at the custom URL, and configuring Google & Github as account providers appears to persist across Sandstorm service restarts.
Is there something I perhaps missed in the setup, or something additional info that might help with figuring out what's happening here? I've tried running the test suite, but am currently stuck with that at Selenium timing out its connection to Firefox (v50.0), which I'll next try to downgrade to 47.
Btw, it'd be nice if the dependencies for the tests were listed somewhere, rather than needing to discover them one by one. Also, at least the default Ubuntu vagrant version does not appear to be compatible with the libvirt plugin (for the installer tests), but the upstream version works fine.
eemeli