FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » installation and upgrade script fail
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
installation and upgrade script fail [message #6054] Tue, 01 October 2002 16:50 Go to next message
Olliver   Germany
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6062 is a reply to message #6056] Tue, 01 October 2002 17:04 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
prottoss wrote on Tue, 01 October 2002 18:55

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.

Yes u re right, it took me a lot of time to get php 4.23 running. the apache module first got me mad with unresolved symbols error messages and the likes. Till yesterday I used php 4.2.2 and didn't have a single problem. Maybe I'm doing a bit of research on this issue before I consider downgrading. Thnx for ur statement Smile
Bye Ken
Re: installation and upgrade script fail [message #6064 is a reply to message #6062] Tue, 01 October 2002 17:12 Go to previous messageGo to next message
Olliver   Germany
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 #6065 is a reply to message #6064] Tue, 01 October 2002 17:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Unlikely the very same archive posted on this site has been used to upgrade 2 other forums, one of which you are currently using (support forum). Smile

Like I said before, 4.2.3 release won't work on multithreaded servers like Apache or IIS properly, it is a known bug, which has been fixed in the CVS.

In fact, latest PHP CVS contains a number of other Apache 2 related fixes, trust me I know, I wrote some of them Wink


FUDforum Core Developer
Re: installation and upgrade script fail [message #6072 is a reply to message #6065] Tue, 01 October 2002 18:48 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hello,
meanwhile I tried to apply the upgrade script to the production server. All it does is telling me:
Quote:

Beginning the file upgrade process

And then nothing happens Sad
The system settings:
Quote:

PHP built On: Linux infong 2.2.20-hap-2 #1 Fri Dec 14 17:08:09 CET 2001 m68k recovery
MySQL Version: 3.23.51-Max-log
PHP Version: 4.1.1
Web Server: Apache/1.3.26 (Unix)
WebServer to PHP interface: cgi
Forum Version: 2.3.1
Relavent PHP Settings:
Safe Mode: OFF
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: OFF
Disabled Functions: none
PSpell Support: No

Exactly the same system succeeded in upgrading from 2.0.2 to 2.3.1. Write access was given to all files and directories. This is definetly not my day Sad There'S no way for me to change the setting, it's just running on a hosting company.
bye Ken
Re: installation and upgrade script fail [message #6073 is a reply to message #6072] Tue, 01 October 2002 18:56 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 #6077 is a reply to message #6075] Tue, 01 October 2002 19:32 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Ok here's the output:

/homepages/27/d27063943/htdocs/test.php

just the location of that account. I don't have any access to the error messages Sad
bye
Ken
Re: installation and upgrade script fail [message #6078 is a reply to message #6077] Tue, 01 October 2002 19:35 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 #6082 is a reply to message #6079] Tue, 01 October 2002 20:18 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hi,
unfortunately "error_reporting(E_ALL^E_NOTICE);" hasn't had any effects on the behavior. But at least the forum gets disabled so one could say the script does something to a certain point Smile
bye Ken
Re: installation and upgrade script fail [message #6085 is a reply to message #6082] Tue, 01 October 2002 20:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6090 is a reply to message #6085] Tue, 01 October 2002 21:02 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
hi prottoss,
still this amazing nag screen which does nothing but disabling the forum. Could this be connected with a memlimit issue? I mean the file almost has a size of 3 megs. Anyway, thnx for ur patience Smile
bye
Ken

[Updated on: Tue, 01 October 2002 21:03]

Report message to a moderator

Re: installation and upgrade script fail [message #6091 is a reply to message #6090] Tue, 01 October 2002 21:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6092 is a reply to message #6091] Tue, 01 October 2002 21:19 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
kk, I'm not in a hurry with upgrading. However the reason I considered that mem limit thing was, that I could run that script as long as it made use of the zlib. Will check back later then Smile
bye
Olliver
Re: installation and upgrade script fail [message #6093 is a reply to message #6092] Tue, 01 October 2002 21:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Aight, I'll make 2 versions of the debug script 1 with zlib and one without.
We'll see what happens...


FUDforum Core Developer
Re: installation and upgrade script fail [message #6095 is a reply to message #6054] Tue, 01 October 2002 22:36 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6099 is a reply to message #6095] Tue, 01 October 2002 23:53 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hi,
I sent a pm of the 1st result. the zlib version worked perfect for me Smile Smile Smile
Thnx and g'nite
Olliver
Re: installation and upgrade script fail [message #6100 is a reply to message #6099] Tue, 01 October 2002 23:59 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6111 is a reply to message #6100] Wed, 02 October 2002 13:47 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hi,
The production system is running as stated above. However my local system here still isn't (which was the initial reason of opening this thread). Meanwhile I grabbed the latest cvs-snapshot from http://snaps.php.net and compiled it. But the problem persists, it says:
Quote:

Couldn't locate start of archive

I think it's the same problem as with the production server. A zlib version surely would fix the problem. Settings are the same as in my first post, except that php version changed to 4.2.4-dev Wink. Will do a bit of research on it, in hope of finding out sth useful Smile
bye Olliver
Re: installation and upgrade script fail [message #6114 is a reply to message #6111] Wed, 02 October 2002 13:58 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Hmm, well please try the zlib version and let me know if it works.

FUDforum Core Developer
Re: installation and upgrade script fail [message #6119 is a reply to message #6114] Wed, 02 October 2002 14:38 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
Hello,
meanwhile I installed the forum on a different testsystem, even with safe-mode Smile, however the 2.3.2 installation script worked without a single problem. This is what the host looked like:
Quote:

PHP built On: Linux server 2.4.16-64GB-SMP #1 SMP Tue Dec 18 13:54:20 GMT 2001 i686 unknown
MySQL Version: 3.23.44-log
PHP Version: 4.1.2
Web Server: Apache/1.3.20 (Linux/SuSE) mod_jk mod_ssl/2.8.4 OpenSSL/0.9.6b mod_python/2.7.8 Python/2.1.1 mod_perl/1.26 PHP/4.1.2 FrontPage/4.0.4.3
WebServer to PHP interface: apache
Forum Version: 2.3.2
Relavent PHP Settings:
Safe Mode: ON
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: ON
Disabled Functions: none
PSpell Support: No

But back to my system. I used the last development version for installing because that one relied on the zlib. to my surprise I encountered the same error Sad. I should mention that I upgraded my apache 2.0.40 installation to the build that ships with redhat 8.0, just rebuilt it on my system. Since the version before worked without any problems it seems that Redhat screwed up their apache interpretation. Oh dear Sad Ok, then it's obvious that the problem isn't FUD related, sorry that I didn't realize it earlier Sad.
bye Olliver
Re: installation and upgrade script fail [message #6120 is a reply to message #6119] Wed, 02 October 2002 14:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 Smile
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Olliver   Germany
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 #6157 is a reply to message #6156] Fri, 04 October 2002 03:14 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Indeed, Apache 2.X is a troublesome critter Razz

FUDforum Core Developer
Re: installation and upgrade script fail [message #6215 is a reply to message #6157] Sun, 06 October 2002 11:10 Go to previous messageGo to next message
Olliver   Germany
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 Go to previous message
Ilia is currently offline  Ilia   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: forum stats fail
Next Topic: 2.3.2 voting irregularities
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 07:15:08 GMT 2024

Total time taken to generate the page: 0.02120 seconds