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

icon screenshot functionality says "Error: Can't generate thumbnail. Is your server running? Check the logs." #28

Open
henning opened this issue Dec 11, 2021 · 5 comments

Comments

@henning
Copy link

henning commented Dec 11, 2021

When I hit the button "Generate Images", I get the message "Error: Can't generate thumbnail. Is your server running? Check the logs."

I checked the make_screenshot.py to see if I need ti change the port there when I changed it before in settings.py because I had something running on 9000 already.
But the port there is not the same as the one in settings, as I understand it's an own webserver instance just for the screenshot.

I start the mod-sdk via the mod-panel app(assuming this is "the right way" to do it), and I see no output in the console that would point on the cause of this error.
(actually I see no output at all in the SDK Tab of mod-panel... but that might be another issue in another repository).

@henning
Copy link
Author

henning commented Dec 11, 2021

Hint: also, I tried to find any place with some logs, but wasn't successful.

@henning
Copy link
Author

henning commented Dec 11, 2021

This might be similar or related to #11 - but I am running with tornado 4.3 (as the requirements fils of mod ui suggests)

@brummer10
Copy link

This message is thrown by modsdk.js (mod-sdk/html/js) line 83.
alert("Error: Can't generate thumbnail. Is your server running? Check the logs.")
I've commented it out it here, as it is false.
To reload the page after a screenshot is created I add a new function to the modsdk.js


function reloadPage() {
    window.location.reload()
}

which I call with a timeout in the $('#screenshot').click(function() function.
setTimeout( function() { reloadPage(); }, 6000)

timeout is set to 60ms because the screenshot.js introduced a timeout of 50ms

@CarloCattano
Copy link

The only way I got it to work on a raspberry pi , is by running the server as sudo ./development_server.py from a terminal session with graphical desktop

@falkTX
Copy link
Member

falkTX commented May 4, 2022

phantomjs is needed for those.
also, mod-sdk no longer works with the latest tornado, I added a requirements.txt which you activate through pip and virtualenv, that should work in theory.

see https://github.com/moddevices/mod-panel/blob/master/source/mod-sdk.sh for an example

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