RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
Goto page Previous  1, 2 
View previous topic :: View next topic  
Author Message
Andrew
Mammoth


PostPosted: Thu Apr 02, 2009 7:21 pm    Post subject: Reply with quote

[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 Smile
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

death_hawk



PostPosted: Fri Apr 03, 2009 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Andrew
Mammoth


PostPosted: Fri Apr 03, 2009 8:14 am    Post subject: Reply with quote

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
View user's profile Send private message
death_hawk



PostPosted: Fri Apr 03, 2009 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Andrew
Mammoth


PostPosted: Fri Apr 03, 2009 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
death_hawk



PostPosted: Fri Apr 03, 2009 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Andrew
Mammoth


PostPosted: Fri Apr 03, 2009 10:06 am    Post subject: Reply with quote

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
View user's profile Send private message
death_hawk



PostPosted: Fri Apr 03, 2009 12:33 pm    Post subject: Reply with quote

Looks promising.
Did a couple test runs and they were pushed pretty quick.


Thanks for the help.
Back to top
View user's profile Send private message
Andrew
Mammoth


PostPosted: Fri Apr 03, 2009 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
death_hawk



PostPosted: Fri Apr 03, 2009 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kybber



PostPosted: Fri Apr 03, 2009 6:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.