Gladys inaccessible en direct ou via dashboard

Bonjour,

J’ai un souci sur lequel je ne m’étais pas trop penché : gladys est inaccessible (aussi bien le 3 que le 4 selon les configurations testées)

Mon installation :
1 pi3b+ avec Gladys 3 sur clé USB
1 pi3b avec Gladys 4 sur clé USB

Aujourd’hui, la V4 inaccessible depuis mon navigateur sur le réseau ou via le gateway.

SSH : accès sans souci au raspberry de la V4.

Espace disponible sur la V4 :

image

J’ai bien sûr redémarré, sans changement.

Avez-vous une idée? J’aimerais éviter de refaire une clé USB (repartir avec une car SD, refaire les partitions… :upside_down_face:

Merci d’avance!

Que retourne docker ps -a ?

Hello, merci d’avoir pris le temps, voici le retour de ps -a

image

Bizarre le conteneur gladys n’est pas démarré.

Tu peux le lancer avec cette commande:

docker start gladys

J’ai lancé la commande, voilà ce que ça donne si je refais ps-a v

Toujours pas de gladys qui fonctionne :sob:

Cette fois le conteneur est lancé

docker logs gladys pour y voir plus clair

Alors voilà le résultat :

   pi@gladysV4:~ $ docker logs gladys                                                                                   
    > gladys-server@ start:prod /src/server
    > cross-env NODE_ENV=production node index.js

    Initialising OpenZWave 1.6.974 binary addon for Node.JS.
    OpenZWave Security API is ENABLED
    ZWave device db    : /etc/openzwave
    User settings path : /src/server/services/zwave/node_modules/openzwave-shared/build/Release/../../
    Option Overrides : --Logging false --ConsoleOutput false --SaveConfiguration true
    2020-05-10T07:26:12+0200 <info> index.js:19 (Object.start) Starting telegram service
    2020-05-10T07:26:12+0200 <info> index.js:13 (Object.start) Starting usb service
    2020-05-10T07:26:12+0200 <info> index.js:16 (Object.start) Starting zwave service
    2020-05-10T07:26:12+0200 <info> index.js:20 (Object.start) Starting Dark Sky service
    2020-05-10T07:26:16+0200 <warn> connect.js:50 (MqttClient.<anonymous>) Disconnected from MQTT server
    2020-05-10T07:26:17+0200 <info> index.js:63 (Server.<anonymous>) Server listening on port 80
    2020-05-10T07:26:17+0200 <info> index.js:743 (Socket.<anonymous>) Gladys Gateway: connected in websockets
    2020-05-10T07:26:18+0200 <info> gateway.checkIfBackupNeeded.js:24 (Gateway.checkIfBackupNeeded) Trying to backup instance to Gladys Gateway
    2020-05-10T07:27:44+0200 <warn> functionsWrapper.js:15 (EventEmitter.<anonymous>) Error while executing function () { [native code] }
    2020-05-10T07:27:44+0200 <warn> functionsWrapper.js:16 (EventEmitter.<anonymous>) Error: Request body larger than maxBodyLength limit
        at RedirectableRequest.write (/src/server/node_modules/follow-redirects/index.js:97:24)
        at FormData.ondata (internal/streams/legacy.js:19:31)
        at FormData.emit (events.js:310:20)
        at FormData.CombinedStream.write (/src/server/node_modules/combined-stream/lib/combined_stream.js:138:8)
        at DelayedStream.ondata (internal/streams/legacy.js:19:31)
        at DelayedStream.emit (events.js:310:20)
        at DelayedStream._handleEmit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:82:15)
        at ReadStream.source.emit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:29:19)
        at addChunk (_stream_readable.js:286:12)
        at readableAddChunk (_stream_readable.js:268:9)
        at ReadStream.Readable.push (_stream_readable.js:209:10)
        at internal/fs/streams.js:210:12
        at FSReqCallback.wrapper [as oncomplete] (fs.js:488:5) {
      config: {
        adapter: [Function: httpAdapter],
        transformRequest: { '0': [Function: transformRequest] },
        transformResponse: { '0': [Function: transformResponse] },
        timeout: 0,
        xsrfCookieName: 'XSRF-TOKEN',
        xsrfHeaderName: 'X-XSRF-TOKEN',
        maxContentLength: -1,
        validateStatus: [Function: validateStatus],
        headers: {
          Accept: 'application/json, text/plain, */*',
          'Content-Type': 'multipart/form-data; boundary=--------------------------002972330492584197065086',
          authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA4ODM3NywiZXhwIjoxNTg5MDkxOTc3LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.AfjLjX0P5JsIuJttk0cLGiEakcVMdnwuj-hs8AE8PW0',
          'User-Agent': 'axios/0.18.1'
        },
        method: 'post',
        onUploadProgress: [Function],
        url: 'https://api.gladysgateway.com/backups',
        data: FormData {
          _overheadLength: 202,
          _valueLength: 0,
          _valuesToMeasure: [Array],
          writable: true,
          readable: true,
          dataSize: 0,
          maxDataSize: 2097152,
          pauseStreams: true,
          _released: true,
          _streams: [Array],
          _currentStream: [DelayedStream],
          _insideLoop: false,
          _pendingNext: false,
          _boundary: '--------------------------002972330492584197065086',
          _events: [Object: null prototype],
          _eventsCount: 3
        }
      },
      request: Writable {
        _writableState: WritableState {
          objectMode: false,
          highWaterMark: 16384,
          finalCalled: false,
          needDrain: false,
          ending: false,
          ended: false,
          finished: false,
          destroyed: false,
          decodeStrings: true,
          defaultEncoding: 'utf8',
          length: 0,
          writing: false,
          corked: 0,
          sync: true,
          bufferProcessing: false,
          onwrite: [Function: bound onwrite],
          writecb: null,
          writelen: 0,
          afterWriteTickInfo: null,
          bufferedRequest: null,
          lastBufferedRequest: null,
          pendingcb: 0,
          prefinished: false,
          errorEmitted: false,
          emitClose: true,
          autoDestroy: false,
          bufferedRequestCount: 0,
          corkedRequestsFree: [Object]
        },
        writable: true,
        _events: [Object: null prototype] {
          response: [Function: handleResponse],
          error: [Function: handleRequestError]
        },
        _eventsCount: 2,
        _maxListeners: undefined,
        _options: {
          protocol: 'https:',
          maxRedirects: 21,
          maxBodyLength: 10485760,
          path: '/backups',
          method: 'post',
          headers: [Object],
          agent: undefined,
          auth: undefined,
          hostname: 'api.gladysgateway.com',
          port: null,
          nativeProtocols: [Object],
          pathname: '/backups'
        },
        _redirectCount: 0,
        _redirects: [],
        _requestBodyLength: 10420424,
        _requestBodyBuffers: [
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object],
          ... 60 more items
        ],
        _onNativeResponse: [Function],
        _currentRequest: ClientRequest {
          _events: [Object: null prototype],
          _eventsCount: 6,
          _maxListeners: undefined,
          outputData: [],
          outputSize: 0,
          writable: true,
          _last: true,
          chunkedEncoding: true,
          shouldKeepAlive: false,
          useChunkedEncodingByDefault: true,
          sendDate: false,
          _removedConnection: false,
          _removedContLen: false,
          _removedTE: false,
          _contentLength: null,
          _hasBody: true,
          _trailer: '',
          finished: false,
          _headerSent: true,
          socket: [TLSSocket],
          connection: [TLSSocket],
          _header: 'POST /backups HTTP/1.1\r\n' +
            'Accept: application/json, text/plain, */*\r\n' +
            'Content-Type: multipart/form-data; boundary=--------------------------002972330492584197065086\r\n' +
            'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA4ODM3NywiZXhwIjoxNTg5MDkxOTc3LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.AfjLjX0P5JsIuJttk0cLGiEakcVMdnwuj-hs8AE8PW0\r\n' +
            'User-Agent: axios/0.18.1\r\n' +
            'Host: api.gladysgateway.com\r\n' +
            'Connection: close\r\n' +
            'Transfer-Encoding: chunked\r\n' +
            '\r\n',
          _onPendingData: [Function: noopPendingOutput],
          agent: [Agent],
          socketPath: undefined,
          method: 'POST',
          insecureHTTPParser: undefined,
          path: '/backups',
          _ended: false,
          res: null,
          aborted: true,
          timeoutCb: null,
          upgradeOrConnect: false,
          parser: [HTTPParser],
          maxHeadersCount: null,
          reusedSocket: false,
          _redirectable: [Circular],
          [Symbol(kCapture)]: false,
          [Symbol(kNeedDrain)]: true,
          [Symbol(corked)]: 0,
          [Symbol(kOutHeaders)]: [Object: null prototype]
        },
        _currentUrl: 'https://api.gladysgateway.com/backups',
        [Symbol(kCapture)]: false
      },
      response: undefined
    }
    2020-05-10T09:26:17+0200 <info> gateway.checkIfBackupNeeded.js:24 (Gateway.checkIfBackupNeeded) Trying to backup instance to Gladys Gateway
    2020-05-10T09:27:13+0200 <warn> functionsWrapper.js:15 (EventEmitter.<anonymous>) Error while executing function () { [native code] }
    2020-05-10T09:27:13+0200 <warn> functionsWrapper.js:16 (EventEmitter.<anonymous>) Error: Request body larger than maxBodyLength limit
        at RedirectableRequest.write (/src/server/node_modules/follow-redirects/index.js:97:24)
        at FormData.ondata (internal/streams/legacy.js:19:31)
        at FormData.emit (events.js:310:20)
        at FormData.CombinedStream.write (/src/server/node_modules/combined-stream/lib/combined_stream.js:138:8)
        at DelayedStream.ondata (internal/streams/legacy.js:19:31)
        at DelayedStream.emit (events.js:310:20)
        at DelayedStream._handleEmit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:82:15)
        at ReadStream.source.emit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:29:19)
        at addChunk (_stream_readable.js:286:12)
        at readableAddChunk (_stream_readable.js:268:9)
        at ReadStream.Readable.push (_stream_readable.js:209:10)
        at internal/fs/streams.js:210:12
        at FSReqCallback.wrapper [as oncomplete] (fs.js:488:5) {
      config: {
        adapter: [Function: httpAdapter],
        transformRequest: { '0': [Function: transformRequest] },
        transformResponse: { '0': [Function: transformResponse] },
        timeout: 0,
        xsrfCookieName: 'XSRF-TOKEN',
        xsrfHeaderName: 'X-XSRF-TOKEN',
        maxContentLength: -1,
        validateStatus: [Function: validateStatus],
        headers: {
          Accept: 'application/json, text/plain, */*',
          'Content-Type': 'multipart/form-data; boundary=--------------------------072642001746795428329797',
          authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA5MjA5MywiZXhwIjoxNTg5MDk1NjkzLCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.CzVz5RACHaDfSFEm1gD6VcIvcZWvDSkoSpwH40hqymg',
          'User-Agent': 'axios/0.18.1'
        },
        method: 'post',
        onUploadProgress: [Function],
        url: 'https://api.gladysgateway.com/backups',
        data: FormData {
          _overheadLength: 202,
          _valueLength: 0,
          _valuesToMeasure: [Array],
          writable: true,
          readable: true,
          dataSize: 0,
          maxDataSize: 2097152,
          pauseStreams: true,
          _released: true,
          _streams: [Array],
          _currentStream: [DelayedStream],
          _insideLoop: false,
          _pendingNext: false,
          _boundary: '--------------------------072642001746795428329797',
          _events: [Object: null prototype],
          _eventsCount: 3
        }
      },
      request: Writable {
        _writableState: WritableState {
          objectMode: false,
          highWaterMark: 16384,
          finalCalled: false,
          needDrain: false,
          ending: false,
          ended: false,
          finished: false,
          destroyed: false,
          decodeStrings: true,
          defaultEncoding: 'utf8',
          length: 0,
          writing: false,
          corked: 0,
          sync: true,
          bufferProcessing: false,
          onwrite: [Function: bound onwrite],
          writecb: null,
          writelen: 0,
          afterWriteTickInfo: null,
          bufferedRequest: null,
          lastBufferedRequest: null,
          pendingcb: 0,
          prefinished: false,
          errorEmitted: false,
          emitClose: true,
          autoDestroy: false,
          bufferedRequestCount: 0,
          corkedRequestsFree: [Object]
        },
        writable: true,
        _events: [Object: null prototype] {
          response: [Function: handleResponse],
          error: [Function: handleRequestError]
        },
        _eventsCount: 2,
        _maxListeners: undefined,
        _options: {
          protocol: 'https:',
          maxRedirects: 21,
          maxBodyLength: 10485760,
          path: '/backups',
          method: 'post',
          headers: [Object],
          agent: undefined,
          auth: undefined,
          hostname: 'api.gladysgateway.com',
          port: null,
          nativeProtocols: [Object],
          pathname: '/backups'
        },
        _redirectCount: 0,
        _redirects: [],
        _requestBodyLength: 10441576,

La suite :

_requestBodyBuffers: [
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object],
              ... 61 more items
            ],
            _onNativeResponse: [Function],
            _currentRequest: ClientRequest {
              _events: [Object: null prototype],
              _eventsCount: 6,
              _maxListeners: undefined,
              outputData: [],
              outputSize: 0,
              writable: true,
              _last: true,
              chunkedEncoding: true,
              shouldKeepAlive: false,
              useChunkedEncodingByDefault: true,
              sendDate: false,
              _removedConnection: false,
              _removedContLen: false,
              _removedTE: false,
              _contentLength: null,
              _hasBody: true,
              _trailer: '',
              finished: false,
              _headerSent: true,
              socket: [TLSSocket],
              connection: [TLSSocket],
              _header: 'POST /backups HTTP/1.1\r\n' +
                'Accept: application/json, text/plain, */*\r\n' +
                'Content-Type: multipart/form-data; boundary=--------------------------072642001746795428329797\r\n' +
                'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA5MjA5MywiZXhwIjoxNTg5MDk1NjkzLCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.CzVz5RACHaDfSFEm1gD6VcIvcZWvDSkoSpwH40hqymg\r\n' +
                'User-Agent: axios/0.18.1\r\n' +
                'Host: api.gladysgateway.com\r\n' +
                'Connection: close\r\n' +
                'Transfer-Encoding: chunked\r\n' +
                '\r\n',
              _onPendingData: [Function: noopPendingOutput],
              agent: [Agent],
              socketPath: undefined,
              method: 'POST',
              insecureHTTPParser: undefined,
              path: '/backups',
              _ended: false,
              res: null,
              aborted: true,
              timeoutCb: null,
              upgradeOrConnect: false,
              parser: [HTTPParser],
              maxHeadersCount: null,
              reusedSocket: false,
              _redirectable: [Circular],
              [Symbol(kCapture)]: false,
              [Symbol(kNeedDrain)]: true,
              [Symbol(corked)]: 0,
              [Symbol(kOutHeaders)]: [Object: null prototype]
            },
            _currentUrl: 'https://api.gladysgateway.com/backups',
            [Symbol(kCapture)]: false
          },
          response: undefined
        }
        2020-05-10T11:26:17+0200 <info> gateway.checkIfBackupNeeded.js:24 (Gateway.checkIfBackupNeeded) Trying to backup instance to Gladys Gateway
        2020-05-10T11:28:04+0200 <warn> functionsWrapper.js:15 (EventEmitter.<anonymous>) Error while executing function () { [native code] }
        2020-05-10T11:28:04+0200 <warn> functionsWrapper.js:16 (EventEmitter.<anonymous>) Error: Request body larger than maxBodyLength limit
            at RedirectableRequest.write (/src/server/node_modules/follow-redirects/index.js:97:24)
            at FormData.ondata (internal/streams/legacy.js:19:31)
            at FormData.emit (events.js:310:20)
            at FormData.CombinedStream.write (/src/server/node_modules/combined-stream/lib/combined_stream.js:138:8)
            at DelayedStream.ondata (internal/streams/legacy.js:19:31)
            at DelayedStream.emit (events.js:310:20)
            at DelayedStream._handleEmit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:82:15)
            at ReadStream.source.emit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:29:19)
            at addChunk (_stream_readable.js:286:12)
            at readableAddChunk (_stream_readable.js:268:9)
            at ReadStream.Readable.push (_stream_readable.js:209:10)
            at internal/fs/streams.js:210:12
            at FSReqCallback.wrapper [as oncomplete] (fs.js:488:5) {
          config: {
            adapter: [Function: httpAdapter],
            transformRequest: { '0': [Function: transformRequest] },
            transformResponse: { '0': [Function: transformResponse] },
            timeout: 0,
            xsrfCookieName: 'XSRF-TOKEN',
            xsrfHeaderName: 'X-XSRF-TOKEN',
            maxContentLength: -1,
            validateStatus: [Function: validateStatus],
            headers: {
              Accept: 'application/json, text/plain, */*',
              'Content-Type': 'multipart/form-data; boundary=--------------------------188633930435540749629579',
              authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA5OTU4NSwiZXhwIjoxNTg5MTAzMTg1LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.HW-y65EGL4H9235EjV6in-CRCN9vz4mF2b31zQA0V3Q',
              'User-Agent': 'axios/0.18.1'
            },
            method: 'post',
            onUploadProgress: [Function],
            url: 'https://api.gladysgateway.com/backups',
            data: FormData {
              _overheadLength: 203,
              _valueLength: 0,
              _valuesToMeasure: [Array],
              writable: true,
              readable: true,
              dataSize: 0,
              maxDataSize: 2097152,
              pauseStreams: true,
              _released: true,
              _streams: [Array],
              _currentStream: [DelayedStream],
              _insideLoop: false,
              _pendingNext: false,
              _boundary: '--------------------------188633930435540749629579',
              _events: [Object: null prototype],
              _eventsCount: 3
            }
          },
          request: Writable {
            _writableState: WritableState {
              objectMode: false,
              highWaterMark: 16384,
              finalCalled: false,
              needDrain: false,
              ending: false,
              ended: false,
              finished: false,
              destroyed: false,
              decodeStrings: true,
              defaultEncoding: 'utf8',
              length: 0,
              writing: false,
              corked: 0,
              sync: true,
              bufferProcessing: false,
              onwrite: [Function: bound onwrite],
              writecb: null,
              writelen: 0,
              afterWriteTickInfo: null,
              bufferedRequest: null,
              lastBufferedRequest: null,
              pendingcb: 0,
              prefinished: false,
              errorEmitted: false,
              emitClose: true,
              autoDestroy: false,
              bufferedRequestCount: 0,
              corkedRequestsFree: [Object]
            },
            writable: true,
            _events: [Object: null prototype] {
              response: [Function: handleResponse],
              error: [Function: handleRequestError]
            },
            _eventsCount: 2,
            _maxListeners: undefined,
            _options: {
              protocol: 'https:',
              maxRedirects: 21,
              maxBodyLength: 10485760,
              path: '/backups',
              method: 'post',
              headers: [Object],
              agent: undefined,
              auth: undefined,
              hostname: 'api.gladysgateway.com',
              port: null,
              nativeProtocols: [Object],
              pathname: '/backups'
            },
            _redirectCount: 0,
            _redirects: [],
            _requestBodyLength: 10445897,
            _requestBodyBuffers: [
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object],
              ... 61 more items
            ],
            _onNativeResponse: [Function],
            _currentRequest: ClientRequest {
              _events: [Object: null prototype],
              _eventsCount: 6,
              _maxListeners: undefined,
              outputData: [],
              outputSize: 0,
              writable: true,
              _last: true,
              chunkedEncoding: true,
              shouldKeepAlive: false,
              useChunkedEncodingByDefault: true,
              sendDate: false,
              _removedConnection: false,
              _removedContLen: false,
              _removedTE: false,
              _contentLength: null,
              _hasBody: true,
              _trailer: '',
              finished: false,
              _headerSent: true,
              socket: [TLSSocket],
              connection: [TLSSocket],
              _header: 'POST /backups HTTP/1.1\r\n' +
                'Accept: application/json, text/plain, */*\r\n' +
                'Content-Type: multipart/form-data; boundary=--------------------------188633930435540749629579\r\n' +
                'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTA5OTU4NSwiZXhwIjoxNTg5MTAzMTg1LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.HW-y65EGL4H9235EjV6in-CRCN9vz4mF2b31zQA0V3Q\r\n' +
                'User-Agent: axios/0.18.1\r\n' +
                'Host: api.gladysgateway.com\r\n' +
                'Connection: close\r\n' +
                'Transfer-Encoding: chunked\r\n' +
                '\r\n',
              _onPendingData: [Function: noopPendingOutput],
              agent: [Agent],
              socketPath: undefined,
              method: 'POST',
              insecureHTTPParser: undefined,
              path: '/backups',
              _ended: false,
              res: null,
              aborted: true,
              timeoutCb: null,
              upgradeOrConnect: false,
              parser: [HTTPParser],
              maxHeadersCount: null,
              reusedSocket: false,
              _redirectable: [Circular],
              [Symbol(kCapture)]: false,
              [Symbol(kNeedDrain)]: true,
              [Symbol(corked)]: 0,
              [Symbol(kOutHeaders)]: [Object: null prototype]
            },
            _currentUrl: 'https://api.gladysgateway.com/backups',
            [Symbol(kCapture)]: false
          },
          response: undefined
        }
        2020-05-10T13:26:17+0200 <info> gateway.checkIfBackupNeeded.js:24 (Gateway.checkIfBackupNeeded) Trying to backup instance to Gladys Gateway
        2020-05-10T13:27:22+0200 <warn> functionsWrapper.js:15 (EventEmitter.<anonymous>) Error while executing function () { [native code] }
        2020-05-10T13:27:22+0200 <warn> functionsWrapper.js:16 (EventEmitter.<anonymous>) Error: Request body larger than maxBodyLength limit
            at RedirectableRequest.write (/src/server/node_modules/follow-redirects/index.js:97:24)
            at FormData.ondata (internal/streams/legacy.js:19:31)
            at FormData.emit (events.js:310:20)
            at FormData.CombinedStream.write (/src/server/node_modules/combined-stream/lib/combined_stream.js:138:8)
            at DelayedStream.ondata (internal/streams/legacy.js:19:31)
            at DelayedStream.emit (events.js:310:20)
            at DelayedStream._handleEmit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:82:15)
            at ReadStream.source.emit (/src/server/node_modules/delayed-stream/lib/delayed_stream.js:29:19)
            at addChunk (_stream_readable.js:286:12)
            at readableAddChunk (_stream_readable.js:268:9)
            at ReadStream.Readable.push (_stream_readable.js:209:10)
            at internal/fs/streams.js:210:12
            at FSReqCallback.wrapper [as oncomplete] (fs.js:488:5) {
          config: {
            adapter: [Function: httpAdapter],
            transformRequest: { '0': [Function: transformRequest] },
            transformResponse: { '0': [Function: transformResponse] },
            timeout: 0,
            xsrfCookieName: 'XSRF-TOKEN',
            xsrfHeaderName: 'X-XSRF-TOKEN',
            maxContentLength: -1,
            validateStatus: [Function: validateStatus],
            headers: {
              Accept: 'application/json, text/plain, */*',
              'Content-Type': 'multipart/form-data; boundary=--------------------------444973755619300362854868',
              authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTEwNjkyNiwiZXhwIjoxNTg5MTEwNTI2LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.8V0GzGv-0FNdv8a9SVAMtzHHh3xpGXGOsczVcfmywnQ',
              'User-Agent': 'axios/0.18.1'
            },
            method: 'post',
            onUploadProgress: [Function],
            url: 'https://api.gladysgateway.com/backups',
            data: FormData {
              _overheadLength: 203,
              _valueLength: 0,
              _valuesToMeasure: [Array],
              writable: true,
              readable: true,
              dataSize: 0,
              maxDataSize: 2097152,
              pauseStreams: true,
              _released: true,
              _streams: [Array],
              _currentStream: [DelayedStream],
              _insideLoop: false,
              _pendingNext: false,
              _boundary: '--------------------------444973755619300362854868',
              _events: [Object: null prototype],
              _eventsCount: 3
            }
          },
          request: Writable {
            _writableState: WritableState {
              objectMode: false,
              highWaterMark: 16384,
              finalCalled: false,
              needDrain: false,
              ending: false,
              ended: false,
              finished: false,
              destroyed: false,
              decodeStrings: true,
              defaultEncoding: 'utf8',
              length: 0,
              writing: false,
              corked: 0,
              sync: true,
              bufferProcessing: false,
              onwrite: [Function: bound onwrite],
              writecb: null,
              writelen: 0,
              afterWriteTickInfo: null,
              bufferedRequest: null,
              lastBufferedRequest: null,
              pendingcb: 0,
              prefinished: false,
              errorEmitted: false,
              emitClose: true,
              autoDestroy: false,
              bufferedRequestCount: 0,
              corkedRequestsFree: [Object]
            },
            writable: true,
            _events: [Object: null prototype] {
              response: [Function: handleResponse],
              error: [Function: handleRequestError]
            },
            _eventsCount: 2,
            _maxListeners: undefined,
            _options: {
              protocol: 'https:',
              maxRedirects: 21,
              maxBodyLength: 10485760,
              path: '/backups',
              method: 'post',
              headers: [Object],
              agent: undefined,
              auth: undefined,
              hostname: 'api.gladysgateway.com',
              port: null,
              nativeProtocols: [Object],
              pathname: '/backups'
            },
            _redirectCount: 0,
            _redirects: [],
            _requestBodyLength: 10477081,
            _requestBodyBuffers: [
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object], [Object], [Object],
              [Object], [Object], [Object], [Object],
              ... 61 more items
            ],
            _onNativeResponse: [Function],
            _currentRequest: ClientRequest {
              _events: [Object: null prototype],
              _eventsCount: 6,
              _maxListeners: undefined,
              outputData: [],
              outputSize: 0,
              writable: true,
              _last: true,
              chunkedEncoding: true,
              shouldKeepAlive: false,
              useChunkedEncodingByDefault: true,
              sendDate: false,
              _removedConnection: false,
              _removedContLen: false,
              _removedTE: false,
              _contentLength: null,
              _hasBody: true,
              _trailer: '',
              finished: false,
              _headerSent: true,
              socket: [TLSSocket],
              connection: [TLSSocket],
              _header: 'POST /backups HTTP/1.1\r\n' +
                'Accept: application/json, text/plain, */*\r\n' +
                'Content-Type: multipart/form-data; boundary=--------------------------444973755619300362854868\r\n' +
                'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbnN0YW5jZV9pZCI6IjA1NmQ4NDA1LWQ2NDktNDQ3Ny1iMDNlLWZlZjQ5NWZhYzcxMCIsImlhdCI6MTU4OTEwNjkyNiwiZXhwIjoxNTg5MTEwNTI2LCJhdWQiOiJpbnN0YW5jZSIsImlzcyI6ImdsYWR5cy1nYXRld2F5In0.8V0GzGv-0FNdv8a9SVAMtzHHh3xpGXGOsczVcfmywnQ\r\n' +
                'User-Agent: axios/0.18.1\r\n' +
                'Host: api.gladysgateway.com\r\n' +
                'Connection: close\r\n' +
                'Transfer-Encoding: chunked\r\n' +
                '\r\n',
              _onPendingData: [Function: noopPendingOutput],
              agent: [Agent],
              socketPath: undefined,
              method: 'POST',
              insecureHTTPParser: undefined,
              path: '/backups',
              _ended: false,
              res: null,
              aborted: true,
              timeoutCb: null,
              upgradeOrConnect: false,
              parser: [HTTPParser],
              maxHeadersCount: null,
              reusedSocket: false,
              _redirectable: [Circular],
              [Symbol(kCapture)]: false,
              [Symbol(kNeedDrain)]: true,
              [Symbol(corked)]: 0,
              [Symbol(kOutHeaders)]: [Object: null prototype]
            },
            _currentUrl: 'https://api.gladysgateway.com/backups',
            [Symbol(kCapture)]: false
          },
          response: undefined
        }
        pi@gladysV4:~ $`

Je ne sais pas comment tu as lancée Gladys 4, je sais qu’on avait un soucis avec une image qui ne lançait pas watchtower avec le paramètres “–cleanup” et du coup le carte SD était vite pleine ^^

Tu es à 72% plein, c’est peut être trop juste? Je ne sais pas.

Au vu de tes screenshots, Gladys a l’air de bien tourner chez toi :slight_smile:

Bon, par contre c’est une vieille version, mais vu ton espace disque disponible peut-être que watchtower n’arrive plus à faire les mises à jour…

Alors, lorsque j’ai voulu tester la V4, j’ai installé la distribution avec Gladys pré-installée sur ma clé USB sankdisk, et j’ai suivi la manip. Tout a bien fonctionné jusqu’à il y a quelques temps (je n’avais pas pris le temps de m’en occuper). elle marchait encore quand tu as sortis les scène, car j’avais testé Zwave et xiaomi et fait une remonté de module abscent. JE n’avais pas poussé plus car les scènes n’était pas encore assez poussées pour gérer mon chauffage, et qu’il me fallait aussi tout réassocier niveau Zwave…

Pour watchower, qu’est-ce qui est à faire pour les MAJ? Comment savoir si les clean-up est bien lancé? Et pour libérer de l’espace? J’ai quand-même une 32 Go… j’aurais pensé que ça tienne lol… surtout que il n’y a pas grand chose de connecté à Gladys pour l’instant…

bon, ben sur mon ordinateur de bureau, sur lequel Gladys n’avais jamais été lancé ça marche… je vais faire un vidage de cache ailleurs… :sweat_smile:

Par contre, le dashboard gateway bugue : le clic sur les boutons ne fait rien… (je suis sous chrome). Par exemple, je ne peut éditer le dashboard. Pour les liens, ça met le lien dans la barre d’adresse, et il me faut actualiser ma fenêtre pour que ça marche. Et la scène test dans mon instance n’apparait pas dans le gateway

Je penses pas , mais ce qui est sûr c’est qu’il faut purger

docker system prune

ça libérera de l’espace sur ta carte sd , il n’y a pas ce problème sur la dernière image raspbian

Rien c’est lui qui gère les mises à jour

Fais:

docker inspect watchtower

Et regarder si il avait été lancé avec la commande --cleanup

Si oui, c’est bon, si non, stop + rm le container, et relance le avec la commande cleanup ( cf documentation => https://documentation.gladysassistant.com/fr/installation#docker )

il y a bien “args”: --cleanup

et pour prune, total reclaimed space après l’avoir lancé : 0B… et je suis maintenant à 73% de mes 32Go.

Et toujours le bug (non permanent mais quotidiens), du Gateway

Pour le dashboard : à priori je suis déconecté au bout d’un moment, et je dois me reconnecter via login / mdp / 2factor code… Et même en faisant ça, ça ne me remet pas toujours le dasboard opérationnel…

Mon souci donc : déconnection trop fréquente - reconnection compliquée - dashboard vide et lien qui ne répondent pas.

Est-ce que je crée un nouveau sujet?

Merci d’avance.

Hello @beatrice, tu peux regarder le résultat de la commande df -i ?

Peut-être un problème d’inodes plutôt que d’espace.

Alors df -i renvoie pour root “IUti% 37%” la ou l’autre renvoie “Uti% 73%”, ce ne sont pas les même choses non?

Pour grossir le trait, les inodes ça peut être comparé à un fichier dans ton système de fichiers. Ton ordinateur, fonction de ton système de fichiers, est limité en nombre de fichiers qu’il peut gérer.

Donc, tu peux très bien avoir beaucoup de place restante sur ton disque dur mais ne plus avoir d’inode disponible (beaucoup de fichiers qui au globale ne consomment que très peu de mémoire).

Ton cas montre plutôt que t’as encore de la marge en nombre de fichiers. La situation me semble bonne, pas de soucis côté stockage pour moi.

1 Like