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

Subsequent ember fastboot is failing with "directory not empty" #235

Closed
dustinfarris opened this issue Jul 25, 2016 · 10 comments
Closed

Subsequent ember fastboot is failing with "directory not empty" #235

dustinfarris opened this issue Jul 25, 2016 · 10 comments

Comments

@dustinfarris
Copy link

dustinfarris commented Jul 25, 2016

Summary

This does not happen in a fresh app, seems to be specific to my project.

Running ember fastboot multiple times starts failing with this error:

Build successful - 7367ms.

Slowest Trees                                 | Total
----------------------------------------------+---------------------
Babel                                         | 453ms
Babel                                         | 450ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
Babel (87)                                    | 2580ms (29 ms)
SourceMapConcat: Concat: Vendor /asset... (2) | 502ms (251 ms)
SassCompiler (6)                              | 388ms (64 ms)
SourceMapConcat: Concat: Addon JS (2)         | 378ms (189 ms)

Error: ENOTEMPTY: directory not empty, rmdir '/Users/dustin/Developer/industrymaps-web/dist/node_modules/encoding/'
    at Error (native)

To reproduce (in my project)

  • Run ember fastboot
  • Visit localhost:3000 in browser
  • Stop fastboot server
  • Run ember fastboot again

The directory is not always "encoding", but it's the same error each time.

Running rm -rf dist fixes it once, but can be reproduced again by following above steps.

@dustinfarris
Copy link
Author

Updated: this seems to be specific to my project

@dustinfarris
Copy link
Author

Going to close this until I can do a better job triaging. Possible this stems from one of the addons I have installed.

@josemarluedke
Copy link
Contributor

I'm also having this problem. @dustinfarris Could you share what was the problem for you?

@dustinfarris
Copy link
Author

@josemarluedke I was told on Slack that this is a known problem with fastboot. It doesn't seem to affect the production build, just the local server.

@steveszc
Copy link

Also having this problem, seems like a big enough productivity killer that its worth fixing. I can try to figure out steps to reproduce if no one else has been able to figure out exactly whats causing it.

@dustinfarris dustinfarris reopened this Aug 24, 2016
@steveszc
Copy link

@dustinfarris Did your slack conversation shed any light on what might be causing this?

@dustinfarris
Copy link
Author

I don't remember it well sorry. I think it was some sort of race condition but not sure at all.

ping @tomdale @rwjblue

@steveszc
Copy link

Looks like this is a duplicate of issue #246

@steveszc
Copy link

This can probably be closed again in favor of #246 and #247

@tomdale
Copy link
Contributor

tomdale commented Sep 5, 2016

Sorry this is taking so long to fix, we've got some improvements to the overall way the build works that should address this but it's taking longer than I anticipated. Thanks for your patience! I will close this issue in favor of #246.

@tomdale tomdale closed this as completed Sep 5, 2016
xg-wang pushed a commit to xg-wang/ember-cli-fastboot that referenced this issue Nov 16, 2020
Document `reload` method.
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

4 participants