-
Notifications
You must be signed in to change notification settings - Fork 46
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
Docker setup error: AttributeError: 'UTA_postgresql' object has...
#96
Comments
Hi, I am getting this error when running |
Ok so I am still getting this same error |
This is an odd one because I'm building on mac M1 Silicone using the ARM chip method and all works fine. The error you are reporting we have seen before @hotsoupisgood https://github.com/openvar/variantValidator/blob/master/docs/COMMON_ERRORS.md It usually occurs when SeqRepo database cannot be called by the looks of things. First steps @beboche and @hotsoupisgood . Have you made sure all the host-machine directories are made? $ mkdir ~/variantvalidator_data These are required for the SeqRepo database to build Note, this is for the docker build. |
When building on LINUX, the issue is usually that the path to your SeqRepo database is set incorrectly and VV cannot find it. Have you configured your This might well not be a bug but a config issue. |
@hotsoupisgood. Let me know if you want to set up a call so I can help with the config. Might be quicker then we can post the solution here |
Hey @Peter-J-Freeman. I was out of the office on Friday and could set up a meeting tomorrow afternoon(PST) if you are free. I did make those directories. But another thing I should have noted in my original post is that I am making these directories in a different location. I did change the docker compose file to point toward my new location. I am not sure if this could be causing an issue or not. Additionally I changed some ports being used in the docker compose. Potentially one of these changes could be causing the error but I am having some trouble figuring it out. |
That might be doing it. If SeqRepo cannot be found then this error will occur. We may need to look at your build files and make sure the settings are adjusted. An overview of the directories The container wants to make these internally
And binds them to the host directories you create share:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '${HOME}/variantvalidator_data/share'
seqdata:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '${HOME}/variantvalidator_data/share/seqrepo'
logs:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: '${HOME}/variantvalidator_data/share/logs' SeqRepo database Should be being built into /usr/local/share/seqrepo unless you changed anything so the config file should be version = VV_SR_2022_11/master It looks like the container is building so you should be able to enter the container using docker-compose run restvv bash. Navigate to /usr/local/share/seqrepo and check to see if VV_SR_2022_11/master is present. Happy to have a call. Send a contact message here https://variantvalidator.org/help/contact/ and we can set something up. |
OK. Testing the following. Python 3.10 should be fine. I run that on many machines. I have updated the Postgres container to 14.5 I cleared my SeqRepo build in ~/variantvalidator_data/share/seqrepo on my local system. Pruned all containers Deleted all volumes from my system Trying a build now |
I found that vvta fails with postgres 14. I need to remember the steps I had to take to fix this. It's in here https://github.com/openvar/variantValidator/blob/master/docs/INSTALLATION.md Postgres < version 14.0
Postgres >= version 14.0
So the vdb build needs to be updated |
Hey Peter, Thank you for the help.
With something like this because I am running postgres 13.10? I am able to run any version.
Also, regarding the configuration files. Is the only thing one normally has to add is their email under the |
Basically, I'm having to try and manipulate the download and docker entry point to get the data to loas into postgres 14. So currently, I would leave the vvta.df file as it is except you can upgrade to 13.10. I would also try placing the directories in the places they were specified in the manual for now so we can debug. It might be that we need to change the docker-compose file to match the locations of your local directories, but one thing at a time. First we need to try get a build working. For now, try making the directories as stated in the manual and building. You can also update the postgres version to 13.10. If you are using postgres 13.10, the vvta df should be
It's getting complicated trying to move up to pg14 The reason I suspect it might be the directory locations and the bindings is that the error est_variantvalidator-restvv-1 | AttributeError: 'UTA_postgresql' object has no attribute '_pool'``` usually suggests the seqrepo database is not building. I'm wondering whether if the directory bindings are incorrect, it is causing an issue with the build. |
@Peter-J-Freeman Are the ports in the docker.ini config the host ports? or the container's ports? Edit: They seem to be the host ports because when I change them I get a bit further in the boot. See comment below... |
Hey, So I changed the ports in the config docker.ini and I got further in the restvv boot sequence. Now I have this non specific error:
When I am running this afterward: Still thinking about ideas... |
This might help |
Hi, So I got it working using non-docker install. However I did encounter the same "_pool" issue along the way when running the rest variant validator web server and figured it out in that case. I don't have time to go back and debug the docker version right now, but maybe I can see if the solution is the same when i have time. |
Ah, that makes sense. If the config was incorrect these issues Woukd pop up. Thanks for the feedback. I'll. See if I can integrate code that gives informative messages for miss configuration. Really appreciate your help |
The text was updated successfully, but these errors were encountered: