-
Notifications
You must be signed in to change notification settings - Fork 412
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
Spiderable fiber issue #1192
Comments
Well, funny thing, I've checked on linux and it works and also it works in meteor bundle. I am gonna try to reproduce it from my production environment again. |
I have the same issue on Ubuntu 14.04 |
I also have this issue on Ubuntu 14.10. It works perfectly on the local host. |
Also, I noticed this in my logs when I start up the server, I wonder if it's related: [<ip>] Warning: Permanently added '<ip>' (RSA) to the list of known hosts. It happens every time, so it isn't really managing to permanantly add the ip address to the list of known hosts |
More info. On my local server it works perfectly, UNLESS I get the URL slightly wrong. For example: http://localhost:3000/logbook/personal??_escaped_fragment_= (Note the two ?'s) In this case I get the EXACT same error message continually thrown to the console. I have to quit meteor to return to normal. In the case of the Digital Ocean deployment I am using the correct URL, but I get the same error thrown. |
Running into a similar problem. Tried all fixes listed on line but nothing works. Getting this output when I hit
I've run through the troubleshooting guide over on Meteorpedia a handful of times to no avail. |
Anyone found a workaround for this? |
@dasmodel Nothing yet. Anybody else? |
Well, I used ongoworks:spiderable, which uses Docker to run spiderable and it solved this issue and another one (/dev/stdin error), maybe you can try that as well |
I think it may be an issue with some of the iron-router middleware not using Meteor.bindEnvironment. Someone would need to submit a pull request to fix. |
Attempting this now and getting similar output. Again, just visiting
This is after uninstalling the original Sounds like @Volvox may be correct here. |
+1 i'm getting this error also -- but only on modulus - can not seem to get it to happen on localhost, even in production mode - using spiderable and dfischer:phantomjs packages for what it's worth, all tests of spiderable using curl seem to work just fine |
Having this problem too, pretty anoying. 2h of debugging and no fix found... |
Just to add that I'm getting this error too on Ubuntu 14.04 on Digital Ocean. Haven't had a chance to look into a solution yet so just a +1 for now! |
Does the problem happen with a bare app with no packages except iron router on it and one simple home page route? It does look like some kind of fiber issue. But I took care to wrap iron router callbacks in Meteor.bindEnvironment so I don't think this is a core iron router issue. Nonetheless it would be good to pinpoint it. Maybe we can change some logic to make it full proof. On spiderable, there's a lot of other random things that could be happening. When you see a message about phantomjs being killed, it means that phantomjs spun up a virtual browser and tried to hit your url but either an error happened or it timed out (i.e. couldn't reach the url). In both cases you get this arcane looking error. Not clear to me from this thread whether the spiderable / fiber issues are related or not. I.e., does the fiber error happen without spiderable? |
@cmather when creating a brand new meteor app with spiderable installed as the only extra package, things work fine. The fiber error occurs as soon as iron router is added. |
+1 I have the same error... Is there no fixes yet? |
if anyone was wondering I was able to get a quick fix up and running by using but I'd like to use the official package. |
Can someone link to a reproduction with steps. In the initial example I'm not sure if there are routes or if it's failing on initial project creation. Show me a runnable app and I'll see if I can trace it down. EDIT: We're not having issues with spiderable and iron router with EM which is why I think there might be some other variable here that I'm not seeing. |
Hmmm... My env is Digitalocean / Ubuntu too. Meteor is in a docker and proxied by nginx over ssl. I tried the Spiderable SSL package. I tried opening the http port on the host with direct access to the meteor port and setting ROOT_URL to the http port. Also tried ongoworks:spiderable which did not solve the problem. |
+1 |
Subtracting my +1 ongoworks:spiderable solved my problem - haven't had time to delve into it in detail but ongoworks' package states 'Uses port as set in meteor port and /tmp/ files instead of /dev/stdin' and as I was using nginx to forward everything to https I'm guessing I may have introduced an issue with using the official spiderable package. I know ongoworks hasn't worked for others but just wanted to highlight that the exact same error can crop up through no fault of iron router. |
Ty for your feedback. I was already going to make another try with the ongoworks pkg. Will add a new comment with the results later. |
Okay I updated meteor and retried ongoworks which really didnt help... The error stays the same and doesnt anyhow help to fix it self. I bloody hate such troll errors xD After this problem, I fell in love with blue screens Maybe it would help if we list our installed packages? My only next idea would be to dublicate the spiderable and iron router packages and adding verbose logs... EDIT: MAJOR UPDATE I need to refactor the new package, make tests, more tests and than upload it on atmosphere or so... Whatsoever: i think: the changes exhibit, that this spiderable issue has nothing really todo with iron-router... The spiderable package seems to be programmed a little bit slugish and its errors are ultra non-verbose. When the package is out i will inform you guy's ;). I am really tired, so my english is a bit plunked xD |
@katywings any update on that package? |
I cant work on it at the moment. Having the flu :( |
Windows 8.1 also getting this error.
|
+1, having this error on Ubuntu on an EC2 server |
Little Update: I am fixing the last bugs but anyway the new package will follow soon! Edit: i could fix them, gonna test the new package currently on my DigitalOcean Server, it works here: https://nitropage.com/?_escaped_fragment_= I will upload the package next weekend i think. Just to get you prepared: it looks like the new browser zombie which replaces phantomjs, needs |
Okay 💃 Announcement Time: the package is finally online, try it out and give me feedback if something doesn't work: |
+1 for me. ongoworks:spiderable and lufrai:spiderable2 didn't solve the problem. |
Sad to hear :/, whats your environment? |
dev: OSX |
Kk, but with the package lufrai:spiderable2 did you set the port in the config? Because spiderable needs to know the original port of the meteor server (not the port of nginx or your host or whatever) |
Absolutely :) cf. lufrai/spiderable2#5 |
After hours of debugging I've finally find out the cause of this problem.
So removing meteor-pages fix the issue and makes phantomjs works well. But now I have to figure out how to use meteor-pages without make phantomjs 1.9.7 explode (or just upgrade to 2.0)! Good luck all. |
Did I get you correctly that Meteor-Pages requires phantom? Whats the exactly line of code which fails? Spiderable2 doesnt use phantomjs! |
Indeed, I was back to spiderable with phantomjs. :) FYI I think it's related to this bug: alethes/meteor-pages#111 |
@katywings Your package fixed my issues! I was just about ready to give up after a few hours of debugging. My only complaint is that pages load significantly slower when going through it, but that's not really an issue since all I'm going for is web-crawlers to actually index my website. Thanks! |
I have the same error with Digital Ocean running Ubuntu 14.04 and deployed using mup. I have the 5gb droplet for development. Is there a final solution for this issue yet? |
Have you tried lufrai:spiderable2? |
@katywings I actually just removed spiderable and added ongoworks:spiderable which has solved my problem on Digital Ocean. To solve the problem locally what I did was install dfischer:phantomjs. |
I was running into the same, turned out @thatgibbyguy suggestion's meteor add dfischer:phantomjs saved the day for me. Worked with even spiderable package. |
I found the issue that was breaking my implementation. Just to be clear, I tried ever suggestion possible in this thread, nothing helped, so I kept looking... I've rolled back to the version that was working and started digging... What turns out to be a problem is that one of my "publish" methods was returning false instead of expected array. As soon as I started returning an array, everything was back to normal. Broken
Fixed
I hope this saves someone hours in the middle of the night. |
I've been commenting out parts of my app to find the culprit, but no success yet. +1 |
In case it helps anyone, I had two lines that were breaking spiderable with this error:
and
I changed them to the following, respectively, which fixed the error:
and
So I don't know if there's a one-size fits all solution for this one. The error seems to be a generic catch-all in phantomjs. |
Hello hellogerard Thanks for your info! Yeah its almost impossible to figure out a way to make every possible package environment working ;) |
I had the same problem. After some digging I found out that Meteor subscriptions were never ready when the app was launched from PhantomJS browser on a production server, therefore Spiderable.isReady() never returned true, PhantomJS kept waiting 15 seconds and then failed disgracefully, throwing the above error. I think PhantomJS might have some problem with the SSL/TLS protocol used in the production environment or maybe all the proxies along the way (our setup is CloudFlare=>AWS ELB=>nginx=>Meteor). To work around this, I added the following code on the server: var originalFunc = Spiderable._urlForPhantom;
Spiderable._urlForPhantom = function (siteAbsoluteUrl, requestUrl) {
var url = originalFunc("http://localhost:8080/", requestUrl);
console.log("Resolved Spiderable request " + requestUrl + " to " + url);
return url;
}; where http://localhost:8080/ refers to the local Meteor server URL and not the public-facing ROOT_URL that runs through the proxies and TLS/SSL. It works like a breeze now. |
@jancurn thanks! |
@jancurn thanks! Works like a charm! |
@jancurn You save my life... Thank you |
@jancurn thanks for this snippet. |
Well, I had some issues with iron router and spiderable on production environment (similar to this: issue 1069 and stack overflow question), and I managed to reproduce the bug on clean meteor instance with iron router.
So steps are:
Now run the application, and visit site at "http://localhost:3000/?_escaped_fragment_=". And server logs following error:
Meteor version: 1.0.3.1
phantomjs version: 1.9.8,
node: v0.10.29
mac os x
Seems critical to me.
The text was updated successfully, but these errors were encountered: