Forum Problems Installing LAMS: error can't read mysql-ds.xml when installing in ubuntu server


 
You may request notification for error can't read mysql-ds.xml when installing in ubuntu server.
Search: 

1: error can't read mysql-ds.xml when installing in ubuntu server
10/01/13 05:48 AM
[ Reply | Forward ]
Dear all,
Please help me with this error that appears when i m trying to install lams 2.4 in ubuntu server 12.04.

The following message appears in ssh client screen:

"Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  lams2
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 0 B/60.0 MB of archives.
After this operation, 91.7 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  lams2
Preconfiguring packages ...
Selecting previously unselected package lams2.
(Reading database ...
dpkg: warning: files list file for package `lams-jboss4' missing, assuming pa
ge has no files currently installed.
(Reading database ... 74267 files and directories currently installed.)
Unpacking lams2 (from .../archives/lams2_2.4.0-1_all.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up lams2 (2.4.0-1) ...
sed: can't read mysql-ds.xml: No such file or directory
dpkg: error processing lams2 (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
lams2
E: Sub-process /usr/bin/dpkg returned an error code (1)"

What does this mean?
"sed: can't read mysql-ds.xml: No such file or directory"

Thank you very much

Posted by Panagiotis Karageorgos

2: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 1 10/03/13 04:05 PM
[ Reply | Forward ]
HI Panagiotis

Sorry for the delay in getting back to you.

We've been having the 2013 LAMS Conference in Singapore this week and things have been rather busy.


"sed: can't read mysql-ds.xml: No such file or directory"

It seems that the LAMS installer is trying to find a file mysql-ds.xml to configure the database settings but it's not where it suppose to be.

However, I'm trying to replicate this issue without success.

For the text you posted, I can assume that you tried to installed LAMS before and then you manually might have manipulated/deleted files on the /usr/share/jboss-5.1/ folder?

What you can try is to remove the lams-jboss4 first:

# apt-get remove lams-jboss4


and then install lams again:

# apt-get install lams2


Thanks,

Ernie

Posted by Ernie Ghiglione

3: Re: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 2 10/03/13 04:07 PM
[ Reply | Forward ]

and then install lams again:

# apt-get remove lams2

Sorry, this was meant to read:

# apt-get install lams2

Thanks,

Ernie

Posted by Ernie Ghiglione

6: Re: Re: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 3 10/06/13 08:35 AM
[ Reply | Forward ]
Hi Ernie,
I finally managed to make it up and running.
I found that the problem was that user root didnt exist in mysql (?) so i had to create it, and installation comleted succesfully(!)
Also the integration with my moodle seems fine !

Thanks again

Posted by Panagiotis Karageorgos

7: Re: Re: Re: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 6 10/06/13 08:46 AM
[ Reply | Forward ]
Also i had to change the default port from 8080 to 8090. No problem so far...

Posted by Panagiotis Karageorgos

8: Re: Re: Re: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 6 10/09/13 07:53 AM
[ Reply | Forward ]
> I found that the problem was that user root didnt exist in mysql (?)

Woow. Never thought that was possible! :-)

Glad you figured this out.

Thanks

Ernie

Posted by Ernie Ghiglione

4: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 1 10/05/13 02:48 AM
[ Reply | Forward ]
Hi Ernie
Glad you can help me this situation.
I followed your guidelines and finally i can see some progress ...
You were right about previous installations of jboss, so used " sudo apt-get autoremove" command and as i can understand all previous installations and packages removed without any problem so far.
I think that jboss is ok but lams as i can see is not totally setup. During the installation i got the following messages:

"update-alternatives: using /usr/lib/jvm/java-6-openjdk-i386/bin/xjc to provide /
usr/bin/xjc (xjc) in auto mode.
Setting up lams-jboss4 (5.1-1) ...
Setting up lams2 (2.4.0-1) ...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y
ES)
Adding system user `lams' (UID 108) ...
Adding new group `lams' (GID 111) ...
Adding new user `lams' (UID 108) with group `lams' ...
Not creating home directory `/home/lams'.
* Starting LAMS 2 Server lams2                                          [ OK ]
Setting up openjdk-6-jre-lib (6b27-1.12.6-1ubuntu0.12.04.2) ...
Setting up libatk-wrapper-java-jni (0.30.4-0ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
root@b-epipedo:/#"

May be the user is not "root@localhost" as the installation is claiming but "root@b-epipedo" ?

and in my address http://b-epipedo.mylesson.info:8080/lams  i get the error :
<<
HTTP Status 404 - /lams

type Status report

message /lams

description The requested resource (/lams) is not available.

JBoss Web/2.1.3.GA
>>

Because lams folder is not created ..

Thank you once more for help,
Best regards Panagiotis

Posted by Panagiotis Karageorgos

5: Re: Re: error can't read mysql-ds.xml when installing in ubuntu server
In response to 4 10/05/13 05:59 AM
[ Reply | Forward ]
Sorry i have to add something, I m sure that mysql is up and running,
Thanks

Posted by Panagiotis Karageorgos

Reply to first post on this page
Back to Problems Installing LAMS