TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Upgrade Step4 "An error appears when inserting datas!"

Open alarido opened this issue 14 years ago • 12 comments

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

alarido avatar Oct 23 '12 12:10 alarido

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.

dunderjester avatar Oct 23 '12 15:10 dunderjester

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)?

nilsteampassnet avatar Oct 23 '12 20:10 nilsteampassnet

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.

alarido avatar Oct 24 '12 06:10 alarido

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)

dunderjester avatar Oct 24 '12 07:10 dunderjester

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.

SpikeStephens avatar Oct 24 '12 23:10 SpikeStephens

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!

dunderjester avatar Oct 25 '12 17:10 dunderjester

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.

alarido avatar Oct 26 '12 06:10 alarido

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.

jekader avatar Nov 12 '12 16:11 jekader

Same error I reported as issue 200, will try the fix provided here and then close if it work.

ahoset avatar Nov 14 '12 11:11 ahoset

Have had the same problem. Been able to solve it by:

  1. Made sure I have no php session laying around with stale data;
  2. 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.
  3. Started up upgrade process using upgrade.php once again and now had been able to successfully finish it.

lexa2 avatar Nov 30 '12 08:11 lexa2

Same issue here: https://github.com/nilsteampassnet/TeamPass/issues/228 Single quotes added twice to SQL query…

benjaminbellamy avatar Jan 14 '13 11:01 benjaminbellamy

I just came across this same issue going from 2.1.9 to 2.1.15

hexxamillion avatar Feb 22 '13 22:02 hexxamillion