-
Notifications
You must be signed in to change notification settings - Fork 80
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
Infinite loop #30
Comments
Is this happens locally or in production. I'd like to see sample repo where I can work on it. |
I'm also seeing this issue or at least a variant of it. In my case it seems unrelated to manual page reloading, but whenever the page is updated through a hot code push, the "infinite reload loop" starts and nothing short of restarting the server will break it. New clients connecting to the server will also experience it. I've managed to narrow it down somewhat, and it seems like it only happens if the client folder is huge. The following should be enough to reproduce it:
Edit: for what it's worth, I'm using the latest release versions of meteor (1.0.4.1) and meteorhacks:cluster (1.6.1) |
Thanks @NovaPS |
@arunoda : were you able to reproduce this, or do you need further information? |
Hmm. I tried now. May be this is due to Meteor's local hot push stuff and how it deals with the proxy meteor created. |
I haven't tested it in production mode, but the snippet above causes the error every single time on my test rigs. The amount of stuff in the client folder is directly coorelated to the error though (Some rigs require more, some less), so if you're having trouble reproducing it just put more stuff in there, eventually you'll run into it. |
it happens to me also, but in production. A server restart doesn't solve the issue, so I'm gonna remove cluster. |
Since I added the multi balancer, I noticed some loops too. After updating my app, the app reloads in infinite loop (but not every time). On Firefox I had to reopen the window and on Chrome I had to clean the cache. Sometimes after a page refresh or a route change, it reloads 3-4 times before it stops or it get stuck like if the It's maybe not related but I had to remove |
I have the same issue using only the Multi-Core feature of cluster (cluster workers). It goes into a refresh loop on hot code push, it will eventually stop, sometimes giving 'unspecified error'. Restarting the server fixes it, but only until the next code change. Here's an example: http://i.imgur.com/GTHwcGh.gif Meteor 1.1.0.2 |
It's not a "infinite loop" to me, but like @darkship sometimes the page refreshes itself 3 or 4 times. |
@Igor1201 +1 some problem =( |
We're experiencing the same problem in production. It seems to happen any time a file is edited (the 2 instances we've had specifically are adding a file that is in /public and pulling an update from our repo that affected some files in client) Is there any information I can provide that would help you solve this problem? |
Update that might be relevant: We just had the issue again after pulling code last night, but it didn't happen on my phone, only my laptop |
Seeing the same thing, but I managed to work around it by setting ROOT_URL to be the same as the actual IP of the instance. We have two servers, with two workers on each. Domain name points to both IP addresses. Cluster configured via env variables:
When I set ROOT_URL to the domain we use for the app and restart, it goes in a refresh loop. Reset ROOT_URL to IP, all is fine. Edit: upon further investigation setting ROOT_URL only prevents infinite loops, but the page will still re-load couple times, on each refresh. |
Same issue here, reloading a few times before settling (between 3-7 reloads). Feels like there's a redirect going on until it finds the correct endpoint or something? |
I'm seeing this as well, but ONLY after I enable Cloudflare. I have 2 instances where one is acting as the load balancer. I enabled Cloudflare's services on the A record for the host that's acting as a load balancer. Cloudflare works fine when I only have a single instance, but as soon as I install cluster and set it up, I see the infinite loop issue. Anybody figure this out? Update: It has stopped looping for me. My assumption is that the "slave" host was trying to communicate with the "master" host, where the master host was behind Cloudflare. My guess is that the cluster communication was trying to proxy through Cloudflare, which either wasn't working or just caused a loop (i.e., CF -> master -> slave -> CF -> master -> slave etc...). This is all a total guess, I didn't try and debug the actual issue. Anyway, here's what worked for me. I added CLUSTER_ENDPOINT_URL for each server. That is all. Somehow that fixed the issue. |
It's also happening to me. My setup is running on 2 DO instances that uses Meteor Cluster, then there are two Cloudflare instances (2 domain names) pointing to both, The thing is, in the root url, i only specified one of the two domains. When I removed meteorhacks:zones, then it solved the problem... |
I was having the same issue, however when removed the environment variable CLUSTER_WORKERS_COUNT=auto, the page reload loop stopped. Hope that helps! |
I have the same issue. |
@cihantas, if you unset $CLUSTER_WORKERS_COUNT in terminal It should solve |
@guns2410, I already read your comment above mine, but multi-core support was the reason why I wanted to use this package in the beginning. :) Thank you anyway. |
@cihantas, all I can suggest is specify the exact number of processes you want to fork. Eg: CLUSTER_WORKERS_COUNT=2. Good Luck. |
@guns2410, it works! 💯 Thanks, a lot. |
I use multicore cluster mode. When reload page ( i use ironrouter) the web enter in a loop reload infinite.
When disable cluster workers, the web work fine
The text was updated successfully, but these errors were encountered: