Upgrade Step4 "An error appears when inserting datas!"
When I try to upgrade from 2.1.9 to 2.1.12 I get the following error in step4:
An error appears when inserting datas! in Misc table will be populated with new values
Same thing here. Lso, when running upgrade_db_1.08.php directly I get:
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
although teampass is configured to connect to a remote MySQL host.
I've done several tries and couldn't reproduce.
Can you tell me if your table "Misc" you can found entry "email_smtp_server" for example (which is a new entry since 2.1.9)?
No, it's not:
mysql> select * from teampass_misc where intitule = "email_smtp_server"; Empty set (0.00 sec)
mysql>
Unfortunately I don't have any more detailed or meaningfull error to help solving this.
Well to me there is the default one.
mysql> select * from teampass_misc where intitule="email_smtp_server"; +-------+-------------------+--------------------+ | type | intitule | valeur | +-------+-------------------+--------------------+ | admin | email_smtp_server | smtp.my_domain.com | +-------+-------------------+--------------------+ 1 row in set (0.00 sec)
I had the same problem when going from 2.1.8 to 2.1.12, so I tried going one step at a time. I got from 2.1.9 successfully, but 2.1.9 to 2.1.10 gives me the error.
I did not have an entry for 'email_smtp_server' in the misc table.
I logged in and saved the default settings for smtp in the settings page, and the upgrade to 2.1.10 worked. After that, I successfully upgraded to 2.1.12.
That seems to solve it for me! I did exactly that before my first post but hadn't tried to rerun the upgrade. I now tried again and it worked just fine.
Thanks Brad!
That solved the problem for me too.
In 2.1.9, copy 2.1.12 files, logon before running upgrade.php, save email settings, run upgrade.php with success.
Also got hit by this today during 2.1.9 -> 2.1.12 upgrade. Good thing I started with a test server :)
Is some "official" fix planned for this? I think many people will be affected: there were no announcements about 2.1.10 or 2.1.11 releases, so the majority will upgrade directly from 2.1.9 to the newest version.
Same error I reported as issue 200, will try the fix provided here and then close if it work.
Have had the same problem. Been able to solve it by:
- Made sure I have no php session laying around with stale data;
- Went into teampass installation folder, opened up includes/settings.php for editing, set smtp_auth to false, smtp_auth_username, smtp_auth_password, email_from and email_from_name to be empty strings.
- Started up upgrade process using upgrade.php once again and now had been able to successfully finish it.
Same issue here: https://github.com/nilsteampassnet/TeamPass/issues/228 Single quotes added twice to SQL query…
I just came across this same issue going from 2.1.9 to 2.1.15