Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

internal server error when upload.tar file HD

Quote Reply
internal server error when upload.tar file HD
hello

When i want to upload a.tar plugin from local harddisk, and press install:

I get an Internal Server Error.
What should I do????

Quote Reply
Re: internal server error when upload.tar file HD In reply to
Did you upload in binary or ASCII?

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I upload the perl module manager.pm in asci, because it must be.
I know that .tar files should be uploaded in binairy, but the problem is that the plugin admin tool can't upload .tar files from my local Hard Disk.
my FileMan have the same trouble.

A Fileman in the older Links-SQL on my server works fine.

Quote Reply
Re: internal server error when upload.tar file HD In reply to
You have to upload and download in BINARY.
There is no way around this. ASCI will corrupt tar files
every time.

Now why are you uploading the .pm files separately.

Robert Blackstone
Webmaster of Scato Search
http://www.scato.com
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I know that tar files should be uploaded binairy, but where can i set this, you have one field for that
<input type="file" name="file">

where can i set upload binairy in the script, I looked through all Plugin modules, but nothing find about this.
there is a download defined in Manager.pm.
Maybe I'am wrong but the internal filemanager have the same problem, and an external one from GT works fine.

Quote Reply
Re: internal server error when upload.tar file HD In reply to
I have no idea what you are talking about but you need to upload plugins in BINARY to your UNINSTALLED directory and then install the plugin from the admin area......or install the plugins listed on GT's server which is done automatically.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I mean this:

Go Yo Plugins.
Go To Plugin Dowenload from Plugin Tools

Choose Install from File,
you can pick a plugin from local hard disk and press install.
Now I get an internal server error, that's what I mean

An other problem is that I get perl ccheck errors.
it asked for a file in tmp directory but this one is empty.


Quote Reply
Re: internal server error when upload.tar file HD In reply to
Well in your earlier post you mentioned that you were moving Manager.pm.......why were you doing that?......You don't need to move files individually...

If you want to upload a plugin from your HD then upload the tar not individual files.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I know and I do upload.tar files
and it gives the error.
the whole plugin system does not work, only download from GT works, I really get sick of that!

The reasen to upload Manager.pm individualy was only a check.

Quote Reply
Re: internal server error when upload.tar file HD In reply to
Well it must be something you've done because the plugin system works for everyone else I think.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I did not do anything strange
I test the plugin system by installing another copy of links-SQL on the server, and it have the same problem.
the internal fileman have the same problem, but an external fileman (fileman.cgi) works fine.
And I get a perl error with perl check and plugin wizard.
Could it be a server problem????
Here is the system information:

System Information
======================================
Perl Version: 5.00404
Links SQL Version: 2.0.2
Persistant Env: mod_perl (0) SpeedyCGI (0) Config (0)
@INC =
/home/www/ridesworld/cgi-bin/meo/admin
/usr/lib/perl5/i386-linux/5.00404
/usr/lib/perl5
/usr/lib/perl5/site_perl/i386-linux
/usr/lib/perl5/site_perl
.

I really don't know what I do wrong.


Quote Reply
Re: internal server error when upload.tar file HD In reply to
You have to be doing something wrong, and it sounds like most likely it has to do with the ASCII/Binary conversion. All .tar files have to be transported _all_the_time_ as Binary. The .pm files have to be uploaded as ASCII, although transport as binary really won't hurt them, it will just confuse the FTP program.

I upload .tar files to my Plugins/Uninstalled directory all the time, without the problem. As long as the file is transferred in binary, the permissions are 777 and the name of the .tar file matches the .pm file, things work fine.

I've had no problems with this on a half dozen sites for the past 3 or 4 releases.

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: internal server error when upload.tar file HD In reply to
I know what you mean, .tar files should always be uploaded binairy, and i do this when i upload it with a standard ftp program, like wincommander/WSFTP/CuteFTP.
but you can't set this in the plugin tools,ypu can only pick a file with the <input type="file" name="file">
tag and upload it.
how can i set upload in binairy here??????

Quote Reply
Re: internal server error when upload.tar file HD In reply to
You don't set it to binary...you don't have to alter anything - just choose the file and press upload.

It sounds like you have been changing code to try and fix the problem and have accidentally done something wrong which has probably added to the problem.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: internal server error when upload.tar file HD In reply to
hello PaulWilson

I find the problem, and it's very strange.
delete the tmp folder, if you do that, everything works fine. Now I can upload/download/install/remove and more.

Quote Reply
Re: internal server error when upload.tar file HD In reply to
Hi,

Do you remember what the permissions were on the tmp folder? Was it 777?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: internal server error when upload.tar file HD In reply to
yes they are 777