[DRE-maint] Bug#894072: gitlab: postinst fails with "/var/lib/gitlab/yarn/node_modules/.bin/yarn: not found"

Dmitry Smirnov onlyjob at debian.org
Tue Mar 27 02:44:13 UTC 2018


Hi Praveen,

> This bug appears from uploading from 9.5.4 installation. If you do a
> purge && reinstall, it solves the problem.

But I need to upgrade from 9.5.4 and "purge" is destructive...
I don't want to risk losing configs, projects and what not.

Please take care of upgrade path from 9.5. Purge should not be necessary.

I tried "cd /var/lib/gitlab/yarn && npm install yarn" (as gitlab user)
but it did not work:

~~~~
npm WARN package.json compression-webpack-plugin at 0.3.2 No license field.
npm WARN package.json dropzone at 4.3.0 No license field.
npm WARN package.json jszip-utils at 0.0.2 license should be a valid SPDX
license expression
npm WARN package.json select2 at 3.5.2-browserify No license field.
yarn at 1.5.1 ../node_modules/yarn
~~~~

After that the following folders remain empty

  /var/lib/gitlab/yarn

and attempt to reconfigure GitLab fails exactly the same.

What did help is the following command:

  cd /var/lib/gitlab/yarn && npm install --prefix=. yarn

But you may have other ideas how to fix the problem properly...

Regards,
  Dmitry.



More information about the Pkg-ruby-extras-maintainers mailing list