Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Installed, But getting error!

(Page 1 of 2)
> >
Quote Reply
Installed, But getting error!
Hi All,

Ive uploaded the Alpha4 and have inserted the relevant sql information in setup.cgi but I get the following errors

Code:
Error: Links::Config (22066): Unable to save config file. Reason: Permission Denied
Stack Trace
======================================
Links (22066): Links::environment called at Links.pm line 375.Links (22066): Links::fatal called at
Links/Config.pm line 63.Links (22066): Links::Config::save called at /home/think35/cgi-
in/admin/setup.cgi line 254.Links (22066): main::init_setup called at /home/think35/cgi-
in/admin/setup.cgi line 43.Links (22066): main::main called at /home/think35/cgi-
in/admin/setup.cgi line 20.

I have set permissions on all directories and .pm .cgi scripts but to no avail. What am i missing here.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
First,

The Alpha5 is out, and that is the one you should be using.

Second, you need to set the permissions on the Links/Config.pm file to 777 since the server needs to write to the file.

You should also set the defs, backup and templates files to chmod -R 777 so that the program can write to those _directories_ _and_ _files_ as it needs to.



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Installed, But getting error! In reply to
Sorry Pugdog,

I meant Alpha5, I will try the Permissions now and get back.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
Hi Pugdog,

Thanks for the advice it worked a treat, Im up and running, but when i try and view anthing from the database i get the following.

Code:
Links (22264): Links::environment called at Links.pm line 375.Links (22264): Links::fatal called at
GT/Base.pm line 261.Links (22264): GT::Base::error_handler called at Links/Link.pm line 310.Links
22264): Links::Link::get_categories called at Links/Link.pm line 482.Links (22264):
Links::Link::HTML::disp_categories called at Links/Link.pm line 365.Links (22264):
Links::Link::HTML::display called at GT/SQL/Admin.pm line 204.Links (22264):
GT::SQL::Admin::search_results called at GT/SQL/Admin.pm line 122.Links (22264):
GT::SQL::Admin::process called at /home/think35/cgi-bin/admin/db.cgi line 39.Links (22264):
main::main called at /home/think35/cgi-bin/admin/db.cgi line 22.
This is what i receive when i try to view all links by ID

I get different errors if i try and validate etc.

PS viewing categories is working??

IVE JUST NOTICED THIS?Error: Can't locate MIME/Base64.pm What is it do you know?

Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
>> IVE JUST NOTICED THIS?Error: Can't locate MIME/Base64.pm What is it do you know?

This is MIME handler, specifically looking for the base64 handler. Usually that's something the server and browser work out on file transmission protocols. I've never hit that error.

Sounds like you've got some configurations files mixed up somewhere. I wonder if perl is using that to encrypt passwords or something?? Don't have a clue, really.

Alex is going to have to handle this one <G>.... that's nested waaaay too deep for me, I've barely scratched the surface of this new version yet.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Installed, But getting error! In reply to
Very similarly I am getting the following while running setup for Alpha5.

Error: GT::SQL::Creator (42677): Circular reference detected in the foreign key schema. at Links/SQL.pm line 127.

Stack Trace
======================================
Links (42677): Links::environment called at Links.pm line 375.
Links (42677): Links::fatal called at GT/Base.pm line 261.
Links (42677): GT::Base::error_handler called at GT/Base.pm line 214.
Links (42677): GT::Base::error called at GT/SQL/Table.pm line 1272.
Links (42677): GT::SQL::Table::_circularity_check called at GT/SQL/Table.pm line 1284.
Links (42677): GT::SQL::Table::_circularity_check called at GT/SQL/Table.pm line 600.
Links (42677): GT::SQL::Table::check_schema called at GT/SQL/Creator.pm line 69.
Links (42677): GT::SQL::Creator::create called at Links/SQL.pm line 127.
Links (42677): Links::SQL::tables called at /sites/http/nextgen.ionus.com/docs/cgi/lsql/admin/setup.cgi line 248.
Links (42677): main::init_setup called at /sites/http/nextgen.ionus.com/docs/cgi/lsql/admin/setup.cgi line 43.
Links (42677): main::main called at /sites/http/nextgen.ionus.com/docs/cgi/lsql/admin/setup.cgi line 20.

Wil Hatfield
-ionUS.com
whatfield@ionus.com

Quote Reply
Re: Installed, But getting error! In reply to
Thanks, I've fixed this. The problem is you don't have Mime::Base64 installed, and the module is throwing an error (when it should just be switching silently to a perl version).

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Installed, But getting error! In reply to
This is a very strange one, I'm not sure how you would get this and not anyone else. Have you changed any of the files? Are you starting with an empty database?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Installed, But getting error! In reply to
Hi Alex,

So how do we overcome this? in this version, or do we have to wait for the next release?



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
Easy way is to install Mime::Base64. =) Otherwise you need to edit GT/Mail/Encoder.pm and GT/Mail/Decoder.pm and replace:

Code:
# If MIME::Base64 is installed use it
eval {
require MIME::Base64;
import MIME::Base64;
1;
} or *decode_base64 = \&old_decode_base64;
with:

Code:
# If MIME::Base64 is installed use it
eval {
local $SIG{__DIE__};
require MIME::Base64;
import MIME::Base64;
1;
} or *decode_base64 = \&old_decode_base64;
Let me know if that fixes it..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Installed, But getting error! In reply to
HI Alex,

That seems to do the trick for things like verifying but displaying links now brings up this error

Code:
Error: Can't call method "fetchrow_array" on an undefined value at Links/Link.pm line 310.

Stack Trace
======================================
Links (27817): Links::environment called at Links.pm line 375.
Links(27817): Links::fatal called at GT/Base.pm line 261.
Links (27817): GT::Base::error_handler called at Links/Link.pm line 310.
Links (27817): Links::Link::get_categories called at Links/Link.pm line 482.Links (27817): Links::Link::HTML::disp_categories called at Links/Link.pm line 365.Links (27817): Links::Link::HTML::display called at GT/SQL/Admin.pm line 204.
Links (27817): GT::SQL::Admin::search_results called at GT/SQL/Admin.pm line 122.
Links (27817): GT::SQL::Admin::process called at /home/think35/cgi-bin/admin/db.cgi line 39.
Links (27817): main::main called at /home/think35/cgi-bin/admin/db.cgi line 22.
I also get an error saying

Code:
Error: Can't call method "fetchrow_hashref" on an undefined value at Links/Tools.pm line 493.
When trying to validate.


Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
In doing some unrelated things, I found that the libwww package requires the following modules:

Digest::MD5
HTML::Parser
MIME::Base64
URI

Which is why most sites have those installed. Often to use the FTP portion of libwww the rest of the bundle is installed as well.

In case you wonder what libwww is:

In Reply To:
Libwww is a highly modular, general-purpose client side Web API written in C for Unix and Windows (Win32). It's well suited for both small and large applications, like browser/editors, robots, batch tools, etc. Pluggable modules provided with libwww include complete HTTP/1.1 (with caching, pipelining, PUT, POST, Digest Authentication, deflate, etc), MySQL logging, FTP, HTML/4, XML (expat), RDF (SiRPAC), and much more. The purpose of libwww is to serve as a testbed for protocol experiments.
And I think I installed back in the Links 2.0 days to use FTP to grab files, and then to grab the ODP file to my server.


PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Installed, But getting error! In reply to
Hi Pugdog,

So installing the Libwww should solve my problems? well most of them, i still havnt sorted out the fetchrow bit when trying to view links.

Ive searched perl and cpan but cant find this module do you know where i can find it and where on my server i should unpack and tar it?

Your help is much appreciated.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
Alex,

I got it finally. Seems during my first setup attempt that a .def file got corrupt somehow. I deleted the .defs and started from scratch and all is fine. With the exception of not having any data. Can't wait for that conversion/import script to surface. (-8 hint hint

Wil

Quote Reply
Re: Installed, But getting error! In reply to
If you have perl fully installed, try:

perl -MCPAN -e shell


then

i /libwww/

And something like

install Bundle::LWP


This may be a chicken and the egg thing, since LWP is used to fetch things from CPAN, but it might use a fall-back module to grab this one.

Try that.



PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Installed, But getting error! In reply to
Hi Pugdog,

I've updated the server with all sorts of modules including the new version of perl 5.06

Now when i go the either admin or setup.cgi im getting a server 500 error.

All the other sites on the server are running scripts, Including Links V2 and SQL v1.1,

There is a link here to a server script which will show you the modules installed, can you look at the installs and see what is missing for me.

REMOVED FOR SECURITY!!!

Thanks in advance.



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
with Links, 9 times out of 10, during coding, when I get a 500 server error, it was because I either sent 2 headers, or none.

When you say "other sites" are running, do you mean other of your sites, or other people?

Did you make sure the permissions on all the files were correct?

What does the server log say?

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Installed, But getting error! In reply to
Hi Pugdog,

It's one of my servers, and all the sites are either mine or a friends.

The script was working until i made the upgrade, maybe i should uninstall it all and then re-install. Another question, How do you un-install all the modules, is ther a script for this?



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
I had to reinstall, DBI module,

I tyhen entered the SQL table information in the setup window, and was then prompted to change permissions on the path to the defs directory, i did this and now im getting the dreded 500 error again,

Im sure its just a module thing, ALEX/pugdog/eliot/ANYONE can you have a look at the link i supplied above and let me know if im missing any vital or advisable modules that i need to run the new version of SQL

Thanks in advance



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
Right,

Im getting somewhere.

I dont have the DBD::mysql and Bundle::DBD::mysql files installed but when i try i get the following error anyway round this?

Code:
Is already unwrapped into directory /root/.cpan/build/Msql-Mysql-modules-1.2215
DBI is up to date.
Data::ShowTable is up to date.
Running install for module Mysql
Running make for J/JW/JWIED/Msql-Mysql-modules-1.2215.tar.gz
Is already unwrapped into directory /root/.cpan/build/Msql-Mysql-modules-1.2215
Makefile.PL returned status 512
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Running install for module DBD::mysql
Running make for J/JW/JWIED/Msql-Mysql-modules-1.2215.tar.gz
Is already unwrapped into directory /root/.cpan/build/Msql-Mysql-modules-1.2215
Makefile.PL returned status 512
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
Bundle summary: The following items in bundle Bundle::DBD::mysql had
installation problems:
Mysql DBD::mysql
AAAHHH!!!

Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
Are you running the make as 'root' ??

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Installed, But getting error! In reply to
Hi Pugdog,

Yes they are compiled from "root"

Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
It looks like DBD::mysql isn't installed. You'll have to do it manually. As root:

cd /root/.cpan/build/Msql-Mysql-modules-1.2215
perl Makefile.PL
make
make test
make install

and if it fails in one of those steps, post what failed and what the error message was.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Installed, But getting error! In reply to
Hi Alex.

This is what im getting

Code:
[root@ns think35]# cd /root/.cpan/build/Msql-Mysql-modules-1.2215
[root@ns Msql-Mysql-modules-1.2215]# perl Makefile.PL
Which drivers do you want to install?

1) MySQL only
2) mSQL only (either of mSQL 1 or mSQL 2)
3) MySQL and mSQL (either of mSQL 1 or mSQL 2)

4) mSQL 1 and mSQL 2
5) MySQL, mSQL 1 and mSQL 2

Enter the appropriate number: [3]


Do you want to install the MysqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned
about compatibility to existing applications! [n]


Do you want to install the MsqlPerl emulation? You might keep your old
Mysql module (to be distinguished from DBD::mysql!) if you are concerned
about compatibility to existing applications! [n]
Where is your mSQL installed? Please tell me the directory that
contains the subdir 'include'. [/usr/local/Hughes] /usr
Cannot find include/msql.h in /usr.
I even changed this to just /usr where it resides but got the same error



Regards

MDJ1
http://www.isee-multimedia.co.uk
Quote Reply
Re: Installed, But getting error! In reply to
In Reply To:
Where is your mSQL installed? Please tell me the directory thatcontains the subdir 'include'. [/usr/local/Hughes] /usrCannot find include/msql.h in /usr.
Do you use mSQL? If so, it needs the path to where you install msql (note: not mysql). The path you supplied '/usr' was wrong. If you don't use mSQL, make sure you select 1 to the first question.

Hope that helps,

Alex

--
Gossamer Threads Inc.
> >