cvs problem

theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 14:15

Getting this error:

<<Missing files (217)
Note: You're running Gallery from CVS, so there might be some missing files. If you see this, please report it in the forums.>>

What should I do here?

If the nightly builds are not complete and functioning, theres not really any point in using them - its far too complicated to go hunting around for missing files!

!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 14:53

nightly snapshots and the cvs version should both work.

1. are you using nightly builds (download from jmullan or jesse's page) or cvs?
2. don't use winzip to extract the nightly snapshots
3. if you upload via ftp, some files may be corrupted or even missing, that's the nature of ftp. if you can, upload the archive (tar.gz) and unarchive G2 on the server.
4. if it really was a cvs version (not nightly snapshot), run cvs checkout or update again, sometimes strange things happen :)

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 15:08

it was a nightly build

i didnt use winzip

its installed ok but i'm getting this when i try to log in and begin:

<<<Fatal error: Failed opening required '/home/httpd/vhosts/jameslomax.com/httpdocs/gallery 2/modules/core/classes/../../../lib/smarty/Smarty.class.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery 2/modules/core/classes/GalleryCoreApi.class on line 2355>>>

could this be related to missing files?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 15:38

yes, it could.
check if a file exists at
/home/httpd/vhosts/jameslomax.com/httpdocs/gallery 2/lib/smarty/Smarty.class.php

I'd just install all the files again (delete what you have and unarchive G2 again).
FTP is really inappropriate for thousands of files. Upload the archive (tar.gz) and use ssh or a webinterface filebrowser in the control panel of your domain to unarchive gallery2.tar.gz.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 15:51

there's no SMARTY directory at all. Should there be one?

If i got an error message saying "files are missing", i think i'll just start again- i'll assume this is correct, and its too complicated to analyse.

BUT: are these nightly builds reliable and complete? If they're not, it will cause lots of problems.

The archive upload sounds a good idea, could you describe how you do it?
thanks

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 15:59

The nightly builds are reliable and they work.
Yes there should be a smarty directory and if there is none, it indicates that other files/directories may be also missing. This may happened during the upload or whatever.

To make sure things work fine next time:
1. download again the most recent nightly snapshot. it's very unlikely that this caused the problem, but we want to go sure.
2. you didn't give me any information on how you upload G2 to the webserver. I assume you don't have ssh access and you use ftp.
3. If you use ftp, check the control panel of your website (there must be some kind of control panel to manage and administrate all the things for your website, right?). Check if there is a file / directory browser in this control panel. upload gallery2.tar.gz via ftp or this file browser. When it is uploaded, select this file in the file browser and check if there is an option "unarchive" or "decompress" or something. If so, do it.
If not, sorry, your webhost doesn't feature what we hoped for. You'll have to unarchive gallery2.tar.gz on your pc and then upload all the files via ftp and hope that it works this time.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 18:46

I use an ftp client called SmartFTP - its more flexible than the control panel.

I dont think i have ssh access but if I find that I do, can you give me the instructions?

And there's no "decompress" funtion - just checked that.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 19:05

Update: I've just found there IS a smarty directory, but its not in the lib location you suggested, its in the data directory you have to manually create. I dont know if thats relevant or not.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 19:14

no, that's not relevant. that's another smarty directory.
just try again to upload gallery2 via ftp.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 19:49

ok thanks

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 20:19

OK new install
NOW I'm getting this:

<<Fatal error: Failed opening required '/home/httpd/vhosts/jameslomax.com/httpdocs/gallery 2/modules/core/classes/GalleryUtilities.class' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery 2/install/index.php on line 44>>

Any ideas?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 20:27

Ok, this is a real bug. Someone introduced it hours ago and another dev just fixed it.
I'm sorry for that, this happens really very rarely. Wait for the next nightly snapshot, then it will be fixed. And yes, I'd understand if you lost your patience now, but a) this is the first error caused by gallery and not your ftp program and b) you've really bad luck, if you installed the nightly snapshot of any other day, there wouldn't have been a bug like this.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 20:29

I dont know if its related, but I also can't delete the data directory from the previous install. Wierd. Its like its set up some kind of php lock that I cant override - even though I deleted the entire g2 install and the database, and started again. So its not like the new install is even configured to access the data directory.

*Sigh*.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 20:32

Oh, Jeez.
I know, you guys are great and everything.
But that doesnt make it easier.
I also had major problems with a previous install process with another comapny - turns out, they were running an NFS system that Bharat diagnosed - i gave him an ftp access folder.

This has been going on for weeks!

Anyway, what gives with the data directory I cant delete? Any ideas?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-02-18 20:36

fix is in cvs.. update from anonymous cvs in a few hours or get tomorrow's snapshot.. sorry!

see G1 or G2 FAQ for deleting files.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 20:57

OK dude. Will there be any kind of announcement for when the fixed version is available?

And re. the data directory delete: the faq suggests that g2 creates files that the webserver 'owns', which is why i can't delete them now. I dont understand that because those files are in my personal web area. However, the suggested solution is to use bharat's tidy-up script.

BUT: if its just a matter of chmod I can do that manually - theres very little there, because I never used that directory.

BUT: it still wont let me delete me, when i open it up to 777

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 21:11

There's no point in announcing every nightly snapshot or each bug fix. Just relax and try it again tomorrow :) You can see the date of a nightly snapshot, so you'll know when it has been updated when the date of the most current nightly snapshot has changed.

Yes, the webserver user owns the files. You have created the g2data directory, changed the permissions to 777 and from then on, the webserver was allowed to do anything with it. Now, if you have the permissions, you can change the owner of g2data and its subdirectories/files with chown -R. It doesn't suffice if you just change the permissions or owner of the g2data directory, because the files and directories within g2data are still owned by the webserver user.

Use the clean up script, because it runs under the webserver user and as the webserver is the owner of the files, it's allowed to delete the files.

instructions:
1. delete g2data
2. relax
3. get the next nightly snapshot
4. to be continued :)

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 21:48

ok - didn't realise you could do that on a server, set up a directory that you don't have control over. But I can understand it, that it makes sense for security reasons.

Next: I cant use bharat's file. Its a .gz which is presumably designed more for a Mac.
Is there a .zip available?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 22:00

do you have winzip? save the file cleanup.php.gz to your pc. then use winzip to decompress it to cleanup.php. my version of winzip (8.1 on windows xp) can handle .gz files.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 22:44

I use the default Windows XP decompress programme - I try to avoid installing scripts on my PC if they're not really necessary. Just clogs up the puter and takes up space.

Seems to me, providing a .zip file is pretty essential.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-02-18 23:12

Seems to me installing a few basic programs is pretty essential. ;)
Come on, winzip ! or any other zip program. The built-in windows xp zip thing doesn't handle many formats. You installed a .pdf viewer too, right? There are some programs that need to be on every pc.

this one time i upload the decompressed file for you but please stop asking such basic questions. i mean, if you used google for ".gz" you'd know quickly what it is and how to deal with it.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Fri, 2005-02-18 23:58

Hey thanks dude. Hehe.
Really though - I'm not a developer or anything, so my needs are minimal and I like to keep my puter lean and clean.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-02-19 19:58

24 hours later, using the latest nightly and a re-install, I'm still getting this:

<<Fatal error: Failed opening required '/home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryUtilities.class' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/install/index.php on line 44>>

What gives, guys?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-02-19 20:18

incorrect.
i just took the current nightly snapshot from jesse mullans website and installed it, for you. and it works. try again, you're doing something wrong.

get http://galleryupdates.jpmullan.com/G2/current.gallery2.zip
and start over.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-02-19 21:15

OK thanks dude.
Well, I downloaded and ftp-ed AGAIN. I think I know what whent wrong last time - ftp error.

This time: it opens up OK, authenticates with login.txt OK, but then goes crazy with error messages suggesting there are files/directories missing again beginning with this:

<<<Warning: OpenDir: No such file or directory (errno 2) in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryUtilities.class on line 1244>>>

Is it possible the previous installs have set up some kind of php configuration that is now interfering?

I deleted the installs, and created a new directory for the G2 data which I havent even used yet. but can there be any php stuff still existing, that is now blocking this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-02-19 21:36

you have to delete all g2 files of prior installations.
you have to empty the database of prior installations (or drop it and create a new).
and empty the g2 data directory (or use a new directory).

i see 2 possibilities:
a) you're still using an obsolete gallery2 version (use the link from above to get the current version)
b) your ftp connection to the server is very erroneous

all i can say is...keep trying, other people seem to be able to install g2.
or convince your webhoster to let you use some kind of utility to upload the gallery2.tar.gz archive and unarchive it on the server.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-02-19 21:43

yeah I did all that
the first time i installed it worked ok except for the final log-in error
I'll try again..........

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-02-19 22:33

Still getting this:
Beginning:

<<Warning: OpenDir: No such file or directory (errno 2) in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryUtilities.class on line 1244>>

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-02-19 22:54

Maybe your webhost uses a php memory cache (accelerator). This could cause something like that (the webserver would still use a cached version of a file, although a new version of the file is present in the filesystem).
But I believe you're doing something wrong. As this statement surely doesn't help you, I recommend to keep trying to install G2 or switch to anything else.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sat, 2005-02-19 23:04

I've tried about 4x now, the first time it was OK EXCEPT for the final log-in link. It went through the install stages perfectly OK.

I suppose its possible that my ftp connection is flawed, but it becomes increasingly unlikely every time I repeat this process. I've also installed Wordpress, for example (www.wordpress.org) and its working perfectly OK.

Maybe its a cache thing. I dont know.
I dont know!

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 00:07

this seems to be the problem now:

<<Warning: OpenDir: No such file or directory (errno 2) in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryUtilities.class on line 1244>>

That file DOES exist on the server.

?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-02-20 01:08

let me translate this error to you:
not GalleryUtilities.class is missing, but "modules", "themes", or "layouts".
if all these directories are present on your webserver, it is a webserver php caching / accelerator issue and you'll have to talk to your webhost administrator.

have you a url where we can see the error message?
and could you turn debug mode on (in config.php). i don't think that will give anything, but why not.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 13:57

ok thanks
seems that I've got ftp problems MAYBE related to directory levels with my client - that its OK with a basic layer, but multi-layer directories make it screw up.

so i've maually uploaded them, and it installed OK but STILL said i've got 171 missing files, and the final log-in message is this:

<<<Warning: stat failed for /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/templates/ShowItem.tpl (errno=2 - No such file or directory) in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryPlatform.class on line 572>>>

Are there any missing files in the latest nightly?

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Sun, 2005-02-20 14:00

and i might have to start loading individual files now, because i've used nearly 3G of bandwidth in a few days and i only have 6 for an entire month!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-02-20 15:06

1. I don't trust your ftp connection
2. I don't trust your unarchive program (win xp). We have experienced problems with unarchiving with winzip, perhaps there may be corruption with the win xp unarchiver too.

install winrar or something like that and unarchive gallery2.tar.gz or gallery2.zip with this application.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-20 17:58

nightly builds don't have missing files; cvs does occasionally have a handful.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 11:37

I think the errors were probably caused by my ftp client, when its working with sub-directories.

I need to upload indidivdual files/folders manually now, and not trust an auto-process). Most ot its there, but a small part is missing.

From this message, any idea whats missing?

<<<Warning: stat failed for /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/templates/ShowItem.tpl (errno=2 - No such file or directory) in /home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/classes/GalleryPlatform.class on line 572>>>

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-21 12:11

/home/httpd/vhosts/jameslomax.com/httpdocs/gallery2/modules/core/templates/ShowItem.tpl is missing.
but i'd verify that the gallery2 directory you have on your pc from which you upload has these files before uploading. if these files are not even on your pc, then the win xp unarchiver doesn't work together with our .zip files.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 18:01

OK
they're on my PC but they were missing on the server.

This seems to be a problem with SimpleFTP

Aha! - now I seem to be getting somewhere with this install.....
Please continue to monitor this thread: I appreciate your attention, value the work you put into G, and I am *lost* if i dont get this kind of help.

:-(

Mean time, I'll see how the install is looking......

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 19:30

Nope, I think you may be right: its an ftp problem loading to this server. Sometimes it just stops, hangs, and aborts the command.

Its a "good value" service but this is ridiculous if it gives me lots of problems all the time.

Is this maybe a common feature of low cost severs - that they dont give you fast, efficient ftp accees? That its maybe quite expensive to provide that kind of service?

I dont know - i'm new to this. I also think its possible to shop around and get good deals for most things.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-21 20:26

well, maybe it's just luck. i uploaded huge applications as G2 or xaraya only very rarely via ftp and in 1/2 of the cases i had 1,2,3 ftp errors.
please ask your webmaster to add a unarchive command to the web-filebrowser. these web-filebrowser that have such abilities are free (open source solutions). this solves your problem.
we will work on an alternative, but that takes a while.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Mon, 2005-02-21 21:58

Looking a bit deeper, when I began to appreciate this WAS the problem (thanks dude), I noticed there were LOTS of missing directories. About 80% of the modules, for example. Thats just ridiculous. I can use this install now, and if I get any more error messages, try to work out whats missing and upload it manually. And I've done that about 3 times. But its not satisfactory....what happens when I want to install the final version G2?

I'll mention the unarchive thing.

But hey, here's a question: because of the way this has been set up, have I missed the graphics tools configuration? Or do you have to set them up manually anyway? If so, I can't work out what directory you are supposed to point to, and what the URL is, to get these modules working.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-02-21 22:03

If you have gone through the installer steps, you should have installed and configured (automatically) the image toolkit modules. if you are not sure, go to Site Admin -> and make sure imagemagick OR/AND netpbm OR/AND gd module is active and configured.
Can't help you find the right directories on your server.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 12:02

Its the configuration path that puzzles me - guess I'll work it out by trial and error, but any advice on what the path is? relative or absolute URL?

Anyway, now I've got another problem:

When the .htaccess file is there set to 16m, I cant do anything with my install - at every click, it wants to save the page/file to my hard drive. If I remove the .htaccess file, everything is fine.

What gives?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-02-22 12:11

what .htaccess file? from G2?

what configurationpath? in the site admin->imagemagick module? if so, don't enter a url, no url! it asks for the filesystem path where imagemagick is installed. imagemagick and netpbm must be installed on the webserver if you want to use these image toolkits. that has nothing to do with the G2 installations, these are other applications that must be installed by the webmaster. if they are not present on the webserver, you can either upload netpbm binaries or use the GD image toolkit, supposed GD is present in the php setup of the webserver (see lib/tools/phpinfo.php).

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 12:40

Yes, the G2 .htaccess.

What does filesystem path mean?
I dont know if theyre installed on the server as standard; I thought they were part of the G2 install, in the modules? - and i still cant work out which file you're supposed to point to when you configure them, and what the path is.

Also: at the moment, I dont have the .htaccess file in my install, because of the problem above.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-02-22 16:11

THERE IS NO .htaccess IN G2!

@imagemagick/netpbm/ffmpeg/...:
I see, you don't get it. G2 has certain requirements. i.e. you need to have an apache webserver, php and a database (mysql). These are the basic requirements.
Now if you want to generate thumbnails from the uploaded images and if you want to modify the images online, you need to activate at least 1 G2 image toolkit module (imagemagick, netpbm or GD).
But each of the image toolkit modules of G2 has also a requirement on the webserver. The imagemagick toolkit assumes you have installed the image magick binaries on the webserver (this binaries have nothing to do with G2). The netpbm G2 module requires the netpbm binaries and the GD module requires GD support in php.
Ask your webserver if imagemagick or netpbm are installed on the webserver and if so, where the binaries are located. You need the path to the binaries for the G2 module configuration. And if that fails, you can still try the G2 GD module.

Well, try first the GD module. Go to site admin -> Modules -> GD configure
check if it says

Quote:
GD library version
You don't seem to have the GD library available on this PHP installation.

If so, you can't use GD. Else, use GD.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 19:34

Yes the G2 one.

I thought those graphics were part of the G2 install modules?
And i dont understand the filesystem path - which file/directory to point to, and where it is.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-02-22 20:10

ok, sorry, that's it. i will not continue to rephrase my answers to your repetitive questions.

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 22:35

hey, hold on.....

it seems i made a mistake. i didn't notice your answer - some kind of strange browser problem. please don't ascribe me with some kind of "attitude".....

 
theredfox

Joined: 2004-11-01
Posts: 133
Posted: Tue, 2005-02-22 22:41

OK i didnt understand that the G2 modules are not complete and self sufficient.
I'll have to contact the server guys.....

But on the .htaccess:

Well, I'm getting confused. the wizard prompts you to create one of those files.