Web Administration Doesnt Work

PAL-18PAL-18 Join Date: 2011-12-16 Member: 138166Members
edited June 2012 in NS2 General Discussion
I got my user set up and i added the code to the server.xml file, yet when i start my server i get:

<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->A valid root directory has not been specified for web administration.<!--QuoteEnd--></div><!--QuoteEEnd-->

The directory does exist and the path contains no spaces.

Here's what the web code i have in server.xml :

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><webadminActive>true</webadminActive>
    <webadminDomain>209.44.100.12</webadminDomain>
    <webadminPort>80</webadminPort>
    <webadminDirectory>"S:\NaturalSelection2\ns2update"</webadminDirectory><!--c2--></div><!--ec2-->

Any idea how to fix this?

Comments

  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    edited June 2012
    I believe the directory is relative (to the server-dir), also those quotations probably shouldn't be there. Try using the command-line to pass the options instead of manually editing the xml: <a href="http://www.unknownworlds.com/ns2/wiki/index.php/Dedicated_Server#Web_Administration" target="_blank">http://www.unknownworlds.com/ns2/wiki/inde..._Administration</a>

    [EDIT]
    Looking at the URL I just passed, it does tell you to do those things, but that isn't how my XML looks after being auto-generated using the commandline-options, so have a try using -parameters.
  • PAL-18PAL-18 Join Date: 2011-12-16 Member: 138166Members
    I did follow those instructions though, the example they provided for the webadmindirectory was:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><webadminDirectory>"c:\web_directory"</webadminDirectory><!--c2--></div><!--ec2-->

    Quotes and drive letter included. I cant use command line options because im running the NS2update mod and it doesnt accept NS2 command line options.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    Does the directory exist and contain the .htpasswd-file?
  • PAL-18PAL-18 Join Date: 2011-12-16 Member: 138166Members
    Yes. When i created the user, it added it to the .htaccess file.
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    The server.exe-file is located in "S:\NaturalSelection2"? Try replacing
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><webadminDirectory>"S:\NaturalSelection2\ns2update"</webadminDirectory><!--c2--></div><!--ec2-->
    with
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><webadminDirectory>ns2update</webadminDirectory><!--c2--></div><!--ec2-->
    again assuming the .htpasswd-file sits in the ns2update-directory. You may also want to check if the directory is a complete match in terms of upper\lower-case, just in case NS2 really is that particular about things.
  • PAL-18PAL-18 Join Date: 2011-12-16 Member: 138166Members
    edited June 2012
    Aha that fixed it!

    Thanks

    P.S. Is GameOvermind still set for a June release?
  • playerplayer Join Date: 2010-09-12 Member: 73982Members
    Maybe. I've seen how very inactive the community is at the moment and decided to go ahead and make another pass over the code-base (will take a week or 2), as releasing something now would just be met with a very lackluster reception. If the inactivity lasts into July, I'll just put off the release to follow suit. Also, do remember it'll be a test-version initially, which you really shouldn't put on a public-server until it has been scrutinized sufficiently. It's an unwieldy beast for sure, very large.
Sign In or Register to comment.