-
Notifications
You must be signed in to change notification settings - Fork 205
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
Random failures #149
Comments
Hm. It could be build timeout errors. Try increasing your build timeouts like so: EmberCLI.configure do |c|
c.app :frontend, build_timeout: 30
end |
We have ours set to 20 right now. I can up to 30 but I have to imagine 20 seconds should be long enough for the build to complete. And why would sometimes only some of the assets alternately fail? I would assume if it was a build timeout they'd all fail? |
I just tried upping it to 30 but I still get the same alternating 404's. |
Hard to say what exactly is wrong. Try updating ember-cli maybe? Please keep us posted if you find out what's causing this. |
We are on the latest version of everything. It was killing our productivity so we decided to just wire up our own simple version—we'll try again in the future. Thanks! |
I'm getting the same and trying my best to find out why.
My initializer looks like this:
and I have the Get 404s for |
For me at least my failures are seeming no longer random at all. Creating the most basic rails app with ember-cli-rails and I end up with the following: I get 404's for these assets consistently every time I start the server the first time and only the first time. Any page load after that and these assets load lightning fast. However if I use Pow as my webserver I get these 404s every single time, consistently. For casual development I don't need to use pow but for some apps, for example Rails apps needing subdomains or to collaborate with other apps on specific local .dev domains, Pow is essential. I'm digging into this issue more but if you are experiencing this issue and using Pow as well and have |
Nailed it. If any Pow users find this later make sure that Pow can see node. If you tail your development log you won't see this, you need to tail the Pow log then you can see that Pow has no knowledge of node. I'm a new user to nvm and did not set a default version. Once I set the default version with nvm and restarted my machine these asserts are loading correctly all the time. I'm so stoked because this gem is awesome! |
@brandonweiss I'm very curious to know if you're a Pow user as well or not. |
Aha, that hadn't occurred to me. I don't normally use Pow, but I was for this particular project. |
@brandonweiss could you be having issues similar to those discussed here? #94 Are you running a forking application server? Have you tried reducing the number of workers / forks to 1? |
No, I'm not funning a forking application server in development. I'm pretty sure it was the Pow issue previously mentioned. |
@brandonweiss sounds good. I'm closing this issue. Feel free to reopen if issues continue. |
@biscuitvile how did you "make sure that Pow can see node"? Currently struggling with this exact issue! |
I hit this same issue with ember-cli-rails and pow. Not sure what @biscuitvile did to resolve it exactly. To recreate the issue I do the following:
Note: this application works fine without change when using The error:
|
I've been using this for the last week and have been running into the same random failure issue over and over again. The Ember app will just randomly and inexplicably fail. Sometimes it will just be once. Sometimes it will be for long stretches. If I open the console I can see the two main JS files (vendor.js and [app-name].js) randomly 404-ing. Sometimes only one will 404. Sometimes both will. And then randomly they won't and the app will load.
I don't really know how to debug this. Any idea what might be wrong?
The text was updated successfully, but these errors were encountered: