mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-22 17:18:50 +00:00
Auto-merge for PR #478 via VersionBot
Fix the message shown when docker gives a 500 error when starting a container
This commit is contained in:
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
|||||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## v6.0.4 - 2017-07-26
|
||||||
|
|
||||||
|
* Fix the message shown when docker gives a 500 error when starting a container [Pablo Carranza Velez]
|
||||||
|
|
||||||
## v6.0.3 - 2017-07-25
|
## v6.0.3 - 2017-07-25
|
||||||
|
|
||||||
* Use a pinned build of the debian image to build base and gosuper, to avoid unnecessary rebuilds [Pablo Carranza Velez]
|
* Use a pinned build of the debian image to build base and gosuper, to avoid unnecessary rebuilds [Pablo Carranza Velez]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "resin-supervisor",
|
"name": "resin-supervisor",
|
||||||
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
|
"description": "This is resin.io's Supervisor, a program that runs on IoT devices and has the task of running user Apps (which are Docker containers), and updating them as Resin's API informs it to.",
|
||||||
"version": "6.0.3",
|
"version": "6.0.4",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -244,6 +244,12 @@ shouldMountKmod = (image) ->
|
|||||||
console.error('Error getting app OS release: ', err)
|
console.error('Error getting app OS release: ', err)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
isExecFormatError = (err) ->
|
||||||
|
message = ''
|
||||||
|
try
|
||||||
|
message = err.json.trim()
|
||||||
|
/exec format error$/.test(message)
|
||||||
|
|
||||||
application.start = start = (app) ->
|
application.start = start = (app) ->
|
||||||
device.isResinOSv1().then (isV1) ->
|
device.isResinOSv1().then (isV1) ->
|
||||||
volumes = utils.defaultVolumes(isV1)
|
volumes = utils.defaultVolumes(isV1)
|
||||||
@ -319,7 +325,7 @@ application.start = start = (app) ->
|
|||||||
alreadyStarted = true
|
alreadyStarted = true
|
||||||
return
|
return
|
||||||
|
|
||||||
if statusCode is '500' and err.json.trim().match(/exec format error$/)
|
if statusCode is '500' and isExecFormatError(err)
|
||||||
# Provide a friendlier error message for "exec format error"
|
# Provide a friendlier error message for "exec format error"
|
||||||
device.getDeviceType()
|
device.getDeviceType()
|
||||||
.then (deviceType) ->
|
.then (deviceType) ->
|
||||||
|
Reference in New Issue
Block a user