-
Notifications
You must be signed in to change notification settings - Fork 173
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
Ara without server failing with /api errors on fresh install #533
Comments
I don't see any way this output could be the result of following the steps from the documentation that you pointed to. The error you're receiving is from the
As you can see the necessary setup happens on demand, which is why the documentation doesn't include any optional steps like running the migrations ahead of time. I suggest checking the output of
|
Clearly something is going awry on this system. First off:
I'll start with a fresh venv to confirm my steps:
|
Also, retrying a 3rd time with your exact commands (modified only for venv and my weird network) did resolve the dump warning on the first execution, but (using your test.yml) gave the same api error as the second execution in the previous take.
|
Hi @DavidEdell, could you provide the full output of the command with It will provide the exception tracebacks and some additional information. Thanks. Edit: to be clear, do not truncate the output to only the tracebacks, I'm also interested in the rest of the output. |
Here's the full output. I cleared the ~/.ara folder first to be sure.
The auto-generated ~/.ara/server/settings.yml
|
@DavidEdell thanks for providing the tracebacks. Nothing jumps at me from looking at the output but maybe we can troubleshoot and figure it out. It's unable to create a playbook and then everything cascades from there. By default, the value for It seems the server spins up but the callback isn't able to send data to it for some reason. Could you try running this test playbook and see if the server is running ? Can you curl it or check it out in your browser ? |
It doesn't look like a server is running, but it's also not even running the sleep commands from this playbook (it doesn't pause at all). Output:
stdout:
|
It looks like it fails before sleeping, here: Can you try again with |
Results were very similar. The only difference (I diff'd the stdout) was a different exception in the recover base url task:
|
Got a solution already? It has been 3 months.. |
I haven't made any progress (or even looked at this) since my last message. I may poke at it again soon, as my project is now circling back to a point where Ara would actually be useful. |
Thanks, to bad. I have similar errors. At the moment the API version on one machine works, but when I try to add another with the API callback. Nothing happens. I will keep troubleshooting and will keep you posted if I found any solution. |
I haven't been able to reproduce the issue on my end and so I don't have a hint about the problem or the solution. If someone finds more information about the problem I can look into it but it is not on top of my to-do list at the moment. |
I just gave it another try, this time after starting an API server and pointing ARA to it, but I'm still getting the same errors. |
I got things (somewhat) working using a discrete API server, though only when it is also running on the localhost. Prior to that, some printf-based-debugging showed that http.py's self.http.request call was returning a "400 bad request" when configured with the API server on a remote host (which is a secondary issue). When configured for the original offline client, it was getting a 503 error while querying localhost:40389. I also found I need to run The lingering issue is that while Fyi, the machine I'm running ARA on doesn't have direct network access however, so I had to manually import the docker container to get the API server easily running:
|
I'm seeing the errors below on a fresh installation under Ubuntu 20.04 & python 3.8.10 in a VENV. I'm using the "without an API server" directions from the getting started docs as a starting point. I'm using an ansible.cfg file generated by
python -m ara.setup.ansible | tee ansible.cfg
. The same directions worked on a docker-compose test setup, albeit with a more recent version of Python (and warnings when generating it's initial configuration already covered in another issue) and no venv.Side note: The 'Getting Started' directions should likely include a mention of running
ara-manage migrate
to create the DB.The sqlite3 db file is created, but nothing is getting inserted into it after running a playbook. Consequently there is no data in the web server and running ara queries gives me
When I run a playbook, stderr gives me
The first error I get (with -vvv giving additional details) is:
And the last error is:
pip3 freeze in my case is:
Note: The error message I'm seeing is somewhat similar to #532 but the circumstances are different enough that I don't want to confuse his issue.
Any suggestions?
thanks
The text was updated successfully, but these errors were encountered: