View previous topic :: View next topic |
Author |
Message |
Andrew Mammoth
|
Posted: Thu Apr 02, 2009 7:21 pm Post subject: |
|
|
[b]#
Writing win32/left4dead revision 2
#
An error occurred attempting to open win32/left4dead.txt for write[root@01 public_html]#
[/quote]
Is the directory even writable?
Make sure the 'win32' directory exists:
/build-update.php
/win32/
/linux/
You should pay attention to the console output, it provides status's and errors  |
|
Back to top |
|
 |
adbot
|
Posted: Thu Mar 31, 2011 3:57 am |
|
|
|
|
|
death_hawk
|
Posted: Fri Apr 03, 2009 5:18 am Post subject: |
|
|
I'm using Linux not Windows.
I would imagine that a server in Gamecreate that's set to Linux would pull updates from the Linux content server. |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Fri Apr 03, 2009 8:14 am Post subject: |
|
|
Just let it write out the file anyway, its okay to leave it there.
The problem is that the script is immediately terminating as soon as it reaches that error - it really has more to do but you're not letting it because it wants to exit after encountering that problem. |
|
Back to top |
|
 |
death_hawk
|
Posted: Fri Apr 03, 2009 8:57 am Post subject: |
|
|
Code: | + Adding new directory l4d/left4dead/cfg/sourcemod
+ Adding new file l4d/left4dead/cfg/sourcemod/sm_warmode_off.cfg
+ Adding new file l4d/left4dead/cfg/sourcemod/sourcemod.cfg
+ Adding new file l4d/left4dead/cfg/sourcemod/sm_warmode_on.cfg
Revision changes for win32:
None
Writing revisions...
Writing linux/left4dead revision 2
Writing win32/left4dead revision 2
Notifying GameCreate of new revision... |
I'm getting this off of build-update.php
However the update is still not called to the server even after 15 minutes.
(The update is under 10MBytes) In fact, the entire install takes under 5 minutes, so I can't see that 10MB would take longer. |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Fri Apr 03, 2009 9:16 am Post subject: |
|
|
Because its still not finished yet - you're either terminating the script yourself too early (in which case it should be obvious its not going to work - your not letting it finish) or its stuck there and you presume its finished, even though it never returns to the console.
"Notifying GameCreate of new revision..." is not the last log line.
It should be showing, at the very end, a "Time Taken" log line.
Post the contents of your build-update.config file (substitute "REMOVED" for the domain password though). |
|
Back to top |
|
 |
death_hawk
|
Posted: Fri Apr 03, 2009 9:36 am Post subject: |
|
|
That's the last thing that happens before it returns me to the console.
I didn't terminate it. Once "Notifying" happens, it immediatly returns to console.
Code: | <?php
// Authentication details needed to update revision information
// Include multiple lines if you need to notify more than one domain
// Example: http://mammoth.au.gamecreate.com/admin/
// http://mammoth.REGION.gamecreate.com/admin/
// login = mydomainlogin, password = mydomainpassword, region = au (us, nz, eu, af...)
$auth[] = array("login" => "ncixgaming", "password" => "removed", "region" => "us");
// Content directory relative to build-update.
// Must include a trailing slash if set.
define('CONTENT_ROOT', '');
// Whether backup of revision files (<name>.<revision>.txt) should be created
// when a new revision is made. This allows for easy rollback or revision information.
define('BACKUP_REVISION', false);
?> |
Just a note, build-update.php is in public_html which is below the directory build-update.config is. Diagram below:
Code: | gamecreate
build-update.config
public_html
build-update.php |
I have edited build-update.php to reflect the correct path to build-update.config |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Fri Apr 03, 2009 10:06 am Post subject: |
|
|
Gotcha.
What I think is happening is that PHP is encountering a fatal error trying to construct the SOAP client.
Please make sure you have the SOAP extension turned on, you can do this in your php.ini file:
extension=php_soap.dll
(On linux this would be php_soap.so).
Then try re-running the update. (You can just delete your /win32/left4dead.txt AND /linux/left4dead.txt files to allow a rebuild).
When you see it get to "Time Taken" at the end, you know its worked - updates take effect immediately, not minutes. |
|
Back to top |
|
 |
death_hawk
|
Posted: Fri Apr 03, 2009 12:33 pm Post subject: |
|
|
Looks promising.
Did a couple test runs and they were pushed pretty quick.
Thanks for the help. |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Fri Apr 03, 2009 12:38 pm Post subject: |
|
|
No probs, glad its working!
I'll make a note to see if we can get some sort of dependency check in that script to show an error if it cant find the SOAP client. |
|
Back to top |
|
 |
death_hawk
|
Posted: Fri Apr 03, 2009 1:46 pm Post subject: |
|
|
Maybe more info in the Wiki would be handy.
I didn't know about the switches, the requirement for soap, a win32 directory on linux and a few other things. |
|
Back to top |
|
 |
Kybber
|
Posted: Fri Apr 03, 2009 6:23 pm Post subject: |
|
|
death_hawk wrote: | EDIT: Oh and new installs don't have the actual executable chmodded correctly. I had to go in by hand and chmod it to execute. |
This will be done automatically by GC the first time the server is started.
If you need more file to be chmodded +x, you can list them in the gamename.op.txt
file which you put in your linux-directory next to the gamename.txt files.
It should look similar to this:
Code: | l4d/srcds_run
l4d/srcds_i486 |
|
|
Back to top |
|
 |
|