OTRS login not working after installation
Moderator: crythias
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
OTRS login not working after installation
I have installed OTRS on my ubuntu 12.10 server and it doesn't allow me to login. I am getting following error in error log:
The error
> Message: No UserID found for 'root@localhost'!
mysql> select * from users; Empty set (0.00 sec) mysql>
No users in table.
Detailed error log at http://198.27.105.229/log.txt
How can I fix this error ?
If you want me to edit 'customer_user' table, let me know how to do it ?
Thanks for looking into this.
The error
> Message: No UserID found for 'root@localhost'!
mysql> select * from users; Empty set (0.00 sec) mysql>
No users in table.
Detailed error log at http://198.27.105.229/log.txt
How can I fix this error ?
If you want me to edit 'customer_user' table, let me know how to do it ?
Thanks for looking into this.
Re: OTRS login not working after installation
Hi,
is it a fresh installation? You inserted the initial insert sql scripts?
Flo
is it a fresh installation? You inserted the initial insert sql scripts?
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Yes, its a fresh installation.
I've followed the instructions from tutorial and done it.
I've followed the instructions from tutorial and done it.
-
- Znuny wizard
- Posts: 392
- Joined: 30 Dec 2010, 14:35
- Znuny Version: 6.0.x and 5.0.x
- Real Name: Giulio Soleni
- Company: IKS srl
Re: OTRS login not working after installation
...wait... 1 step back.
Did you succesfully complete the post installation configuration?
http://your.otrs.system/otrs/installer.pl
In case I think you may try to
1. provisionally disable secure mode (in Config.pm)
$Self->{SecureMode} = '0';
2. clean up otrs db... if you have MYSQL for example:
# MYSQL="mysql -h localhost -u root -pmysqlrootpwd -D otrs"
# $MYSQL -BNe "show tables" | awk '{print "set foreign_key_checks=0; drop table `" $1 "`;"}' | $MYSQL
# unset MYSQL
3. start the web post-installation procedure http://your.otrs.system/otrs/installer.pl from scratch.
4. check to see if SecureMode has been re-enabled (I dunno remember :p) otherwise set it to enabled (via SysConfig also ... in Framework -> Core)
Did you succesfully complete the post installation configuration?
http://your.otrs.system/otrs/installer.pl
In case I think you may try to
1. provisionally disable secure mode (in Config.pm)
$Self->{SecureMode} = '0';
2. clean up otrs db... if you have MYSQL for example:
# MYSQL="mysql -h localhost -u root -pmysqlrootpwd -D otrs"
# $MYSQL -BNe "show tables" | awk '{print "set foreign_key_checks=0; drop table `" $1 "`;"}' | $MYSQL
# unset MYSQL
3. start the web post-installation procedure http://your.otrs.system/otrs/installer.pl from scratch.
4. check to see if SecureMode has been re-enabled (I dunno remember :p) otherwise set it to enabled (via SysConfig also ... in Framework -> Core)
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
ITSM and FAQ modules installed.
Re: OTRS login not working after installation
Hi,
it seems that your OTRS Database contains no info. installer.pl is a good idea!
Flo
it seems that your OTRS Database contains no info. installer.pl is a good idea!

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Giulio Soleni, Thanks for your update.
I tried the steps you mentionedm but I am still getting login error.
In your Step 1 you told, '$Self->{SecureMode} = '0';' not found in Config.pm file, I added that line into the file and then cleaned the mysql db and used the installer.pl file and installed again. Those steps were successfully completed and I got the username password in last page. But still it doesn't allow me to login.
I tried the steps you mentionedm but I am still getting login error.
In your Step 1 you told, '$Self->{SecureMode} = '0';' not found in Config.pm file, I added that line into the file and then cleaned the mysql db and used the installer.pl file and installed again. Those steps were successfully completed and I got the username password in last page. But still it doesn't allow me to login.
Giulio Soleni wrote:...wait... 1 step back.
Did you succesfully complete the post installation configuration?
http://your.otrs.system/otrs/installer.pl
In case I think you may try to
1. provisionally disable secure mode (in Config.pm)
$Self->{SecureMode} = '0';
2. clean up otrs db... if you have MYSQL for example:
# MYSQL="mysql -h localhost -u root -pmysqlrootpwd -D otrs"
# $MYSQL -BNe "show tables" | awk '{print "set foreign_key_checks=0; drop table `" $1 "`;"}' | $MYSQL
# unset MYSQL
3. start the web post-installation procedure http://your.otrs.system/otrs/installer.pl from scratch.
4. check to see if SecureMode has been re-enabled (I dunno remember :p) otherwise set it to enabled (via SysConfig also ... in Framework -> Core)
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: OTRS login not working after installation
The same error now? Still No user ID found?
Can you look into the DB again (after you successfully ran the installer.pl) and verify if it's still empty?
Can you look into the DB again (after you successfully ran the installer.pl) and verify if it's still empty?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
In otrs db, 91 tables found total.
The table 'customer_user' shows as:
mysql> SELECT * FROM customer_user;
Empty set (0.00 sec)
mysql>
Do you want me to check any other table ?
The table 'customer_user' shows as:
mysql> SELECT * FROM customer_user;
Empty set (0.00 sec)
mysql>
Do you want me to check any other table ?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS login not working after installation
Did you finish running installer.pl? That sets up the root user.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Yes, finised the installation steps and finally I got the login url, username and password. Please see the screenshot of the final page at 

-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: OTRS login not working after installation
Oh, you are checking the table customer_user!
That is a different table than the one where root is created.
check in the table "users"
Also, which URL are you calling? .../customer.pl ?
Make sure you use the index.pl
That is a different table than the one where root is created.
check in the table "users"
Also, which URL are you calling? .../customer.pl ?
Make sure you use the index.pl
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Here is the output of 'users' table:
mysql> SELECT * FROM users;
Empty set (0.01 sec)
mysql>
I am using index.tpl only for login.
mysql> SELECT * FROM users;
Empty set (0.01 sec)
mysql>
I am using index.tpl only for login.
Re: OTRS login not working after installation
you should have a error in the installer or if you are installing manually you left out a part
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
I've reattempted the installation again today.
All steps were successful and I thoroughly watched it. Got the login url, username and password in the installation final page. But login landed with error
Don't know whats wrong.
All steps were successful and I thoroughly watched it. Got the login url, username and password in the installation final page. But login landed with error

Don't know whats wrong.
-
- Znuny wizard
- Posts: 392
- Joined: 30 Dec 2010, 14:35
- Znuny Version: 6.0.x and 5.0.x
- Real Name: Giulio Soleni
- Company: IKS srl
Re: OTRS login not working after installation
Please stop everything, restart, try to login again with root@localhost then please post the information you see in the logs (otrs, apache, mysql logs)
To have a clean stop and start, please run the following:
login to your system as root...
service otrs stop
/opt/otrs/bin/otrs.Scheduler.pl -a stop --force
/etc/init.d/cron stop
service apache2 stop
su - otrs (you might have to provisionally change the login permissions of otrs user in /etc/passwd)
/opt/otrs/bin/otrs.RebuildConfig.pl
/opt/otrs/bin/otrs.LoaderCache.pl -o delete
/opt/otrs/bin/otrs.DeleteCache.pl
/opt/otrs/bin/otrs.DeleteSessionIDs.pl --all
exit (...back to root)
service apache2 start
/etc/init.d/cron start
service otrs start
To have a clean stop and start, please run the following:
login to your system as root...
service otrs stop
/opt/otrs/bin/otrs.Scheduler.pl -a stop --force
/etc/init.d/cron stop
service apache2 stop
su - otrs (you might have to provisionally change the login permissions of otrs user in /etc/passwd)
/opt/otrs/bin/otrs.RebuildConfig.pl
/opt/otrs/bin/otrs.LoaderCache.pl -o delete
/opt/otrs/bin/otrs.DeleteCache.pl
/opt/otrs/bin/otrs.DeleteSessionIDs.pl --all
exit (...back to root)
service apache2 start
/etc/init.d/cron start
service otrs start
OTRS 6.0.x on CentOS 7.x with MariaDB 10.2.x database connected to an Active Directory for Agents and Customers.
ITSM and FAQ modules installed.
ITSM and FAQ modules installed.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
When I run the command, it says:
root@cloud1:~# service otrs stop
otrs: unrecognized service
root@cloud1:~#
root@cloud1:~# service otrs stop
otrs: unrecognized service
root@cloud1:~#
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Hi Jojo, actually I skipped the email configuration part (plz see the below image) in that installation process. Other steps were successful.jojo wrote:you should have a error in the installer or if you are installing manually you left out a part

Last edited by vineeshmohan on 17 Jun 2014, 07:27, edited 1 time in total.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Can anyone try the install ? This is a test VPS, so it won't be a problem.
http://198.27.105.229/otrs/installer.pl
MySQL User: root
Password: 123456
I tried to install again, with a new database name. Everything is completed with out errors, still user not found.
http://198.27.105.229/otrs/installer.pl
MySQL User: root
Password: 123456
I tried to install again, with a new database name. Everything is completed with out errors, still user not found.
Re: OTRS login not working after installation
Hi,
now in english. installer runs successfully. I created a database otrs2 but no login possible.
strange
Without shell access, no chance.
installer läuft erfolgreich (Datenbank hab' ich mal otrs2 genannt) aber login nicht möglich.
Das is ja doof
aber ohne shell zugriff - keine Chance.
Flo
now in english. installer runs successfully. I created a database otrs2 but no login possible.
strange
Without shell access, no chance.
installer läuft erfolgreich (Datenbank hab' ich mal otrs2 genannt) aber login nicht möglich.
Das is ja doof

aber ohne shell zugriff - keine Chance.
Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: OTRS login not working after installation
Same here, cannot login.
Could you post your Config.pm please (esp. the part about the database connection)?
And black out your password
Could you post your Config.pm please (esp. the part about the database connection)?
And black out your password

Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
Config.pm uploaded to below url. Please check it.RStraub wrote:Same here, cannot login.
Could you post your Config.pm please (esp. the part about the database connection)?
And black out your password
http://198.27.105.229/Config.pm.txt
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: OTRS login not working after installation
otrs3 is the user and db that I created (pw is 123456).
The Config.pm doesn't seem to be misconfigured. I'm sorry but debugging will become really hard without mysql access.
The Config.pm doesn't seem to be misconfigured. I'm sorry but debugging will become really hard without mysql access.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Re: OTRS login not working after installation
Hi,
can you insert the database .sql scripts manually?
it is described in /opt/otrs/README.database
Florian
can you insert the database .sql scripts manually?
it is described in /opt/otrs/README.database
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
I've removed these user accounts now and re-attempted. But again error.RStraub wrote:otrs3 is the user and db that I created (pw is 123456).
The Config.pm doesn't seem to be misconfigured. I'm sorry but debugging will become really hard without mysql access.
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
I've followed the instructions in /opt/otrs/README.database file. Run below commands by login as mysql root user:wurzel wrote:Hi,
can you insert the database .sql scripts manually?
it is described in /opt/otrs/README.database
Florian
Code: Select all
mysql> mysql -u root -p -e 'create database otrs charset utf8'
-> mysql -u root -p otrs < scripts/database/otrs-schema.mysql.sql
-> mysql -u root -p otrs < scripts/database/otrs-initial_insert.mysql.sql
-> mysql -u root -p otrs < scripts/database/otrs-schema-post.mysql.sql
-> mysql -u root -p -e 'GRANT ALL PRIVILEGES ON otrs.* TO otrs@localhost IDENTIFIED BY "MY-NEW-PASSWORD-HERE" WITH GRANT OPTION;'
-> mysql -u root -p -e 'FLUSH PRIVILEGES;'
->
Now I am getting below error when going to the login page.

Later I changed back my MySQL root password to old one I was using.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: OTRS login not working after installation
This means the otrs database Creds are invalid for MySQL connection.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 14
- Joined: 10 Jun 2014, 13:07
- Znuny Version: 3.3.7
- Real Name: Vineesh Mohan
- Company: HOSTONNET
Re: OTRS login not working after installation
What is your advice in this case ?crythias wrote:This means the otrs database Creds are invalid for MySQL connection.
Re: OTRS login not working after installation
Hi,
take the error message and google for it
http://dev.mysql.com/doc/refman/5.1/de/ ... enied.html
Good luck
Florian
take the error message and google for it

http://dev.mysql.com/doc/refman/5.1/de/ ... enied.html
Good luck

Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12
-- Ich beantworte keine Forums-Fragen PN - No PN please
I won't answer to unfriendly users any more. A greeting and regards are just polite.