Vega Strike Image Gallery · error?

Let the flames roll in...
Err... yeah, well I suppose you can talk about other stuff as well, maybe?

Moderator: Halleck

Post Reply
snow_Cat
Confed Special Operative
Confed Special Operative
Posts: 349
Joined: Thu Jan 05, 2006 12:43 am
Location: /stray/
Contact:

Vega Strike Image Gallery · error?

Post by snow_Cat »

Processing and Saving Photos wrote:Processing status...
- Adding Snow-Cat 2006-01.PNG
Warning: copy(/home/groups/v/ve/vegastrike/htdocs/albums//user_screenshots/Snow_Cat_2006_01.png): failed to open stream: Read-only file system in /home/groups/v/ve/vegastrike/htdocs/gallery/platform/fs_unix.php on line 26

Warning: getimagesize(/home/groups/v/ve/vegastrike/htdocs/albums//user_screenshots/Snow_Cat_2006_01.png): failed to open stream: No such file or directory in /home/groups/v/ve/vegastrike/htdocs/gallery/util.php on line 608

Error: Invalid image: Snow_Cat_2006_01.png!
Need help? Look in the Gallery FAQ
Warning: unlink(/home/groups/v/ve/vegastrike/htdocs/albums//user_screenshots/serial.277.dat): Read-only file system in /home/groups/v/ve/vegastrike/htdocs/gallery/platform/fs_unix.php on line 79

Warning: fopen(/home/groups/v/ve/vegastrike/htdocs/albums//user_screenshots/photos.dat.lock): failed to open stream: Read-only file system in /home/groups/v/ve/vegastrike/htdocs/gallery/platform/fs_unix.php on line 55
Error: Could not open lock file (/home/groups/v/ve/vegastrike/htdocs/albums//user_screenshots/photos.dat.lock)!

Code: Select all

dismiss
The last update I see to the gallery was August 11, 2005 -- I take it then that we are to use our own webspace from here on out? Or is this because I don't know how to use IE now.

The later makes some sense, though does not explain the four months of entrophy...
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

There was a policy change with SourceForge wherein they desired that publicly accessible image uploads no longer occur.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Does this apply to the mediawiki section of the site as well?
snow_Cat
Confed Special Operative
Confed Special Operative
Posts: 349
Joined: Thu Jan 05, 2006 12:43 am
Location: /stray/
Contact:

Post by snow_Cat »

publicly?
that mean I need to search out my login for the sourceforge wiki and it will work?

Else, when an image appears linked from the forum (to annother post) a mod may decide to migrate it, if it become relevant to the post.

And the forum allows (limited) image uploading; why was that policy not effected here

Why hasn't the script of the gallery been updated to reflect this?

Why, why-y....

meow. I know these things happen.
Thanks for the clarification.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

To add to those questions: Can you still make image uploads if you have a gallery account, or are all uploads disabled?

Snow_cat: gallery accounts are, to my knowledge, created and managed seperately from forum/wiki accounts and are only available by request.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Hey, whaddya know? Somebody upgraded the site to gallery v2.

Anyone have info on how this will affect user uploads? It would be cool if the accounts could be tied in to the forum/wiki accounts.

By the way, the screenshot sampler on the main page has been broken by the upgrade, along with some of the wiki images.

EDIT: Great, it looks like image uploads are working again! (Is this a bad thing?)

Anyone care to make me an admin on gallery? I have extensive experience with visually customizing and administering gallery v2 sites so I can help set this thing up.
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

Halleck wrote: EDIT: Great, it looks like image uploads are working again! (Is this a bad thing?)
Don't know. Could be completely kosher for all I know, or it could be something that's not supposed to be there - I just remember having a conversation with HellcatV some months ago where he was explaining why the gallery was going to have to stop accepting pics due to some SF policy change. I didn't pay enough attention to the details then to have any useful command of the subject now.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Ah. I'll see what I can dig up on SF.net then.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Hm... I didn't find anything about anonymous upload policies, but Document E07 (SourceForge.net: Project Web, Shell and Database Services) contains the following guideline:
"Image Galleries: No image galleries should be demoed or used in the project web space. They have a tendency to be abused, so we do not allow them. You may put some screenshots on a website, though we strongly recommend you use the SourceForge.net screenshot system as an alternative to a full-blown image gallery."

I think the sourceforge screenshot system is far too restrictive for our use- very few users have or should have SF.net project accounts. If we have a gallery system that requires a forums account to use (like the wiki), I would imagine that would discourage abuse enough to pass as bending this particular guideline.

So, perhaps that's the solution- requiring a forums account? (Still publically accessible, but not anonymously)

It would be good to know where this anonymous use thing comes from, though.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

:!: The transition to gallery v2 has broken all dynamic thumbnails on both the vegastrike homepage and the Wiki! :!:

I can't figure out how to make the new thumbnails work with the wiki.

The only way I've found to use the thumbnails is via pure html, but this does not work on the forums or the wiki:
<img src="http://vegastrike.sourceforge.net/galle ... alNumber=2">

This is a serious problem. Can whoever upgraded the site to gallery v2 provide some information?

EDIT: I just realized that the main images can be linked from here, but this does not change the thumbnail situation.

There are four possible fixes I can think of, listed in order of preference:
  1. Find out where gallery v2 caches its thumbnail images, and create a symlink to that directory so it can be accessed via HTTP. This is the easiest option in the short term.
  2. Enable wiki image uploads, and allow the mediawiki software to handle the thumbnails instead (it would also be possible, though not as easily maintainable, to use the wiki software to replace gallery's functionality).
    Pure wiki galleries would take slightly more work to manage.
  3. Go back to gallery v1. This is a fairly poor choice, I don't know if it's even possible.
  4. Create thumbnails by hand. I don't think anyone wants this option.
EDIT: Allright, it looks like the thumbnails should be stored here:
http://vegastrike.sourceforge.net/galle ... erivative/

But... damn. It doesn't look like they store them in a real image format.
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

Could it be a .htaccess issue? There is a htacces.new file in the album directory (the working one is not visible). Maybe some rewrite options of Apache are now failing due to a changed directory stucture? So file calls are just not redirected into the right directory.

Just an idea... Sometimes it's funny, you know. :?

Or use the rewrite engine instead of linking directories...
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

No, because I can link to the thumbnails with a pure html <img> tag (as mentioned above).

I am 90% sure this is an issue with gallery2's stupid "security system". It locks the thumbnail cache away from us, and we can't make pure HTML image tags with a proper src attribute because they aren't supported by phpbb/mediawiki.

Maybe one of our valiant php hackers can bypass the "security system" and make gallery serve up the real thumbnail files as it should be doing.
jackS
Minister of Information
Minister of Information
Posts: 1895
Joined: Fri Jan 31, 2003 9:40 pm
Location: The land of tenure (and diaper changes)

Post by jackS »

I relinked the front page. We'll have to see what we can do for the wiki.
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

See my post here:
http://vegastrike.sourceforge.net/forum ... php?t=6219

The image problem applies only to thumbnails, as the new gallery dynamically generates them I guess.
The actual images can be linked to the same way as with gallery v1

We upgraded to gallery 2 so that image uploads could finally work again.

I hadn't seen that thing about image uploads though.

The SF Policy that at least I have been talking about is that the only writable location for their webservers has been moved into a single common directory, and the project space with the php files has been marked read-only by the webserver, and they now supply space in a common directory, /tmp/persistent.

This requires changing all scripts that have to modify and upload files to point to that one directory instead.

One reason we upgraded to gallery2 because the old gallery uses database text files instead of the MySQL server.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

I see.

Since it's tied into MySQL, can you have it use the same combined wiki/forums logins?

If sourceforge is worried about abuse, making users register accounts should serve as some deterrent (although I can't remember the gallery ever being abused in the past.)
Zeog
ISO Party Member
ISO Party Member
Posts: 453
Joined: Fri Jun 03, 2005 10:30 am
Location: Europe

Post by Zeog »

Now that it's working, how can I display gallery images in a forum post? That "creating link" doesn't seem to do anything. It's not giving me an url to link to, combined with a thumbnail or something...
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

Hm....
Image

It doesn't seem to be possible. :|
ace123
Lead Network Developer
Lead Network Developer
Posts: 2560
Joined: Sun Jan 12, 2003 9:13 am
Location: Palo Alto CA
Contact:

Post by ace123 »

yes you can still:

Link to the actual image stored in http://vegastrike.sourceforge.net/albums/ (You can find it in the apache directory listing, or find it based on the name in the gallery.)

Don't do the PHP one, since that is a thumbnail. Just link directly to the image.

The &ext=.png trick only works for MediaWiki. Plus, there's not much reason to have a thumbnail in a forum post anyway.
Halleck
Elite
Elite
Posts: 1832
Joined: Sat Jan 15, 2005 10:21 pm
Location: State of Denial
Contact:

Post by Halleck »

ace123 wrote:Plus, there's not much reason to have a thumbnail in a forum post anyway.
I use them all the time. :(
I guess I can just transload them to somewhere else.
Post Reply