Old:Bugs 3.5-Apollo: Apanel not displayed: Difference between revisions

Punctuation and grammatical changes; moved to Category: Archive.
m (Protected "Bugs 3.5-Apollo: Apanel not displayed" [edit=sysop:move=sysop])
(Punctuation and grammatical changes; moved to Category: Archive.)
Line 2: Line 2:
'''''Server_Start.bat'''''
'''''Server_Start.bat'''''


== Bug fix Apanel initial display ==
== Bug fix: Apanel initial display ==
File: '''Server_Start.bat'''<br>
File: '''Server_Start.bat'''<br>
Location: '''*\Uniform Server'''
Location: '''*\Uniform Server'''
Line 8: Line 8:
'''Problem:''' In certain situations Apanel is requested before Apache is running resulting in browser error message "Failed to connect"
'''Problem:''' In certain situations Apanel is requested before Apache is running resulting in browser error message "Failed to connect"


'''Solution:''' Before requesting the Apanel page wait for Apache to start using a delay loop .
'''Solution:''' Before requesting the Apanel page, wait for Apache to start using a delay loop.




In the past I have proposed using ping to introduce a delay however this fails if the IP address used is in use.
In the past I have proposed using ping to introduce a delay, however this fails if the IP address used is in use.


An elegant solution is now possible using the delay taken from the mini-servers series. A small c-program fully documented including source code hence officially open source.
An elegant solution is now possible using the delay taken from the mini-servers series. It's a small C-program, fully documented and including source code hence officially open source.


== Implementation ==
== Implementation ==
Line 19: Line 19:
Copy file '''unidelay.exe''' to folder '''udrive\home\admin\program'''
Copy file '''unidelay.exe''' to folder '''udrive\home\admin\program'''


Edit Server_Start.bat add the following block of code just above line '''start %apanel%\redirect.html'''
Edit Server_Start.bat and add the following block of code just above line '''start %apanel%\redirect.html'''


<pre>
<pre>
Line 44: Line 44:
</pre>
</pre>


Script first resets the safety loop counter; this is incremented each time around the loop. On reaching a count of 60 (approx 60 seconds) it is assumed Apache is never going to start, script transfers control to the TIMEDOUT section killing virtual drive created and informs user.  The Apache process is checked every second (unidelay.exe with no parameters defaults to 1 second) if errorlevel returned is 1 loop is repeated (:next) a zero value confirms Apache is running script exits loop and runs next line of code (Starts Apanel).
Script first resets the safety loop counter; this is incremented each time around the loop. On reaching a count of 60 (approx 60 seconds) it is assumed Apache is never going to start. Script transfers control to the TIMEDOUT section killing virtual drive created and informs user.  The Apache process is checked every second (unidelay.exe with no parameters defaults to 1 second) if errorlevel returned is 1, loop is repeated (:next). A zero value confirms Apache is running; script exits loop and runs next line of code (Starts Apanel).


== Download ==
== Download ==
Line 60: Line 60:
== Proposed solution ==
== Proposed solution ==
See above.
See above.
'''''[[#top | Top]]'''''


----
----
Line 69: Line 67:
|}
|}


[[Category: UniCenter]]
[[Category: Archive]]
[[Category: Support]]
[[Category: Patches]]
[[Category: Troubleshooting]]