Caprover: Fresh installation, but 1000 : Parser Failed. See internal logs on Monitoring

Created on 22 Nov 2019  路  5Comments  路  Source: caprover/caprover

A freshly installed CapRover v1.5.2 shows _1000 : Parser Failed. See internal logs_ when navigated to Monitoring tab. The stacktrace is as below:

TypeError: Cannot read property 'trim' of undefined
at Request._callback (/usr/src/app/built/user/system/LoadBalancerManager.js:255:75)
at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/usr/src/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/usr/src/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Error: Parser Failed. See internal logs...
at Function.createError (/usr/src/app/built/api/ApiStatusCodes.js:7:16)
GET /api/v2/user/system/loadbalancerinfo 304 2.769 ms - -
at Request._callback (/usr/src/app/built/user/system/LoadBalancerManager.js:266:43)
at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/usr/src/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/usr/src/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1129:12)

Most helpful comment

Fixed in https://github.com/caprover/caprover/commit/faf7940c4d858dd3d76a96a9416f6ae40c84c804

Will be released soon in the next version. Meanwhile, you can go to settings, under "NGINX Configurations", manually apply the same change as seen in the commit above in the config.

All 5 comments

Is this a CLI bug? Or the dashboard bug?

If it's on dashboard, please provide your OS and VPS provider.

A dashboard bug on AWS EC2 (Ubuntu 18.04.3 LTS).

Moving this issue to the main project.

550

Same here in the dashboard. Self hosted with docker on Ubuntu 18.04.3 LTS. Fresh install.

Ran with this command:
mkdir /captain && docker run -p 80:80 -p 443:443 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock caprover/caprover
https://imgur.com/YHJqiHP

TypeError: Cannot read property 'trim' of undefined
at Request._callback (/usr/src/app/built/user/system/LoadBalancerManager.js:255:75)
at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:198:13)
at Request. (/usr/src/app/node_modules/request/request.js:1161:10)
at Request.emit (events.js:198:13)
at IncomingMessage. (/usr/src/app/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:286:20)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Fixed in https://github.com/caprover/caprover/commit/faf7940c4d858dd3d76a96a9416f6ae40c84c804

Will be released soon in the next version. Meanwhile, you can go to settings, under "NGINX Configurations", manually apply the same change as seen in the commit above in the config.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ZaninAndrea picture ZaninAndrea  路  3Comments

gingerlime picture gingerlime  路  6Comments

hamza-younas94 picture hamza-younas94  路  4Comments

PolMrt picture PolMrt  路  5Comments

drmrbrewer picture drmrbrewer  路  4Comments