Forum

Problem on updating...
 
Notifications
Retirer tout

Problem on updating Projeqtor (rollback needed)

17 Posts
3 Utilisateurs
0 Reactions
5,621 Vu
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 
[#7567]

Hello,

For some reason, we have a problem on our Projeqtor since 9.1.3
We have done absolutely nothing in changing anything file related, or something that would pose problem (in our eyes)
But when i tried to update to 9.1.4 (and today, to 9.1.5, because waiting for next update just in case can help), i get the login screen after update like usual, but when i lo with my administrator account to initialise and open the app, i get this:

 

Do you have any idea what could cause this ?

Are there specific logs we should look into ?

Thank you


 
Posté : 04/06/2021 11:08 am
(@babynus)
Posts: 14952
Membre Admin
 

Please look at the error log.
You'll have explanation (possibly an access right error)
If you don't understand the error, post it here.


 
Posté : 04/06/2021 4:46 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

I don't quite understand where exactly is the specific log needed on the apache server, but this is what I found for June 4th when i updated it

 

If this is not this one, which one should it be ?

Thank you


 
Posté : 07/06/2021 11:48 am
(@babynus)
Posts: 14952
Membre Admin
 

Error will be in projeqtor log file.
Defaut location is in projeqtor/file/logs


 
Posté : 12/06/2021 7:34 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

Thank you,

After finding it and doing a test on another Vm we made just for this, which was in 8.3.3

I updated it to 9.0.6 without any problem
Then, when i tried to update to 9.1.5, i encountered the same problem i talked about above

I then made sure it was this log by trying to connect and looking at the modification date

 

Thank you


 
Posté : 14/06/2021 11:43 am
(@babynus)
Posts: 14952
Membre Admin
 

You log file show migration from V8.3.4 to V9.0.6, which ran without issue.
The you have error 

2021-06-14 09:32:15.642 ** ERROR ** [V9.0.6] cause = ldap_connect(): Could not create session handle: Bad parameter to an ldap routine

It seems your PHP does not undestand new URI format for LDAP connection.
Which version of PHP are you using ?

NB : to fix the issue, just change 1356 in projeqtor/model/UserMain.php from

              if (1) { // New signature

to

              if (0) { // New signature

We searched for compatibility of new signature depending on PHP version but did not find the information.
Please tell us which version of PHP you are using so that we may improve the code.


 
Posté : 15/06/2021 1:29 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

Thank you, it worked

Apparently, this line is added after applying the update (from 9.1.4 i suppose) so we need to change it after we get blocked in trying to connect again after

Changing it worked as advertised

The PHP version we use is 7.0.30
 


 
Posté : 28/06/2021 12:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

In V9.2.1 you'll be able to add parameter in your prameters.php file

$ldapFormatUri=false;

so that LDAP will work fine for you whatever the migration.


 
Posté : 28/06/2021 5:30 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

A new problem occured but this time, from 9.1.5 to 9.2.2

 

We have looked into what we did the last time, but the error seems different.µ

Could you look into this please ?


 
Posté : 02/09/2021 1:46 pm
(@babynus)
Posts: 14952
Membre Admin
 

LDAP password is encrypted on V9.2, so migration requires a connection with non-ldap admin user.


 
Posté : 07/09/2021 1:03 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

Hello again and thanks for the reply
It worked after logging with Admin

After opening the application back to other users, i tried to log back with my account, but encountered an error.

It may be due to the parameter for parameters.php posted above not having been done, but i'm not sure yet.
I will look into it, but can you tell me regardless if you have an idea ?

Thank you


 
Posté : 07/09/2021 1:53 pm
(@babynus)
Posts: 14952
Membre Admin
 

Reconnext as Admin and update LDAP password in global parameters.


 
Posté : 07/09/2021 4:22 pm
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

There was no change on our side.

we rewrote the password on top on the old in authentification in Global Parameters, but the result stay the same


 
Posté : 08/09/2021 5:37 pm
(@bvd)
Posts: 124
Estimable Member
 

Hi,

You have to write the line in parameters.php with single quote, like this :

$ldapFormatUri='false';

Writing line without single quotes simply won't work.

Regards,
 


 
Posté : 13/09/2021 2:44 am
(@cpt_jabberwock)
Posts: 56
Trusted Member
Début du sujet
 

Hello again,

So, i opened Parameter.php and i have thousands of lines to sift thru to know where to put $ldapFormatUri='false';
Could you pinpoint me what section is should look for ?

Thank you


 
Posté : 04/10/2021 4:12 pm
Page 1 / 2
Share:
Retour en haut