-
Notifications
You must be signed in to change notification settings - Fork 102
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
create_db.Sybase still useful ? #147
Comments
create_db.Sybase is kept because Sybase driver (Sympa::DatabaseDriver::Sybase) lacks feature of automatic database creation the other drivers have. In fact content of this file needs update. Or, Sybase support would be dropped (I prefer to this option). |
I strongly concur with the riddance of Sybase. |
Then I agree to drop support for Sybase. |
@dverdin, please let me know where can we see the result of 2015 survey? |
We are using Sybase intensively for all our sympa lists to update the subscribers automatically from Microsoft SQL Server. I became aware of this canceled feature by upgrading to Debian 10 buster, which updates to sympa 6.2.40. After that all lists complain, that the subscriber liste can not be updated anymore. The error log messages were not helpful at all. If would be good to write to the logs that Sybase is a depreciated feature, best with proposal for a replacement. Is there a replacement for Sybase? All our list configs currently use: /var/lib/sympa/list_data/mail./XXX/config: |
I found that the Keyword Sybase for db_type in the config file has just to be replaced by ODBC. A hint in the documentation e.g. https://sympa-community.github.io/manual/customize/data-sources.html would be helpful. |
Sorry for my comment on a closed topic. @voerg, I am facing the same problem when migrating my Sympa 6.2.16 installation to 6.2.60 Could you post how you managed to solve this problem with your Microsoft SQL Server databases for dynamic management of subscriptions? |
Thank you, @voerg. That's exactly what I was doing but I'm breaking my head against a wall trying to configure ODBC with FreeTDS in my server to make it work with Sympa. If this is also your environment, could you please provide the contents of your I know this is something that seems not related to sympa (I know definitely it is not related to this topic, sorry for that) but I am starting to think that there could be any problem/bug in sympa's ODBC implementation. I am able to connect to my database through ODBC from the command line:
but when I try to update the subscriptions in sympa I always get this error:
Thank you very much and sorry for the inconveniences. |
OK, we finally made it work. I am posting this final reply to let other people know how we managed to use SQL Server databases as the source of our dynamic subscriptions. All our work was done in Sympa 6.2.60 installed from the Debian 11 (Bullseye) package. First we installed the necessary packages (I think these are the ones that we installed, plus their dependencies)
Then we configured our ODBC connection driver editing
This file required the definition of an ODBC driver which we did in
And it also required the creation of a new entry in the configuration file of FreeTDS (
When all these files were ready here you have the tricky parts. On first one, we had to add the ODBC driver to the sympa user but for that we had to provide that user with a shell with this command:
and executed these two commands:
The final part was the second tricky one of the process: define the automatic subscription in the list. Here you have the definition extracted from the config file for the list (in
Final note: Capitalized text between dollar signs (
|
@qosobrin , this issue has already been closed. I suggest you'd be better to post your knowledge as a chapter of the documentation. However, before you begin authoring, you'd be better to run Sympa with your configuration in actual operation for a while. |
Several create_db.* files were removed in a recent commit: 17e865c
The only one left is create_db.Sybase which has not changed for 2 years. Does this file need to be removed too ?
The text was updated successfully, but these errors were encountered: