Mos tool version 2.15.0 error while local build (dial tcp: lookup api.github.com: device or resource busy)

Hi all,

I encountered an issue while using the downgraded mos tool (version 2.15.0) to build firmware.

  1. My goal is:

My goal is to build firmware with the Mongoose OS tool version 2.15.0. We have legacy code that allegedly only works with 2.15.0.

  1. My actions are:
    My action is as follows:
  • install the mos tool (this way as only this way seems to work for subsequently downgrading it)
curl -fsSL https://mongoose-os.com/downloads/mos/install.sh | NO_PPA=1 /bin/bash
  • downgrade the most tool
mos update 2.15.0
  • then, attempt to build the firmware:
mos build --local --arch esp8266 --verbose --clean
  1. The result I see is:

The result of the above command is:

Warning: --arch is deprecated, use --platform
Handling lib "arduino-compat"...
Handling lib "rpc-service-config"...
Handling lib "dash"...
Handling lib "sntp"...
arduino-compat: Does not exist, cloning from "https://github.com/mongoose-os-libs/arduino-compat"...
dash: Does not exist, cloning from "https://github.com/mongoose-os-libs/dash"...
Handling lib "http-server"...
Handling lib "gcp"...
gcp: Does not exist, cloning from "https://github.com/mongoose-os-libs/gcp"...
Handling lib "rpc-service-ota"...
rpc-service-ota: Does not exist, cloning from "https://github.com/mongoose-os-libs/rpc-service-ota"...
Handling lib "arduino-wire"...
Handling lib "mqtt"...
rpc-service-config: Does not exist, cloning from "https://github.com/mongoose-os-libs/rpc-service-config"...
Handling lib "rpc-service-fs"...
rpc-service-fs: Does not exist, cloning from "https://github.com/mongoose-os-libs/rpc-service-fs"...
Handling lib "arduino-adafruit-tsl2561"...
Handling lib "ca-bundle"...
Handling lib "pwm"...
arduino-adafruit-tsl2561: Does not exist, cloning from "https://github.com/WooWapDaBug/arduino-adafruit-tsl2561"...
mqtt: Does not exist, cloning from "https://github.com/mongoose-os-libs/mqtt"...
Handling lib "mongoose-os-utils-interval"...
Handling lib "core"...
Handling lib "rpc-uart"...
Handling lib "onewire"...
Handling lib "wifi"...
Handling lib "i2c"...
i2c: Does not exist, cloning from "https://github.com/mongoose-os-libs/i2c"...
sntp: Checking out 2.15.0...
http-server: Checking out 2.15.0...
arduino-wire: Checking out 2.15.0...
pwm: Checking out 2.15.0...
sntp: Done, hash 42591292134b829afbceeecd1d52cd510dd922c2
ca-bundle: Checking out master...
wifi: Checking out 2.15.0...
mongoose-os-utils-interval: Checking out master...
core: Checking out 2.15.0...
rpc-uart: Checking out 2.15.0...
pwm: Done, hash 5818662baa7e8bc8e965420f0c1a78203dba0a76
onewire: Checking out 2.15.0...
http-server: Done, hash c13d9801ef3914f7954cc2e3424a78b89cea7f25
pwm: Hash unchanged at 5818662baa7e8bc8e965420f0c1a78203dba0a76 (dir "/home/ubuntu/Documents/stuff/folder/deps/pwm")
pwm: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/pwm"
mongoose-os-utils-interval: Done, hash 901303114d4784dcf1c9a3b5d5f845032a24957e
http-server: Hash unchanged at c13d9801ef3914f7954cc2e3424a78b89cea7f25 (dir "/home/ubuntu/Documents/stuff/folder/deps/http-server")
http-server: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/http-server"
sntp: Hash unchanged at 42591292134b829afbceeecd1d52cd510dd922c2 (dir "/home/ubuntu/Documents/stuff/folder/deps/sntp")
sntp: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/sntp"
ca-bundle: Done, hash 82ddde1a7e95d316f0ef6a43ecfc265b0fbdaf4c
wifi: Done, hash 328e3d98c1c81163ecbda6cab18e53f1430b4f4e
ca-bundle: Hash unchanged at 82ddde1a7e95d316f0ef6a43ecfc265b0fbdaf4c (dir "/home/ubuntu/Documents/stuff/folder/deps/ca-bundle")
ca-bundle: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/ca-bundle"
mongoose-os-utils-interval: Hash unchanged at 901303114d4784dcf1c9a3b5d5f845032a24957e (dir "/home/ubuntu/Documents/stuff/folder/deps/mongoose-os-utils-interval")
mongoose-os-utils-interval: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/mongoose-os-utils-interval"
wifi: Hash unchanged at 328e3d98c1c81163ecbda6cab18e53f1430b4f4e (dir "/home/ubuntu/Documents/stuff/folder/deps/wifi")
wifi: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/wifi"
core: Done, hash 90f56f1e361c7d25ef8c2e3b9a83ef0369760f2e
rpc-uart: Done, hash 4c68e5d7b3eecb19ccc6128f111a118384ed20b4
arduino-wire: Done, hash 122eee437a97f6df0292080c17440243c99102e2
core: Hash unchanged at 90f56f1e361c7d25ef8c2e3b9a83ef0369760f2e (dir "/home/ubuntu/Documents/stuff/folder/deps/core")
core: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/core"
rpc-uart: Hash unchanged at 4c68e5d7b3eecb19ccc6128f111a118384ed20b4 (dir "/home/ubuntu/Documents/stuff/folder/deps/rpc-uart")
rpc-uart: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-uart"
arduino-wire: Hash unchanged at 122eee437a97f6df0292080c17440243c99102e2 (dir "/home/ubuntu/Documents/stuff/folder/deps/arduino-wire")
arduino-wire: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/arduino-wire"
onewire: Done, hash e90a2304cd7203184ef50904c2841cdf2b7a5390
onewire: Hash unchanged at e90a2304cd7203184ef50904c2841cdf2b7a5390 (dir "/home/ubuntu/Documents/stuff/folder/deps/onewire")
onewire: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/onewire"
arduino-compat: Checking out 2.15.0...
arduino-compat: Done, hash 943b0bca7333235ff527d9bca5cf0d7b70ea50b5
arduino-compat: Hash is updated:  -> 943b0bca7333235ff527d9bca5cf0d7b70ea50b5
arduino-compat: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/arduino-compat"
gcp: Checking out 2.15.0...
gcp: Done, hash 0cbd89cbf480b8186eb7245e88a2e9bd23278b83
gcp: Hash is updated:  -> 0cbd89cbf480b8186eb7245e88a2e9bd23278b83
gcp: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/gcp"
arduino-adafruit-tsl2561: Checking out master...
arduino-adafruit-tsl2561: Done, hash 82878a3caff6afae7f07f1aa4f912c923b73b268
arduino-adafruit-tsl2561: Hash is updated:  -> 82878a3caff6afae7f07f1aa4f912c923b73b268
arduino-adafruit-tsl2561: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/arduino-adafruit-tsl2561"
rpc-service-ota: Checking out 2.15.0...
rpc-service-ota: Done, hash 59faf121cbae8fb260557af7064c4a0216cbd0d0
rpc-service-ota: Hash is updated:  -> 59faf121cbae8fb260557af7064c4a0216cbd0d0
rpc-service-ota: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-service-ota"
rpc-service-fs: Checking out 2.15.0...
rpc-service-fs: Done, hash 5f252c2fa5ba989c09f734a4c407bcfef3699e38
rpc-service-fs: Hash is updated:  -> 5f252c2fa5ba989c09f734a4c407bcfef3699e38
rpc-service-fs: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-service-fs"
rpc-service-config: Checking out 2.15.0...
rpc-service-config: Done, hash b30e187977d8dafcb4297cff60e036855a7ff531
rpc-service-config: Hash is updated:  -> b30e187977d8dafcb4297cff60e036855a7ff531
rpc-service-config: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-service-config"
dash: Checking out 2.15.0...
dash: Done, hash 8cdeb065b914d83418b87b6336dfddd8aec63afb
dash: Hash is updated:  -> 8cdeb065b914d83418b87b6336dfddd8aec63afb
dash: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/dash"
mqtt: Checking out 2.15.0...
mqtt: Done, hash e28a8700aaf50587e93612661010478a7d7ef920
mqtt: Hash is updated:  -> e28a8700aaf50587e93612661010478a7d7ef920
mqtt: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/mqtt"
i2c: Checking out 2.15.0...
i2c: Done, hash a2135aa5d5ff423f949d9e08c481eb0dc0091f2a
i2c: Hash is updated:  -> a2135aa5d5ff423f949d9e08c481eb0dc0091f2a
i2c: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/i2c"
Handling lib "mongoose"...
mongoose: Does not exist, cloning from "https://github.com/mongoose-os-libs/mongoose"...
mongoose: Checking out 2.15.0...
mongoose: Done, hash b9adb81060805d1de1b185549efb33ce920a210b
mongoose: Hash is updated:  -> b9adb81060805d1de1b185549efb33ce920a210b
mongoose: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/mongoose"
Handling lib "rpc-common"...
rpc-common: Does not exist, cloning from "https://github.com/mongoose-os-libs/rpc-common"...
rpc-common: Checking out 2.15.0...
rpc-common: Done, hash 4591983b26e3a2d49e7f439856a8c95b788b3a8c
rpc-common: Hash is updated:  -> 4591983b26e3a2d49e7f439856a8c95b788b3a8c
rpc-common: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-common"
Handling lib "ota-http-client"...
ota-http-client: Does not exist, cloning from "https://github.com/mongoose-os-libs/ota-http-client"...
ota-http-client: Checking out 2.15.0...
ota-http-client: Done, hash e2f9fcfcae9e6efb24e6de6b42af6dd483dd675b
ota-http-client: Hash is updated:  -> e2f9fcfcae9e6efb24e6de6b42af6dd483dd675b
ota-http-client: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/ota-http-client"
Handling lib "rpc-ws"...
Handling lib "ota-shadow"...
rpc-ws: Does not exist, cloning from "https://github.com/mongoose-os-libs/rpc-ws"...
ota-shadow: Does not exist, cloning from "https://github.com/mongoose-os-libs/ota-shadow"...
Handling lib "shadow"...
shadow: Does not exist, cloning from "https://github.com/mongoose-os-libs/shadow"...
shadow: Checking out 2.15.0...
rpc-ws: Checking out 2.15.0...
shadow: Done, hash 3c21f7bfd2f5e2cbaa8e3f4621ff3f964e669b64
shadow: Hash is updated:  -> 3c21f7bfd2f5e2cbaa8e3f4621ff3f964e669b64
shadow: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/shadow"
rpc-ws: Done, hash e8e507f4a91eb96a0c664fa33319b2e4f0ed89b2
rpc-ws: Hash is updated:  -> e8e507f4a91eb96a0c664fa33319b2e4f0ed89b2
rpc-ws: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/rpc-ws"
ota-shadow: Checking out 2.15.0...
ota-shadow: Done, hash b3b148e5c6c21ae226143c1f8025facea51228fc
ota-shadow: Hash is updated:  -> b3b148e5c6c21ae226143c1f8025facea51228fc
ota-shadow: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/ota-shadow"
Handling lib "mbedtls"...
Handling lib "vfs-common"...
mbedtls: Does not exist, cloning from "https://github.com/mongoose-os-libs/mbedtls"...
vfs-common: Does not exist, cloning from "https://github.com/mongoose-os-libs/vfs-common"...
vfs-common: Checking out 2.15.0...
vfs-common: Done, hash ae048a19d8f17f332d66fb42d1b072e8fde2b3fa
vfs-common: Hash is updated:  -> ae048a19d8f17f332d66fb42d1b072e8fde2b3fa
vfs-common: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/vfs-common"
mbedtls: Checking out 2.15.0...
mbedtls: Done, hash a98f87ef6ef18777c95afb71b2884615d8971be6
mbedtls: Hash is updated:  -> a98f87ef6ef18777c95afb71b2884615d8971be6
mbedtls: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/mbedtls"
Handling lib "ota-common"...
ota-common: Does not exist, cloning from "https://github.com/mongoose-os-libs/ota-common"...
ota-common: Checking out 2.15.0...
ota-common: Done, hash e83cf54aee6b05799f0c64ef4c002b3c418be9d8
ota-common: Hash is updated:  -> e83cf54aee6b05799f0c64ef4c002b3c418be9d8
ota-common: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/ota-common"
Handling lib "atca"...
atca: Does not exist, cloning from "https://github.com/mongoose-os-libs/atca"...
atca: Checking out 2.15.0...
atca: Done, hash f27a1b85d87e373f8c10aadd7227af020d997aef
atca: Hash is updated:  -> f27a1b85d87e373f8c10aadd7227af020d997aef
atca: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/atca"
Handling lib "vfs-dev-part"...
Handling lib "vfs-fs-spiffs"...
vfs-fs-spiffs: Does not exist, cloning from "https://github.com/mongoose-os-libs/vfs-fs-spiffs"...
vfs-dev-part: Does not exist, cloning from "https://github.com/mongoose-os-libs/vfs-dev-part"...
vfs-dev-part: Checking out 2.15.0...
vfs-dev-part: Done, hash 94426df449f807e4268e1d1a3ee5146da85902da
vfs-dev-part: Hash is updated:  -> 94426df449f807e4268e1d1a3ee5146da85902da
vfs-dev-part: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/vfs-dev-part"
vfs-fs-spiffs: Checking out 2.15.0...
vfs-fs-spiffs: Done, hash 6fef5f74fc5f8e07b6324759066c0e9d06653693
vfs-fs-spiffs: Hash is updated:  -> 6fef5f74fc5f8e07b6324759066c0e9d06653693
vfs-fs-spiffs: Prepared local dir: "/home/ubuntu/Documents/stuff/folder/deps/vfs-fs-spiffs"
The flag --repo is not given, going to use mongoose-os repository
mongoose-os: Does not exist, cloning from "https://github.com/cesanta/mongoose-os"...
mongoose-os: Checking out 2.15.0...
mongoose-os: Done, hash 787ac38aae90231b9db9c71cf19dfc617ca58166
Fetching libmbedtls-esp8266.a (2.15.0) from https://github.com/mongoose-os-libs/mbedtls/releases/download/2.15.0/libmbedtls-esp8266.a...
E1109 17:36:10.994164   11513 swmodule.go:366] GitHub asset libmbedtls-esp8266.a download failed (attempt 1): failed to fetch https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: Get https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: dial tcp: lookup api.github.com: device or resource busy
Fetching libmbedtls-esp8266.a (2.15.0) from https://github.com/mongoose-os-libs/mbedtls/releases/download/2.15.0/libmbedtls-esp8266.a...
E1109 17:36:11.996198   11513 swmodule.go:366] GitHub asset libmbedtls-esp8266.a download failed (attempt 2): failed to fetch https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: Get https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: dial tcp: lookup api.github.com: device or resource busy
Fetching libmbedtls-esp8266.a (2.15.0) from https://github.com/mongoose-os-libs/mbedtls/releases/download/2.15.0/libmbedtls-esp8266.a...
E1109 17:36:12.997502   11513 swmodule.go:366] GitHub asset libmbedtls-esp8266.a download failed (attempt 3): failed to fetch https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: Get https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: dial tcp: lookup api.github.com: device or resource busy
Error: /go/src/github.com/mongoose-os/mos/mos/manifest_parser/manifest_parser.go:353: neither sources nor prebuilt binary exists for the lib "mbedtls" (or, if a library doesn't have any code by design, its mos.yml shouldn't contain "sources"). Fetch error was: [failed to download libmbedtls-esp8266.a: failed to fetch https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: Get https://api.github.com/repos/mongoose-os-libs/mbedtls/releases/tags/2.15.0: dial tcp: lookup api.github.com: device or resource busy]
/go/src/github.com/mongoose-os/mos/mos/build_local.go:144: 
/go/src/github.com/mongoose-os/mos/mos/build.go:223: 
/go/src/github.com/mongoose-os/mos/mos/build.go:166: 
/go/src/github.com/mongoose-os/mos/mos/main.go:196: build failed
  1. My expectation & question is:

We so far tried on 2 different machines and get the same error. Any help would be greatly appreciated!

Best regards,
Mark

Can’t reproduce here

Fetching libmbedtls-esp8266.a (2.15.0) from https://github.com/mongoose-os-libs/mbedtls/releases/download/2.15.0/libmbedtls-esp8266.a...

Can you give a simple example that works only with 2.15.0 and not with newer versions?

BTW, you don’t have to downgrade the mos tool. You can use the desired version like this

libs_version: 2.15.0
modules_version: 2.15.0
mongoose_os_version: 2.15.0

Thank you for your reply and help! We made it work by replacing the version numbers in the line as you wrote. I’ll try to come back with an example that works only with 2.15.0 and not with newer versions!