Page MenuHomePhabricator
Paste P8371

MCS deployment error

Authored by mobrovac on Apr 8 2019, 8:46 PM.
[2019-04-08T20:44:06.044Z] FATAL: mobileapps/348 on scb2001: Cannot read property 'split' of undefined (err.levelPath=fatal/service-runner/unhandled)
TypeError: Cannot read property 'split' of undefined
at Object.mUtil.hashCode (/srv/deployment/mobileapps/deploy-cache/revs/c7fa522928ed8f3c68d0101a6123bffa5cf3d52d/src/lib/mobile-util.js:215:18)
at respond (/srv/deployment/mobileapps/deploy-cache/revs/c7fa522928ed8f3c68d0101a6123bffa5cf3d52d/src/lib/css.js:22:30)
at ReadFileContext.fs.readFile [as callback] (/srv/deployment/mobileapps/deploy-cache/revs/c7fa522928ed8f3c68d0101a6123bffa5cf3d52d/src/lib/css.js:28:74)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:366:13)

Event Timeline

mobrovac created this paste.Apr 8 2019, 8:46 PM
bearND added a subscriber: bearND.Apr 9 2019, 5:26 AM

Just for posterity sake. The relative file name only works for local environments. See mobrovac's explanation on the patch That's what I had figured out but I had to go offline.

On beta cluster node:

cd /srv/deployment/mobileapps/deploy
> fs = require('fs');
> fs.readFile('private/base.css', { encoding: 'utf8' }, (err, data) => console.log('BBB: ' + data))
> BBB: undefined
> fs.readFile('/srv/deployment/mobileapps/deploy/src/private/base.css', { encoding: 'utf8' }, (err, data) => console.log('BBB: ' + data))
> BBB: a,abbr,acro[...]