Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build code with manageiq use bin/update get error #18519

Closed
ghost opened this issue Mar 5, 2019 · 2 comments
Closed

build code with manageiq use bin/update get error #18519

ghost opened this issue Mar 5, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 5, 2019

Hi guys,
when i use bin/update, get error like below,

error An unexpected error occurred: "ENOSPC: no space left on device, copyfile '/usr/local/share/.cache/ya
rn/v4/npm-jquery-ui-1.12.1-bcb4045c8dd0539c134bc1488cdd3e768a7a9e51/node_modules/jquery-ui/external/jquery
-2.1.4/jquery.js' -> '/usr/local/rvm/gems/ruby-2.4.5/bundler/gems/manageiq-ui-classic-aa566af2ef9f/node_mo
dules/jquery-ui/external/jquery-2.1.4/jquery.js'".
info If you think this is a bug, please open a bug report with the information provided in "/usr/local/rvm
/gems/ruby-2.4.5/bundler/gems/manageiq-ui-classic-aa566af2ef9f/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
== yarn failed in /usr/local/rvm/gems/ruby-2.4.5/bundler/gems/manageiq-ui-classic-aa566af2ef9f ==

@NickLaMuro
Copy link
Member

@sckhg1367 Probably the simplest fix for this is to do bundle clean, which should remove all old versions of manageiq-ui-classic-GITREF in your /usr/local/rvm /gems/ruby-2.4.5/bundler/gems/ directory.

I would check with @himdel as this might have recently changed, but previously, we were building assets into each version of the UI Classic gem (creates 500+ MB of stuffs), and so every time you ran a bin/update, this would cause a new version (most likely) of the UI classic to be pulled down and the assets completely rebuilt from scratch.

@himdel
Copy link
Contributor

himdel commented Mar 5, 2019

It has not changed yet, so @NickLaMuro is right, bundle clean should do the trick.

If you're doing manageiq development long term, I'm using a crontab entry of 30 14 * * * hardlink -pot ~/.rbenv/ ~/ManageIQ/ to dedup the files every day.

Another alternative would be something along the lines of #18461 (comment) - if you have all the repos checked out, instead of using them as gems, there is no problem.


As for supporting node_modules outside those gem directories, I have currently 2 possible approaches:

Both have problems, see those PRs for details :).

EDIT: a third one: ManageIQ/manageiq-ui-classic#5322 - symlinks

@ghost ghost closed this as completed Mar 14, 2019
@ghost ghost changed the title build code with manageiq use bin/update get error b Jun 23, 2019
@Fryguy Fryguy changed the title b build code with manageiq use bin/update get error Dec 10, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants