-
Notifications
You must be signed in to change notification settings - Fork 54
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
SQalchemy error during installation #15
Comments
Please, can you specify the versions (CKAN and PostgreSQL) you are using. I have installed this extension in several instances and it's the first time I see this error. |
CKAN 2.41 and psql (PostgreSQL) 9.1.19 - I have the pages extension installed as well and I think there may be a conflict. |
Hi again, Sorry for my delay, but I did not found time to take care of your issue until now. I have created a completely new CKAN instance and installed Here you have the versions I have installed:
Are you using the same versions? You can check the instance I've created at: http://130.206.126.145/ |
Hi, Since I have not heard from you in a week, I will close this issue. Please, if you are still not able to install this extension, do not hesitate to reopen this issue again. BR |
@aitormagan I'd like to reopen this issue with the following information and reproducibility steps. CKAN 2.6.1 The reason you may have been seeing a smooth install is that datarequests works fine on install install and server startup, but then produces this exact error once navigated to another page or after the server has been restarted. |
Hi @LukeTully, I will reopen the issue without any inconvenience. :) In regard to your issue, I can tell you that the extension is properly working in many CKAN instances. For example, the instance is deployed at https://data.lab.fiware.org/ and we don't have the problem you have mention. As you can see, you can navigate though the pages and no exception is risen. Additionally, this server has been restarted so many times and this error did not appear. The extension has not been tested with the CKAN version you have posted. Maybe the extension si not working properly with that version. Have you tried to install the extension in a older CKAN version? I can check compatibility with that version, but I am afraid it will take me some time to do so. |
Thanks for the quick response and for re-opening the issue. I'll see if I can isolate the issue by installing it with a known to be working version. Would you have a version that is definitely known to be working? Are there any other commonly reported conflicts I might have missed? It seems like quite a few extensions have undocumented incompatibilities with 2.6.* and so I've been going through the closed issues, commit logs, and forks, to see if they can be of any help before opening new issues myself. |
@LukeTully, the instance I mentioned before is using a CKAN 2.6 with Postgres 9.1. Anyway, I will try to install the versions you mentioned before in order to reproduce the error and try to fix it. It will take me some time, but I will try to do it as soon as possible. If you find a solution to the problem you can submit a Pull Request too. We will be glad to accept it!! :) |
@aitormagan Thanks for the effort. I'll give it a go once I figure out this archiver issue I'm also running into. I've started looking through the code, starting with db.py, but it's a little still a little unclear to me so far and the errors are cryptic. I'll paste the whole relevant portion of the error log below as a text file. Maybe you can point me in the right direction. |
Hi @LukeTully, I am afraid I am not able to reproduce the issue. I have started an EC2 instance with Ubuntu 14.04 and installed PostgreSQL 9.3 and CKAN 2.6.1 and the Here you have a complete list of all the versions I have used:
|
Thanks @aitormagan for looking into that. That gives me a lot of information to work with and I'll document the solution here when I resolve the issue. I have had some success in isolating problems with other extensions so far. ckanext-scheming seems to be conflicting with other extensions and not reporting errors. Not sure if that's what the problem is, but making progress. Any chance you have some previous experience with obscure problems happening in other extensions that manifest in weird ways? |
I would be fantastic if you find a solution to the issue so other users can take advantage of it. It is not the first time I see some incompatibilities between CKAN extensions so maybe that is the problem :). Let me know with your progress.
P.S.: thank you so much for investigating the issue and using the extension!
|
@aitormagan So I have a small update on this issue. No solution yet, but I have isolated the problem, at least in my situation, to a conflict between datarequests and featuredviews. |
@LukeTully, so if you disable "featuredviews" does the "datarequests" extension work again? I have checked the "featuredviews" extension and I do not understand the problem since this extension does not create any table called "datarequests". I will try to install that extension on my instance so I can see if I can reproduce the problem :) |
@LukeTully Thanks you for the reporting!!! I have installed the
I hope this helps! :) |
Hey @aitormagan. Sorry for the late reply. I could have answered with a simple yes to that first comment. Thanks for the patch, I appreciate the effort to look into that and know it can be a lot of investment handling issues and support. I'll try applying it. Hopefully with some more exposure to both python and CKAN I'll be able to more thoroughly diagnose things like this and issue a PR instead of just an issue. |
<class 'sqlalchemy.exc.InvalidRequestError'>: Table 'datarequests' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.
The text was updated successfully, but these errors were encountered: