Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Projeqtor ...
 
Notifications
Clear all

[SOLVED] Projeqtor 9.0.4 with php-fpm and nginx issue with postgresql 13.1 on cent os 7

7 Posts
2 Users
0 Reactions
5,982 Views
(@divyesh)
Posts: 30
Active Member
Topic starter
 
[#7333]

We are getting login issues from projeqtor.
Log file entries shows trail lines. Please help to resolve the same.

2021-02-23 11:08:22.341 ** ERROR ** [V9.0.4] Exception-[22021] SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xaa
2021-02-23 11:08:22.341 ** ERROR ** [V9.0.4]    For query : select * from resource where resource.name='I,ªê  ' and resource.isUser = '1'
2021-02-23 11:08:22.341 ** ERROR ** [V9.0.4]    Strack trace :
2021-02-23 11:08:22.342 ** ERROR ** [V9.0.4]    #0 Sql->query called at [/var/www/html/projeqtor/model/persistence/SqlElement.php:2680]
2021-02-23 11:08:22.342 ** ERROR ** [V9.0.4]    #1 SqlElement->getSqlElementsFromCriteria called at [/var/www/html/projeqtor/tool/loginCheck.php:67]
2021-02-23 11:08:22.342 ===== TRACE ===== Login error for user 'I,ªê'
2021-02-23 11:08:32.609 ** ERROR ** [V9.0.4] Exception-[22021] SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xeb 0x0a 0x07
2021-02-23 11:08:32.610 ** ERROR ** [V9.0.4]    For query : select * from resource where resource.name='në

 


 
Posted : 23 Feb 2021 9H15
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

You've got encoding issue.
This often happens after backup / restore, if you don't use correct encoding on both sides.

It may be due to non utf-8 setup of your stack


 
Posted : 23 Feb 2021 11H51
(@divyesh)
Posts: 30
Active Member
Topic starter
 

Both database and php-fpm we have configured utf-8.
I am trying to connect to existing database.


 
Posted : 23 Feb 2021 13H17
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Issue is clear : user name tested over DB contains non utf-8 characters.

021-02-23 11:08:22.341 ** ERROR ** [V9.0.4] Exception-[22021] SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xaa

 
Posted : 23 Feb 2021 14H12
(@divyesh)
Posts: 30
Active Member
Topic starter
 

I am not able to connect with admin user or any other user.
Please guide how to resolve the issue.


 
Posted : 23 Feb 2021 14H29
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Please explain clearly and completly what you did.

Fresh install ?
Migration of existing DB ?
Migration PHP server ?
 


 
Posted : 23 Feb 2021 14H32
(@divyesh)
Posts: 30
Active Member
Topic starter
 

It was fresh install and configuration on Nginx server.
Postgres 13.1 Database was already there on same server.
Php-fpm was also configured earlier for same server for Apache.
Somehow the issue was not character set but missing permission on /var/lib/php/session
I have provided 777 permission and then login was successful for all users.


 
Posted : 25 Feb 2021 9H50
Share:

Scroll to Top