Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Infinite loop #237

Open
PLAN8VR opened this issue Feb 23, 2020 · 9 comments
Open

Infinite loop #237

PLAN8VR opened this issue Feb 23, 2020 · 9 comments

Comments

@PLAN8VR
Copy link

PLAN8VR commented Feb 23, 2020

Hi,

When trying to enter setup from the web page on the manager, I get an error about an infinite loop, and cannot login? This doesn't happen every time, but more often than not - any ideas what I'm potentially doing wrong?

Windows 10

Thanks

@ArrowThief
Copy link

I don't know that this is related, but I've noticed that since around the beginning of the year my flamenco manager web interface is caught in an infinite loop. This has not impacted functionality, apart from no longer being able to access anything in the interface. It still pushes tasks to workers and has moved though render projects. I assumed this was an issue with my manager, so I set about scraping it and starting over, however after I connect to cloud.blender.org to setup the manager, the setup page does the same thing.
So I believe the issue is coming from cloud.blender.org.
I attached gifs to better illustrate the issue.
Manager
Setup

@sybrenstuvel
Copy link
Collaborator

This happens when the cookies for the security check don't work well. I've seen issues like this with Google Chrome when a hostname without a dot in it (so just localhost, for example) is used. Try using a name like flamenco.local instead of an IP address, that might help.

Alternatively, if your Manager is not facing a public network interface, you can disable the JWT security altogether by editing flamenco-manager.yaml and setting:

user_authentication:
    disableSecurity: false

@ArrowThief
Copy link

Interesting, since it just started happening randomly I assumed it was something that had changed on the server side. I didn't consider it may have been a chrome update or something.I went ahead and setup flemenco.local to test it, but It still happens when I go to flamenco.local:8080. Edge works though, so I can just deal with it that way. thanks for the help.

@garyritchie
Copy link

Firefox also works better than Chrome in this case. Took about an hour to figure that out.

@dingdini
Copy link

I have to add that I'm setting this up as well, and it is utterly failing. I'm running the manger on Ubuntu 18.04, and trying to access the manager through Safari on MacOS Catalina.

@sybrenstuvel
Copy link
Collaborator

It has something to do with how the browser handles XHR requests from the Flamenco Manager interface to cloud.blender.org. Some browsers include the Cloud session cookie, and others don't. Firefox seems to work, other browsers have some issues. If anyone knows how to fix this properly, please speak up!

@RalekArts
Copy link

I'm still getting this issue with Firefox, Chrome, and Edge. Any workarounds or fixes on the horizon yet?

@sybrenstuvel
Copy link
Collaborator

Sprite Fright is in production, which means the Blender Animation Studio will be actively using Flamenco again soon. I'll probably have some time to look into this in the coming months. As I said above, it's part of how the JWT-based security is handled, so when you turn that off your Flamenco Manager is usable by anyone who can reach it, but won't infinitely loop.

@garyritchie
Copy link

Alternatively, if your Manager is not facing a public network interface, you can disable the JWT security altogether by editing flamenco-manager.yaml and setting:
user_authentication:
disableSecurity: false

Rather it should be true...

user_authentication:
    disableSecurity: true

With that setting it seems to work better in Chromium. Manager is behind a firewall in a trusted environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants