2026/03/07
|
Saturday, March 7, 2026 (#66)
|
|
I found a simple logic error in EoS-detection vs. the "EoSWorks()" flag (I dislike the name, but it'll do for now) UseEoS() flag, and remote exports now seem to be working once again
Key takeaway: feof() only works on ssh2 streams if the remote command terminates properly. mysqldump, unfortunately, does not, so you have to look for zero-length results on reading.
14:27 fixing imports
The immediate problem (a minor one) with imports is that the EngScImport class doesn't call GoSetupUI(), which connects the Panel object from the app config with the code which needs it. This is easily fixed -- but it opens the question of whether this is the right way to accomplish that function.
16:49 fixing
I changed it so the Panel gets set up in the App object. Exports mostly working again...
...but now I notice that the export for cloud5, which is MySQL (not MariaDB), gets hung waiting for the schema list. May I say "argh", at this time.
17:10
cloud4 has the same problem, while hetz2 does not -- which seems to confirm the link: mysqldump has this issue, but mariadb-dump does not. I guess we just have to set the flag differently for MariaDB vs MySQL.
21:34
All exports seem to be working now. (I'm starting to lean towards the idea that every CLI command should have its own handler-class, specifying execution flags and known error messages, but I'm going to avoid going down that refactor-rabbit-hole until there's no avoiding it.)
Now, to resume fixing imports... starting with some relatively simple coding-errors...