Upgrade question.

lcassell

Joined: 2003-06-27
Posts: 9
Posted: Tue, 2003-07-01 16:46

I agree the upgrade file needs some upgrading. But I don't want to wait on it. I'm confused by step 3, "Unpack the new Gallery on top of your old one". Can anyone explain how to do that? Something about "tar xvf", I'm unfamiliar with this.
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): agnew31.ext.vt.edu
Gallery version: 1.3.3
Apache version: 1.3.27
PHP version (don't just say PHP 4, please): 4.1.2
Graphics Toolkit: netpbm
Operating system: Mac OS 10.2.6
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2003-07-01 16:50

Yep, if you have shell access, go to Gallery's parent directory and type this

$ tar -xvzf new-gallery-filename.tar.gz

Make sure Gallery is in setup mode before you do that.

 
lcassell

Joined: 2003-06-27
Posts: 9
Posted: Tue, 2003-07-01 17:50

Thanks, the upgrade works now! From other posts I had it almost figured out except I wasn't unpacking the file from gallery's parent directory, but instead from within the gallery directory.

 
jegefe

Joined: 2003-07-01
Posts: 10
Posted: Tue, 2003-07-01 19:19

i am having a problem with the upgrade.

i have put gallery-1.3.4.tar.gz in my /public_html directory.
/gallery is under /public_html.
i have put gallery in configure mode.
from /public_html i unpack the file.
it goes fine for a few seconds, and the i get

---snip----
gallery/images/nav_page.gif
gallery/images/nav_prev.gif
gallery/images/pixel_trans.gif
gallery/images/uploading.gif
gallery/index.php
gallery/init.php
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers

gzip: stdin: invalid compressed data--crc error

gzip: stdin: invalid compressed data--length error
tar: Child returned status 1
tar: Error exit delayed from previous errors

--------------------------------------

what is wrong?

jeff

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2003-07-01 19:32

jegefe, your archive seems corrupt. Try downloading a fresh one. :)

 
jegefe

Joined: 2003-07-01
Posts: 10
Posted: Tue, 2003-07-01 19:48

thanks, you were right.

i think i did an ascii ftp.

jeff

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2003-07-01 19:55

And that is not a good idea. :) Glad you got it working!

 
jegefe

Joined: 2003-07-01
Posts: 10
Posted: Tue, 2003-07-01 20:46

sorry to be a pest, but i am now doing the upgrade for a second installation. i have done everything exactly the same as the first,
but i get this error message when i unpack:

-----------
tar: gallery/html_wrap/gallery.header.default: Cannot open: File exists
gallery/html_wrap/inline_albumthumb.footer.default
tar: gallery/html_wrap/inline_albumthumb.footer.default: Cannot open: File exists
gallery/html_wrap/inline_albumthumb.frame.default
tar: gallery/html_wrap/inline_albumthumb.frame.default: Cannot open: File exists
gallery/html_wrap/inline_albumthumb.header.default
tar: gallery/html_wrap/inline_albumthumb.header.default: Cannot open: File exists
-----------
any ideas?
thanks
jeff

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2003-07-01 20:56

Are you using the -f flag?

e.g.

tar -xvzf gallery.tar.gz

 
jegefe

Joined: 2003-07-01
Posts: 10
Posted: Tue, 2003-07-01 22:30

yes i am using -f.

jeff

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-07-02 09:11

It looks like it might be write permissions problems. Simplest fix:

Copy gallery/.htaccess and gallery/config.php somewhere safe. Remove all the gallery files and untar the new code into an empty directory. Move config.php and .htaccess back again, and proceed as before.

 
jegefe

Joined: 2003-07-01
Posts: 10
Posted: Wed, 2003-07-02 13:42

thanks, it worked.

jeff

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Tue, 2003-07-29 02:22

I have 2 gallerys with to seperate album folders running on my server. One gallery is called "gallery" and the other is called "friends". How can I unpack gallery to upgrade "friends"? If I unpack using

$ tar -xvzf new-gallery-filename.tar.gz

It unpacks over the "gallery" folder.

Is there a script that will let me force it to unpack over "friends"

Thanks.

 
egil85

Joined: 2007-01-05
Posts: 16
Posted: Sat, 2007-08-18 12:43

OK, I used the preinstaller to load a .tar.gz file in the root directory, and I inputted
$ tar -xvzf gallery2.tar.gz
and I got back the error
500?
What's going on?

 
egil85

Joined: 2007-01-05
Posts: 16
Posted: Sat, 2007-08-18 12:50

And when I try to unpack gallery.zip using the preinstaller, it gives
exec returned an error status Archive: /home/content/e/m/b/embk1/html/gallery2.zip

by the way:
Gallery version = 2.1.1 core 1.1.0.1
PHP version = 4.3.11 cgi-fcgi
Webserver = Apache
Database = mysql 4.0.27-max-log, lock.system=flock
Toolkits = Gd, NetPBM, ImageMagick, Ffmpeg, Exif
Acceleration = none, none
Operating system = Linux linhost117.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
Default theme = siriux
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6