installation and upgrade script fail [message #6054] |
Tue, 01 October 2002 16:50 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello,
I don't know whether it's an issue with FUD itself but I'm posting it here anyway. When I tried to upgrade my existing FUD 2.3.1 RC3 installation I encountered the following error:
Quote: | "Couldn't locate start of archive"
|
Obviously this happens while attempting to extract the files. Since this was a local test installation I deleted it and tried to run the setup from the scratch, but then I got the same error.
My configuration is as follows:
Apache 2.0.40 (including patches to fix problems with modules)
PHP 4.23 which I compiled with the following:
Quote: | './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-mysql=shared,/usr' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs
|
It is running as Apache module and its relevant settings are:
Quote: | Safe Mode: OFF
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: ON
Disabled Functions: none
|
MySQL: 3.23.52
Any hints would be greatly appreciated since it seems to be a riddle to me.
Bye
Ken
[Updated on: Tue, 01 October 2002 16:54] Report message to a moderator
|
|
|
Re: installation and upgrade script fail [message #6056 is a reply to message #6054] |
Tue, 01 October 2002 16:55 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Apache 2.X and PHP 4.2.3 has MAJOR bugs, such as file_exists() and other file system related functions not working. If you 'must' use Apache 2 use the CVS version of PHP.
FUDforum Core Developer
|
|
|
|
Re: installation and upgrade script fail [message #6064 is a reply to message #6062] |
Tue, 01 October 2002 17:12 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Oh btw: Since I ve just read it:
Quote: | The installation/upgrade scripts no longer depend on zlib module. Both zlib & non-zlib archives are supported. By default the non-zlib archive is distributed
|
Could this be the reason??? From time to time I encounter zip archives which I can't open on linux, mostly made on Windoze systems. Maybe my problem depends on whether the zlib is being used or not...
Bye
Ken
[Updated on: Tue, 01 October 2002 17:13] Report message to a moderator
|
|
|
|
|
Re: installation and upgrade script fail [message #6073 is a reply to message #6072] |
Tue, 01 October 2002 18:56 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I suspect on the production server PHP related errors are not shown on screen (hence your inability to see what went wrong) but rather logged to a file. Could you check on that please?
FUDforum Core Developer
|
|
|
Re: installation and upgrade script fail [message #6074 is a reply to message #6073] |
Tue, 01 October 2002 19:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm, I've noticed you are using php as cgi on your production machine. Can you do a small test
make a sample file
<?php echo __FILE__; ?>
and see if it outputs the correct data.
FUDforum Core Developer
|
|
|
Re: installation and upgrade script fail [message #6075 is a reply to message #6074] |
Tue, 01 October 2002 19:13 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi,
yes indeed, warnings aren't shown there. If a script produces a timeout however, I'll get a custumized "Internal Server Error" message. I'll check for it and will do that test u propose.
bye
Ken
|
|
|
|
Re: installation and upgrade script fail [message #6078 is a reply to message #6077] |
Tue, 01 October 2002 19:35 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Modify the upgrade script and add ini_set('error_log', ''); this should disable logging errors to a file and display them on screen.
FUDforum Core Developer
|
|
|
Re: installation and upgrade script fail [message #6079 is a reply to message #6078] |
Tue, 01 October 2002 19:48 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
I added this option to the upgrade script, however the effect is still the same.
Quote: | Beginning the file upgrade process
|
and game over. If I only knew what's going on there. Best would be I'll pm u the link to phpinfo().
bye
Ken
|
|
|
|
Re: installation and upgrade script fail [message #6085 is a reply to message #6082] |
Tue, 01 October 2002 20:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
weird, very weird the lack of errors is certainly most annoying though...
One last thing before I go and make a complete debug version of the upgrade script.
Inside upgrade.php you should have a line like this:
'$data = filetomem(realpath(__FILE__));'
change it to
$data = filetomem('upgrade.php');
then try the script again.
FUDforum Core Developer
|
|
|
|
Re: installation and upgrade script fail [message #6091 is a reply to message #6090] |
Tue, 01 October 2002 21:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I do not believe it is a mem limit issue, your limit is fairly high according to the phpinfo() you've provided me with.
It'll take me a little bit of time, but I will have a 'debug' version of the upgrade script for you sometime soon. I desperatly hope that this version would provide more information as to why this is happening.
As you can well imagine lack of error reporting is MOST frustrating.
FUDforum Core Developer
|
|
|
|
|
Re: installation and upgrade script fail [message #6095 is a reply to message #6054] |
Tue, 01 October 2002 22:36 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Here are the debug enabled upgrade scripts.
Please try 'upgrade_nc.php.bz2' first, it is the non zlib using upgrade script first. If it does not work then try the 'upgrade.php' upgrade script which uses zlib.
Please let me know what is the result.
FUDforum Core Developer
|
|
|
|
Re: installation and upgrade script fail [message #6100 is a reply to message #6099] |
Tue, 01 October 2002 23:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Aight, thanks for letting me know, I'll install php-cgi on my test server and see if I can replicate the problem you've experienced.
FUDforum Core Developer
|
|
|
|
|
|
Re: installation and upgrade script fail [message #6120 is a reply to message #6119] |
Wed, 02 October 2002 14:44 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Thank you very much for letting me know. Since the install script does not use zlib compression to store the archive, I assume that the problem with non-zlib archive on another system was due to something 'wrong' with php-cgi. I will be analyzing this problem in further detail...
I dunno what redhat is thinking shipping Apache 2.0.40 with Redhat 8.0, very BAD move imho just like shipping with gcc 2.96 was...
I recommend that you grab a copy of Apache 1.3.26 and use that.
FUDforum Core Developer
|
|
|
Re: installation and upgrade script fail [message #6152 is a reply to message #6120] |
Fri, 04 October 2002 02:38 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello,
after endless hours of compiling and testing I was able to track down the error of my local system. In order to make the script fail with that message u have to apply the following in ur php.ini:
magic_quotes_runtime=On
After restarting httpd it takes immediately effect. Reproducable with the apxs module on both 1.3.26 and 2.0.40. Just thought to let u know about it
bye
Ken
[Updated on: Fri, 04 October 2002 02:39] Report message to a moderator
|
|
|
Re: installation and upgrade script fail [message #6153 is a reply to message #6152] |
Fri, 04 October 2002 02:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm... now that is most unusual. Did you by any chance encounter problems in other PHP applications in the same enviroment when '
magic_quotes_runtime' was off?
FUDforum Core Developer
|
|
|
Re: installation and upgrade script fail [message #6156 is a reply to message #6153] |
Fri, 04 October 2002 02:57 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hard to say because I haven't focussed on that. Sometimes apps failed because they expected some exotic features compiled in. But in this case its strange that because of that setting the files cannot be extracted.
The setting
magic_quotes_gpc = On
however does work fine. Maybe one has to do some closer research to learn more about this issue.
bye
Ken
|
|
|
|
Re: installation and upgrade script fail [message #6215 is a reply to message #6157] |
Sun, 06 October 2002 11:10 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
A small note on this issue. Right now I'm using Windows NT 4.0, a good opportunitiy to see if the forum behaves the same way. If I turn those magic_quote_runtime to "on" the installation will fail with exactly the same error. Tested it with Apache 2.0.43, Apache 1.3.27 and the most recent snapshop of php (each of them win32).
bye Ken
|
|
|
Re: installation and upgrade script fail [message #6244 is a reply to message #6215] |
Sun, 06 October 2002 22:24 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I believe I may see a reason why. magic_quote_runtime, which is off by default causes data that is read from databases,files,etc... be passed through addslashes() function. The affect this has on the upgrade script is that it corrupts the archive, resulting in the problem you are seeing.
I'll add some detection code to handle this parameter in the futute upgrade/install scripts.
FUDforum Core Developer
|
|
|