Forum LAMS Lounge Forum: sysadmin login problem


 
You may request notification for sysadmin login problem.
Search: 

1: sysadmin login problem
03/20/08 10:53 AM
[ Reply | Forward ]
New server instalations:
Linux version 2.6.18-5-686 (Debian 2.6.18.dfsg.1-13etch3)
mysqladmin 5.0.3
PHP 5
LAMS Version 2.1-RC1
jboss-4.0.2
Wildfire

and
lams.properties file
LAMS_PORT=8080
SERVER_URL=http://XXX.XXX.XXX.XXX:8080/lams/
JBOSS_DIR=/usr/local/jboss-4.0.2
JDK_DIR=/usr/lib/jvm/java-1.5.0-sun-1.5.0.10/
SQL_DIR=/usr/bin
SQL_HOST=localhost
SQL_URL=jdbc:mysql://${SQL_HOST}/${DB_NAME}?
characterEncoding=utf8&autoReconnect=true
DB_ROOT_PASSWORD=******

Browser login : Username: sysadmin, password: sysadmin

Sorry, that username or password is not known. Please try again.???????????

Posted by sener eski

2: Re: sysadmin login problem
In response to 1 03/21/08 10:04 PM
[ Reply | Forward ]
Hi Sener,

In the lams.properties file there's a section where you specify the sysadmin username and password for LAMS:

# Username and password for the system admin for LAMS
LAMS_USER=sysadmin
LAMS_PASS=sysadmin

(By default it's sysadmin as username and same for the password)

The lams.properties is in your /etc/lams/ directory. Check there to see what are the LAMS_USER and LAMS_PASS in the lams.properties.

Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: sysadmin login problem
In response to 2 03/24/08 01:41 AM
[ Reply | Forward ]
my /etc/lams2/lams.properties file is:

...
# here during run time
LAMS_DIR=/var/opt/lams

# Username and password for the system admin for LAMS
LAMS_USER=sysadmin
LAMS_PASS=sysadmin

# Default language locale and text direction for LAMS, see section 3 of the readme
LOCALE=en_AU
LOCALE_DIRECTION=LTR


# Database name, username and password for your LAMS database
DB_NAME=lams2
DB_USER=lamsuser
DB_PASS=lamsdemo
....

Posted by sener eski

4: Re: Re: Re: sysadmin login problem
In response to 3 03/24/08 05:55 PM
[ Reply | Forward ]
Hi,

You can try setting the password for sysadmin in the database:

At the command line, bring up your mysql client
shell> mysql lams2 -u lamsuser -plamsdemo

Then at the mysql prompt, execute this line of SQL:
mysql> update lams_user set password=sha1('newpassword') where login='sysadmin';

Then try to login using the login 'sysadmin' and your new password.

If that doesn't work, probably something else is wrong - would be helpful to look at the log files under /path/to/jboss-4.0.2/server/default/log/.

Thanks,

Posted by Jun-Dir Liew

5: Re: Re: Re: Re: sysadmin login problem
In response to 4 03/26/08 09:06 AM
[ Reply | Forward ]
I tried to update the password as you said. But it was impossible. So I'm sending the log file content.

This is my log file :

Can we find the error from the codes here.

Thanks in advance.


path/to/jboss-4.0.2/server/default/log/localhost_access_log.2008-03-26.log

XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams//www/news.html HTTP/1.1" 200 1817
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/ HTTP/1.1" 200 6721
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/css/defaultHTML.css HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/includes/javascript/flash_detect.js HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/includes/javascript/browser_detect.js HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/includes/javascript/sha1.js HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/diagonal_bg.gif HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/top_bg.jpg HTTP/1.1" 304 -
XXX.XXX.XXX.XXX- - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/body_bg.jpg HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/lams_login_bar.jpg HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/btn_off.gif HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams/images/css/footer_bg.jpg HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:38 +0200] "GET /lams//images/css/lams_login.gif HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:50 +0200] "GET /lams/images/css/btn_over.gif HTTP/1.1" 304 -
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:50 +0200] "GET /lams//www/news.html HTTP/1.1" 200 1817
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:50 +0200] "POST /lams/j_security_check HTTP/1.1" 200 6846
XXX.XXX.XXX.XXX - - [26/Mar/2008:16:36:50 +0200] "GET /lams/images/css/warning.gif HTTP/1.1" 304 -

Posted by sener eski

6: Re: Re: Re: Re: Re: sysadmin login problem
In response to 5 03/26/08 05:29 PM
[ Reply | Forward ]
This file doesn't say much other than that the login didn't work. If there's a problem, the lams.log and server.log files may have more information. They're in the same directory.

What was the problem with updating the password? If the problem is that the password was changed and you've forgotten it, you'll need to reset it, unless you have another user with the sysadmin role.

Posted by Jun-Dir Liew

7: Re: Re: Re: Re: Re: Re: sysadmin login problem
In response to 6 03/28/08 08:41 AM
[ Reply | Forward ]
username and password is true. no problem.
phpmyadmin : lams2 database, lams_user table first record is:
1 sysadmin a159b7ae81ba3552af61e9731b20870515944538 The System Administrator NULL........




my log files:

http://www.lamscommunity.org/dotlrn/file-storage/view/dotlrn_fs_577748_root_folder/logs.txt

problem is different.!!!

Posted by sener eski

8: Re: Re: Re: Re: Re: Re: Re: sysadmin login problem
In response to 7 03/28/08 08:59 PM
[ Reply | Forward ]
Could you please get the lams.log and server.log and zip them up and then attach them? That is, the full logs not just the part with the error.

The error in your logs.txt is being generated by the JBoss software, rather than LAMS itself, so I am hoping that something else further up in the logs will tell us what is configured wrong.

Fiona

Posted by Fiona Malikoff

9: Re: Re: Re: Re: Re: Re: Re: Re: sysadmin login problem
In response to 8 04/02/08 01:45 AM
[ Reply | Forward ]
10: Re: Re: Re: Re: Re: Re: Re: Re: Re: sysadmin login problem
In response to 9 04/14/08 04:12 PM
[ Reply | Forward ]
Thanks for the logs - I still can't work out what has gone wrong.

Could you try zipping up ALL the log files in <jboss>/server/default/log and send them to us? What I really need is the messages from when the server starts up, and they must be in an older log file.

Fiona

Posted by Fiona Malikoff

Reply to first post on this page
Back to LAMS Lounge Forum