View previous topic :: View next topic |
Author |
Message |
jggpc
Joined: 22 Apr 2010 Posts: 9
|
Posted: Mon Apr 26, 2010 12:02 Post subject: Pre-existing client addition to server |
|
|
We are rolling a custom Ubuntu 9.10 installation. I am interested to know if I can add an existing client to the server's management interface without having to build it through M23. |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Mon Apr 26, 2010 12:23 Post subject: |
|
|
That is possible. In the web interface you can find the integration function under "Clients" -> "Assimilate". With it you can integrate existing Debian and Ubuntu clieants and manage them afterwards with m23. _________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
jggpc
Joined: 22 Apr 2010 Posts: 9
|
Posted: Mon Apr 26, 2010 14:42 Post subject: |
|
|
Yes, I assimilated the existing client into the server console. Now i have an issue when clicking on the edit client icon under the control-panel for that client. I get the following error.
Warning: include_once(/m23/inc/distr//packages.php) [function.include-once]: failed to open stream: No such file or directory in /m23/inc/client.php on line 2774
Warning: include_once() [function.include]: Failed opening '/m23/inc/distr//packages.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /m23/inc/client.php on line 2774
Fatal error: Call to undefined function PKG_getKernels() in /m23/inc/client.php on line 2775
I created a new update repository named Karmic for this instance to update off of and deleted the ones that were no longer needed for this test.
edit: Looking at it further, I also see the same error when I attempt to edit the actual server that the software resides on. I see the issue is that it is not picking up on the variable for the Distro type, and thus the edit attempt fails.
Is there a client side agent supposed to be running? I see several things that point bck that the server is not getting client side info, including the server not having any hardware information. |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Wed Apr 28, 2010 11:01 Post subject: |
|
|
jggpc wrote: | Is there a client side agent supposed to be running? |
A running SSH server and some basic tools are required, as described in the help text that you can find at the bottom of the assimilation page.
By the way: There is a help text on every m23 page in the webinterface that describes what you can do with it and gives hints.
jggpc wrote: | I see several things that point bck that the server is not getting client side info, including the server not having any hardware information. |
This will be probably the problem.
Prepare the client as requited and try the integration again.
You can try the "manual installation" (as described in the help text) too, if nothing works. Please post all occurring error messages, if there are issues with the manual integration. _________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
jggpc
Joined: 22 Apr 2010 Posts: 9
|
Posted: Wed Apr 28, 2010 17:20 Post subject: |
|
|
The client is prepared according to the Hint at the bottom of the assimilation page and the client section of the documentation. The problem is in the server php logic not being functional.
Warning: include_once(/m23/inc/distr//packages.php) [function.include-once]: failed to open stream: No such file or directory in /m23/inc/client.php on line 2774
The problem is where I italic and underlines. Looking at the line in the /m23/inc/client.php script, there is some basic variable logic in there I would image attempting to guess the distro type and version. As you can see by the error it shows an error at "/m23/inc/distr//packages.php", it is failing because it is not correctly drilling into the required directory to grab the packages.php file for that particular version. I tested this by // out the line and inputting a hard coded line of /m23/inc/distr/ubuntu/packages.php, and it allowed me to get into the editing screen. This worked although I get several errors from php scripting because I forced it and I was expecting them.
However, it seems that this is not the only php script that attempts to guess the distro version and thus they fail. anything in the control center that relies on server side 'guessing' of the client distro fails. Examples are:
Install packages
Deinstall packages
Update Client
Package Information
I do get partial hardware information, but this is controlled by the partm23 file on the client machine and I would image is sent to the server upon request.
I have all the required items installed to allow communications to the server, even running the manual assimilation correctly. I can see the files that the manual method drops in /tmp |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Fri Apr 30, 2010 6:21 Post subject: |
|
|
It seems that the distribution was not detected and so the distribution specific scripts could not included. If it worked e.g /m23/inc/distr/ubuntu/packages.php would be included.
Are the other hardware settings transferred to the m23 server and visible in the webinterface?
Did you try the manual integration?
If so: What is the result? Are there error messages in the client's console?
What is written to the file /tmp/clientSettings.post, when you execute the following on the client?
Code: | if test `ls /etc/debian_version | wc -l` -gt 0
then
if test -f /etc/lsb-release
then
awk -v ORS='' '/DISTRIB_ID=Ubuntu/ {print("&distr=ubuntu")}' /etc/lsb-release >> /tmp/clientSettings.post
else
echo -n "&distr=debian" >> /tmp/clientSettings.post
fi
fi |
_________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
jggpc
Joined: 22 Apr 2010 Posts: 9
|
Posted: Fri Apr 30, 2010 20:53 Post subject: |
|
|
Yes. I had imagined that was the problem. Although I added a Karmic template, it wouldn't know a machine being karmic of Lucid, as these are not currently out of the box supported int eh M23 system.
yes, i did the manual installation just as the hint says I must do fro Ubuntu. The current hardware information that will be reported is the partition info for he HDD's and the amount of memory. no other information is reported back to the server. With the problem of the scripting logic currently, it is very hard to tell what information is there, and if it is being updated. |
|
Back to top |
|
|
Hauke
Joined: 02 Mar 2003 Posts: 1072
|
Posted: Tue May 04, 2010 8:25 Post subject: |
|
|
Can you post the contents of the file as I wrote in my previous post?
This would help to find a solition. _________________ Hauke Goos-Habermann
- project leader m23 (http://m23.sf.net) -
Jabber: dodgerm23@jabber.org
Schulung, Entwicklung und Support zu m23 und anderen OpenSource-Produkten: www.goos-habermann.de
Auch DU kannst etwas gegen Softwarepatente tun! www.patentfrei.de |
|
Back to top |
|
|
jggpc
Joined: 22 Apr 2010 Posts: 9
|
Posted: Wed May 05, 2010 1:00 Post subject: |
|
|
/tmp/clientsettings.post contains:
&distr=ubuntu
Regrettably, I have had to rebuild my Debian based M23 server, so server side test will no longer be possible. I have just a couple of test machines, and the tasks I am currently testing take them all up from week to week. i will have another online in the next 5 days for extended testing however.
edit: Prior to rebuilding my server. The memory, processor speed (sometimes, other times it would be blank) and Hard drive partition information was being reported to the server. There was no other information being transferred however. |
|
Back to top |
|
|
|