'mos license' not working

#1

Hello,
I try to run mos license but is not workin.
I login in https://license.mongoose-os.com/ and I buy 1 license. When I run: mos license, I obtain this:

Error: /private/tmp/mos-20190522-45236-1i6a0g/mos-71e29917f3b75c489f6abdfa167ef244d3541901/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/license_cmd/license.go:108: Error obtaining license: No licenses of type mos left
/private/tmp/mos-20190522-45236-1i6a0g/mos-71e29917f3b75c489f6abdfa167ef244d3541901/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/main.go:196: license failed

Let me know what the problem is.
Thanks.

#2

Make sure you use the same account for mos as on license.mongoose-os.com .

#3

Hello,
I’m having the same issue. When you say “use the same account for mos as on the license.mongoose-os.com”, where would my email address go in the mos tool?

#4

I have the same question.

#5

Probably meant m-dash not mos.

#6

No, I use the same mail address in m-dash and license.mongoose-os-com, and not working.

#7

Any answer? I have same issue

#8

Please let me know a “not working” pair of mdash and license.mongoose-os.com logins, we’ll take a look.

#9

Any answer?
It’s been 3 months and I still can’t do: mos license

#10

please re-run with the debugging on, and share the output the output:

mos license --port PORT --logtostderr --v 3
#11

Hi, this is the output:

I1229 23:49:33.763973 9800 stream.go:292] 32 bytes read, err %!q(), eof? false buffer: ["""{“id”:1315459098972,“src”:"]
I1229 23:49:33.766619 9800 stream.go:292] 32 bytes read, err %!q(), eof? false buffer: ["""{“id”:1315459098972,“src”:“esp8266_A9A89F”,“dst”:“mos”,“res]
I1229 23:49:33.769419 9800 stream.go:292] 32 bytes read, err %!q(), eof? false buffer: [”""{“id”:1315459098972,“src”:“esp8266_A9A89F”,“dst”:“mos”,“result”:{“pid”: “mos”, “app”: “iole]
I1229 23:49:33.772168 9800 stream.go:292] 32 bytes read, err %!q(), eof? false buffer: [”""{“id”:1315459098972,“src”:“esp8266_A9A89F”,“dst”:“mos”,“result”:{“pid”: “mos”, “app”: “ioled_firmware”, “uid”: “035faefec59]
I1229 23:49:33.772296 9800 mgrpc.go:324] done,
I1229 23:49:33.772329 9800 mgrpc.go:351] Rec’d “esp8266_A9A89F” -> “mos” v=0 id=1315459098972 result=[123 34 112 105 100 34 58 32 34 109 111 115 34 44 32 34 97 112 112 34 58 32 34 105 111 108 101 100 95 102 105 114 109 119 97 114 101 34 44 32 34 117 105 100 34 58 32 34 48 51 53 102 97 101 102 101 99 53 57 100 102 54 55 52 34 125] error= 131
I1229 23:49:33.772349 9800 mgrpc.go:322] recv …
I1229 23:49:33.772394 9800 mgrpc.go:406] got response to request 1315459098972: [{OK id=1315459098972 resp=”{“pid”: “mos”, “app”: “ioled_firmware”, “uid”: “035faefec59df674”}"}] ()
PID: mos UID: 035faefec59df674
I1229 23:49:33.776315 9800 ourutil.go:32] PID: mos UID: 035faefec59df674
Requesting license from https://license.mongoose-os.com
I1229 23:49:33.776324 9800 ourutil.go:32] Requesting license from https://license.mongoose-os.com
I1229 23:49:33.775412 9800 stream.go:292] 32 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:33.777613 9800 stream.go:292] 7 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:33.977774 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:34.179035 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:34.380306 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:34.581431 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:34.782707 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:34.983417 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:35.184646 9800 stream.go:292] 0 bytes read, err %!q(), eof? false buffer: []
I1229 23:49:35.281943 9800 license.go:104] Server response: {
“message”: “No licenses of type mos left”
}
I1229 23:49:35.282061 9800 main.go:302] Error: /private/tmp/mos-20191107-31823-1o4s33s/mos-adcad3f2ca90789fc5426dc8c6302383effaa415/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/license_cmd/license.go:108: Error obtaining license: No licenses of type mos left
/private/tmp/mos-20191107-31823-1o4s33s/mos-adcad3f2ca90789fc5426dc8c6302383effaa415/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/main.go:196: license failed
Error: /private/tmp/mos-20191107-31823-1o4s33s/mos-adcad3f2ca90789fc5426dc8c6302383effaa415/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/license_cmd/license.go:108: Error obtaining license: No licenses of type mos left
/private/tmp/mos-20191107-31823-1o4s33s/mos-adcad3f2ca90789fc5426dc8c6302383effaa415/src/cesanta.com/go/src/github.com/mongoose-os/mos/mos/main.go:196: license failed

#12

The output tells the reason - “no licenses of type mos left”. Your account does not have sufficient licenses.