-
Notifications
You must be signed in to change notification settings - Fork 27
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
DBD::MariaDB::db STORE failed: Unknown attribute mysql_auto_reconnect #29
Comments
Hmm, there doesn't seem to be a similar option in MariaDB, only in MySQL: https://metacpan.org/pod/DBD::mysql#mysql_auto_reconnect |
Is there a reason you can’t just use the MySQL client to talk to mariadb? That is what I do. The two are interchangeable (mostly). |
It seems like Alpine (3.21) forces MariaDB even though I specifically enter My end goal here was (is) to write a full documentation on how to install the server in a small, lightweight and hardened way. Alpine is known for that. I got everything running as I want now with a few modifications to the code base, and reconnect doesn't seem to exist I'm afraid. I can read code but never worked with |
The server is written in Perl code. How are you installing the Perl prerequisite packages (like the dbd client, anyevent, etc)? From CPAN or from some package manager. For the dbd, there is a difference between a) the client library, b) the Perl wrapper round the client library, and c) the server. |
Maybe this is relevant: But it seems to indicate this was fixed back in 2018. What version of the Perl client library are you using? |
I'm happy to give you SSH access to the server so that you can inspect yourself. It's just in a testing phase as of now just to get the documentation up to date (which I plan to commit once I'm satisfied and issues like these are sorted). Once testing is done, I will trash it and start over from the documentation I wrote, just to double check all steps are correct. Please send your public SSH-key and IP adress to mailto at danielhansson.nu if you want. If not I will have to check when I get home later tonight. |
No email yet, so I figure you want me to write here instead.
As for CPAN, I use this https://pkgs.alpinelinux.org/package/edge/community/x86/perl-app-cpanminus and install with:
...and this is the output for
Yeah I read that too, but it got late yesterday, so I never got around investigating too much. I'm pretty sure changing to a "wider" distro like Ubuntu or Debian would solve the issues here, but why choose the easy path? :) |
Well, I have it up and running on a non-root user on Alpine now at least.
Now I need to figure out on how to proceed from here.
|
I think your problem is here:
As per: we are coded for DBD::mysql. So you want:
That should hopefully resolve your 'Unknown attribute mysql_auto_reconnect' issues. Regarding your proceeding, happy to work with you on PRs to improve the documentation on this. One problem though is with so many distributions, it is hard to be too specific. P.S. I'd forget about Drupal if I were you. Unless you want a registration website, etc. What would be more useful is a small auth plugin to read registered owners, users, vehicles, etc from a config file (Config::IniFiles format as per the rest of the system). That could then be used by those just wanting to run their own server just for their own cars. P.P.S. But bear in mind that this whole raw protocol / MP / v2 protocol thing is hopefully not too long for this world. MQTT make s much more sense in the modern world. |
Yes, I just copy pasted from the current documentation, and used
Sure, I get that. But maybe we could aim for at lest one copy paste documentation? :)
Yup, I realized that. That's why I invested like 20 hours in finding a good MQTT Broker last day. I plan on using the "dexter server", but will still do a write up on what you need to get it working. Maybe some graphical schematic on how everything works. Regarding this issue, feel free to close it. |
Running MariaDB instead of MySQL (on Alpine) results in this error when the server starts.
The line in question is this one:
Open-Vehicle-Server/v3/server/plugins/system/OVMS/Server/DbDBI.pm
Line 88 in aecc751
Maybe it would be possible to add an if statement, for running both MariaDB and MySQL? In MariaDB there is this: https://mariadb.com/kb/en/mariadb_reconnect/
The text was updated successfully, but these errors were encountered: