-
Notifications
You must be signed in to change notification settings - Fork 18
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
[o] ERROR: The server is not available. #93
Comments
I have the same issue. Just came up after a reboot. |
@WBWBW Did you do anything besides reboot? I have rebuilt my whole RPi image, confirmed internet access and still no go |
No. It looks like it’s the same for everyone. May be the server is no longer maintained or an issue hasn’t been fixed. |
Hey! Really sorry for the delay — the hosted Openframe server is loosely maintained as time allows! And sadly I haven't had time to look into this yet. The API server is running, otherwise the web app wouldn't load, so it seems as though there's some other issue that's blocking the frame controller from connecting :/. I'll try to find time to look into it ASAP. |
Did anyone try looking at the debug output? I think if you run |
Also check the config file at ~/.openframe/.ofrc — it's possible this has been corrupted. The "network" property should look like this if you're using the hosted Openframe server:
|
@jmwohl
.ofrc currently:
I can confirm that the pi can ping both api.openframe.io and openframe.io. I was even able to WGET the swagger.json that it tries to read before claiming the server is unavailable. Quite peculiar |
@son1cn Thanks for this! Strange indeed, but the CORS error might be a clue — it's possible that something changed on the server (not sure why that would be the case?) or some request-related JS dependency on the Pi that is blocking the request. I'll try to set up a fresh frame and debug further. |
@jmwohl |
I tried installing from scratch and it did not work |
I installed a local cors proxy through npm and used that to successfully login:
Now I could login |
Awesome! Do you know how to make the proxy persist after a reboot? Thanks for the help! |
You can add it in
|
Hi I followed the above instructions and I still get ERROR : The server is not available Openframe: cli Can't read from server. It may not have appropriate access-control-origin settings. What can be done to solve this? |
The cause of this issue is the Contributions very welcome!! |
Excited for this project. Hope this can be kept alive. |
hello there :) ... seems that i ran into this problem also, fresh install of a rasberry pi 3, follwed the instructions to install openframe, bit i get this Error: The server is not available. setterm: terminal xterm does not support --blank [o] ERROR: The server is not available. openframe:cli Can't read from server. It may not have the appropriate access-control-origin settings. +461ms is there any solution for this ? |
Hi @hannsQ — I haven't followed up on this, but I'm fairly certain the solution is replace the |
thank you jmwohl for your answer, i just dont know how to do that - where can i replace the swagger-client and with which kind of commad do i make this fetch request to the api? Thank you !! during installation of openframe following error occured: E: Unable to locate package glslviewer npm ERR! [email protected] install: npm ERR! Please include the following file with any support request:
Installing glslViewer... npm ERR! [email protected] install: npm ERR! Please include the following file with any support request: pi@rasp:~ $ DEBUG=* npm start npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm ERR! Please include the following file with any support request: thank you!! |
Regarding the https://github.com/OpenframeProject/Openframe/blob/master/src/rest.js Then updating elsewhere in the app where the The other error you're seeing there is unrelated, it seems like maybe glslViewer isn't available as a package in this linux distribution. We may need to go back to installing that manually. |
Thanks a lot jmwohl, seems this is beyond my ability.. i will wait for an update, hoping to get openframe running... |
I’ve been digging into this a bit… the root cause is the API server not setting the CORS headers, at least on swagger.json. I see that the server is using loopback, and the config has cors:false under remoting, but the loopback documentation suggests there should be a cors:{origin:false} entry under the rest options. This might be a change in loopback? I haven’t yet set up a server to test, but figured I’d share. |
Is this project being maintained? This thread is from 2021 and this issue is a blocker for 100% of users and basically nullifies the entire project. It's a bad user experience to get all the way to this point in setup and to be blocked at the last step with no indication from the maintainers that it's broken (apart from issues in github). Could you update the README or the documentation if this project is going to remain unmaintained and broken? |
I've had Openframe running for a few months with no issue. A week or so ago it stopped initializing and I started looking into it today. When I run the open frame command, this comes up now:
[o] ERROR: The server is not available.
I tried to reinstall via the regular install script but no avail. I then reflashed raspbian and tried the script on a newly updated OS and still no dice. Openframe 0.4.12 and node 6.9.5.
Has anyone else experienced issue recently? I checked that the pi has access and can ping api.openframe.io with no issue.
The text was updated successfully, but these errors were encountered: