Page MenuHomePhabricator

Recommendation API: cannot build a deploy repo
Closed, ResolvedPublic

Description

I'm trying to deploy the latest changes to the Recommendation API (T215222), but for some reason the following command is failing:

node server.js build --deploy-repo --review

Here's the error message:

Now using node v6.11.1 (npm v3.10.10)
npm ERR! Linux 4.19.46-1-lts
npm ERR! argv "/usr/local/nvm/versions/node/v6.11.1/bin/node" "/usr/local/nvm/versions/node/v6.11.1/bin/npm" "install" "heapdump" "gc-stats"
npm ERR! node v6.11.1
npm ERR! npm  v3.10.10
npm ERR! path /opt/service/node_modules/service-runner
npm ERR! code EISGIT

npm ERR! git /opt/service/node_modules/service-runner: Appears to be a git repo or submodule.
npm ERR! git     /opt/service/node_modules/service-runner
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/service/npm-debug.log
ERROR: docker run exited with code 1

This is the error message from the aforementioned log file:

1171 verbose stack Error: /opt/service/node_modules/service-runner: Appears to be a git repo or submodule.
1171 verbose stack     at /usr/local/nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/npm-install-checks/index.js:137:15
1171 verbose stack     at /usr/local/nvm/versions/node/v6.11.1/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js:267:18
1171 verbose stack     at FSReqWrap.oncomplete (fs.js:123:15)
1172 verbose cwd /opt/service
1173 error Linux 4.19.46-1-lts
1174 error argv "/usr/local/nvm/versions/node/v6.11.1/bin/node" "/usr/local/nvm/versions/node/v6.11.1/bin/npm" "install" "heapdump" "gc-stats"
1175 error node v6.11.1
1176 error npm  v3.10.10
1177 error path /opt/service/node_modules/service-runner
1178 error code EISGIT
1179 error git /opt/service/node_modules/service-runner: Appears to be a git repo or submodule.
1180 error git /opt/service/node_modules/service-runner
1181 error git Refusing to remove it. Update manually,
1181 error git or move it out of the way first.
1182 verbose exit [ 1, true ]

What maybe causing this? How to fix?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 18 2019, 5:49 AM

Change 517672 had a related patch set uploaded (by Mobrovac; owner: Mobrovac):
[mediawiki/services/recommendation-api/deploy@master] Update recommendation-api to 9603d42

https://gerrit.wikimedia.org/r/517672

mobrovac added a subscriber: mobrovac.

I have just built the deploy repo (cf above patch). Have you rebuilt your node module deps before building the deploy repo?

bmansurov closed this task as Resolved.Jun 18 2019, 3:53 PM
bmansurov claimed this task.

Thanks, I hadn't rebuilt the dependencies.

bmansurov removed bmansurov as the assignee of this task.Jun 18 2019, 3:53 PM

Change 517672 merged by Bmansurov:
[mediawiki/services/recommendation-api/deploy@master] Update recommendation-api to 9603d42

https://gerrit.wikimedia.org/r/517672