Hostnamechanger index was outside the bounds of the array. fog 1.3.0 rev 2402



  • hi,
    im trying to change the hostname on the computer but im receiving this error:
    "hostnamechanger index was outside the bounds of the array"
    unbuntu 12.04 lts
    fog rev 2402.
    does anybody now a possible solution?

    best regards


  • Senior Developer

    Correct, the old system didn’t always check null vaues.
    The server will need to be upgraded to handle the new client. After that though, the clients can perform in-place upgrades.



  • @Jbob, post: 43736, member: 21733 said:

    The data array contains all of the info returned by the server. The version included in v1.2.0 is broken, as you have discovered. Please note that this client is old and is about to be replaced by a new one. (A beta of the new version can be expected in the coming week(s) )

    That’s great news. I looked over the code and I see how it populates now. Looks like the older version overpopulated by default, and didn’t check for null key value. Correct?

    Will an in-place upgrade to the new beta be possible? Or will the server need to be rebuilt?


  • Senior Developer

    The data array contains all of the info returned by the server. The version included in v1.2.0 is broken, as you have discovered. Please note that this client is old and is about to be replaced by a new one. (A beta of the new version can be expected in the coming week(s) )



  • I’ve actually got it working now. I thought that recompiling HostNameChanger and changing the passkey was enough, but the out of bounds error is caused by the unpatched MOD_hostnamechanger.cs that is packed with 1.2.0. I cloned the latest version from git, changed the passkey and recompiled and now everything is working great. The error lies in the function at line 362 of MOD_HostnmeChanger.cs. The unpatched version only allows an array size of 6:
    https://github.com/FOGProject/fogproject/tree/4b6a98a5a5ab552fbe066e062af857b33a17a15f/FOGService/src/FOG_HostNameChanger

    The post on this forum that led me to this solution can be found here: http://fogproject.org/forum/threads/active-directory-registration-not-working-windows-7-x64-client.11514/

    Many thanks to Jbob for the info.


  • Moderator

    I think someone had a similar issue to this before, and re-installing the FOG client on the image fixed it.

    Gotta use the client that comes from your FOG server. It’s available in the Web GUI for download.



  • Did you ever find a solution to this problem? I’m having the same issue but we do not use product key management through FOG. Is this required for HostNameChanger to work properly?

    EDIT
    I’ve recompiled HostNameChanger myself using VS 2008. Prior to this I was getting an invalid padding error. It’s driving me bonkers.



  • @Jbob, post: 37573, member: 21733 said:

    This is often caused when
    A.) You entered a product key for the host without compiling the new patched HostnameChanger.dll
    B.) You compiled the un-patched new HostnameChanger.dll without giving the computer a product key.

    The HostnameChanger source files in the svn repository will compile a version that fixes this issue as well.
    hi, I will try this today and get back to you with an answer.

    best regards


  • Senior Developer

    This is often caused when
    A.) You entered a product key for the host without compiling the new patched HostnameChanger.dll
    B.) You compiled the un-patched new HostnameChanger.dll without giving the computer a product key.

    The HostnameChanger source files in the svn repository will compile a version that fixes this issue as well.


Log in to reply
 

358
Online

38746
Users

10569
Topics

100051
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.