[SOLVED]Error with otrs.SetPassword.pl
Moderator: crythias
-
- Znuny newbie
- Posts: 14
- Joined: 12 May 2015, 08:52
- Znuny Version: OTRS 4.1
- Real Name: Simone Mura
- Company: Universidade Catolica de Moçambique
[SOLVED]Error with otrs.SetPassword.pl
Hi,
after the installation i've problems with the first login.
Otrs version is 4.1
SO ubuntu 12.04
perl 5.14.2
Mysql 5.5.43
I tried to do reset root's password with :
/opt/otrs/bin/otrs.SetPassword.pl root@localhost NewPassword123
what happens:
ERROR: OTRS-otrs.SetPassword.pl-36 Perl: 5.14.2 OS: linux Time: Wed May 13 15:20:04 2015
Message: No Valid for valid found!
Traceback (2640):
Module: Kernel::System::Valid::ValidLookup Line: 146
Module: Kernel::System::Valid::ValidIDsGet Line: 167
Module: Kernel::System::User::UserSearch Line: 655
Module: /opt/otrs/bin/otrs.SetPassword.pl Line: 71
[Wed May 13 15:20:04 2015] otrs.SetPassword.pl: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2 at /opt/otrs/Kernel/System/DB.pm line 574.
ERROR: OTRS-otrs.SetPassword.pl-36 Perl: 5.14.2 OS: linux Time: Wed May 13 15:20:04 2015
Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2, SQL: 'SELECT id, login
FROM users WHERE (login) LIKE ? AND valid_id IN ()'
Traceback (2640):
Module: Kernel::System::User::UserSearch Line: 660
Module: /opt/otrs/bin/otrs.SetPassword.pl Line: 71
No user found with login 'root@localhost'!
thanks,
Simone
after the installation i've problems with the first login.
Otrs version is 4.1
SO ubuntu 12.04
perl 5.14.2
Mysql 5.5.43
I tried to do reset root's password with :
/opt/otrs/bin/otrs.SetPassword.pl root@localhost NewPassword123
what happens:
ERROR: OTRS-otrs.SetPassword.pl-36 Perl: 5.14.2 OS: linux Time: Wed May 13 15:20:04 2015
Message: No Valid for valid found!
Traceback (2640):
Module: Kernel::System::Valid::ValidLookup Line: 146
Module: Kernel::System::Valid::ValidIDsGet Line: 167
Module: Kernel::System::User::UserSearch Line: 655
Module: /opt/otrs/bin/otrs.SetPassword.pl Line: 71
[Wed May 13 15:20:04 2015] otrs.SetPassword.pl: DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2 at /opt/otrs/Kernel/System/DB.pm line 574.
ERROR: OTRS-otrs.SetPassword.pl-36 Perl: 5.14.2 OS: linux Time: Wed May 13 15:20:04 2015
Message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2, SQL: 'SELECT id, login
FROM users WHERE (login) LIKE ? AND valid_id IN ()'
Traceback (2640):
Module: Kernel::System::User::UserSearch Line: 660
Module: /opt/otrs/bin/otrs.SetPassword.pl Line: 71
No user found with login 'root@localhost'!
thanks,
Simone
Last edited by simoneVr on 15 May 2015, 10:54, edited 2 times in total.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Error with otrs.SetPassword.pl
can't set password on user that doesn't exist/is invalid.
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: 12 May 2015, 08:52
- Znuny Version: OTRS 4.1
- Real Name: Simone Mura
- Company: Universidade Catolica de Moçambique
Re: Error with otrs.SetPassword.pl
User is root@localhos and it exists in the table 'users',
how test is it valid?
how test is it valid?
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Error with otrs.SetPassword.pl
Code: Select all
SELECT login,valid_id FROM users WHERE login='root@localhost';
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: 12 May 2015, 08:52
- Znuny Version: OTRS 4.1
- Real Name: Simone Mura
- Company: Universidade Catolica de Moçambique
Re: Error with otrs.SetPassword.pl
Result :
login: root@localhost
valid_id: 1
My software version
perl : 5.14.2
mysql : 5.5.43
OS: ubuntu0.12.04.1
login: root@localhost
valid_id: 1
My software version
perl : 5.14.2
mysql : 5.5.43
OS: ubuntu0.12.04.1
Re: Error with otrs.SetPassword.pl
please update to latest patchlevel of OTRS (4.0.

"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: 12 May 2015, 08:52
- Znuny Version: OTRS 4.1
- Real Name: Simone Mura
- Company: Universidade Catolica de Moçambique
Re: Error with otrs.SetPassword.pl
Thanks very much !! 
Now it's work

Now it's work

-
- Znuny newbie
- Posts: 14
- Joined: 12 May 2015, 08:52
- Znuny Version: OTRS 4.1
- Real Name: Simone Mura
- Company: Universidade Catolica de Moçambique
Re: [SOLVED]Error with otrs.SetPassword.pl
The solution is the installation of patch level 8