Recently built and installed a new cPanel server. Noticed today that there is a directory called "no" under the /home partition...
/home/no
Inside it, is a Metadata file and a sources/ directory.
Inside the sources/ directory is:
authors/
MIRRORED.BY
modules/
Inside authors/ is a 01mailrc.txt file
Inside modules/ are: 01packages.details.txt and 03modlist.data
Doing some research, I found that this is part of the CPAN build and cache directory that is created while cPanel is being installed.
So, I went back to /var/log/cpanel-thread0.log and searched for /home/no
First of all, I'd like to create this directory. Where?
CPAN build and cache directory? [/root/.cpan] no
The path 'no' is not an absolute path. Please specify an absolute path
CPAN build and cache directory? [/home/no]
Looks like the system should have simply sent an ENTER for the default /root/.cpan directory, and instead sent "no" with an ENTER. The next line then stated that 'no' is not an absolute path and recommended /home/no which is where the install then sent ENTER and that appears to be how /home/no got created.
Reading further in the log file, I come across this:
If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.
Your ftp_proxy?
Your http_proxy?
Your no_proxy?
You have no /home/no/sources/MIRRORED.BY
I'm trying to fetch one
LWP not available
CPAN: Net::FTP loaded ok
Fetching with Net::FTP:
ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY
and finally:
System call "/usr/bin/wget -O - "ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/authors/01mailrc.txt.gz" > /home/no/sources/authors/01mailrc.txt"
returned status 1 (wstat 256)
Warning: expected file [/home/no/sources/authors/01mailrc.txt.gz] doesn't exist
Issuing "/usr/bin/ftp -n"
Trying 128.227.176.228...
usage: user username [password] [account]
Local directory now /home/no/sources/authors
Please login with USER and PASS
Please login with USER and PASS
Please login with USER and PASS
Please login with USER and PASS
Please login with USER and PASS
Please login with USER and PASS
Passive mode refused.
Bad luck... Still failed!
Can't access URL ftp://ftp.cise.ufl.edu/pub/mirrors/C...1mailrc.txt.gz.
Please check, if the URLs I found in your configuration file
(ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/) are valid. The urllist can be
edited. E.g. with 'o conf urllist push ftp://myurl/'
Could not fetch authors/01mailrc.txt.gz
LWP not available
Fetching with Net::FTP:
ftp://ftp.cise.ufl.edu/pub/mirrors/C...details.txt.gz
Couldn't cwd pub/mirrors/CPAN/modules at /usr/lib/perl5/5.8.8/CPAN.pm line 2259, <STDIN> line 33.
Trying with "/usr/bin/wget -O -" to get
ftp://ftp.cise.ufl.edu/pub/mirrors/C...details.txt.gz
--2009-12-16 09:36:45-- ftp://ftp.cise.ufl.edu/pub/mirrors/C...details.txt.gz
=> `-'
Resolving ftp.cise.ufl.edu... 128.227.176.227, 128.227.176.228, 128.227.176.226
Connecting to ftp.cise.ufl.edu|128.227.176.227|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/mirrors/CPAN/modules ...
No such directory `pub/mirrors/CPAN/modules'.
System call "/usr/bin/wget -O - "ftp://ftp.cise.ufl.edu/pub/mirrors/CPAN/modules/02packages.details.txt.gz" > /home/no/sources/modules/02packages.details.txt"
Method: System Expect
spawn /scripts/realperlinstaller IO::Tty Expect YAML::Syck
commit: wrote /usr/lib/perl5/5.8.8/CPAN/Config.pm
CPAN: Storable loaded ok
LWP not available
LWP not available
LWP not available
Trying with "/usr/bin/wget -O -" to get
http://mirror.candidhosting.com/pub/...1mailrc.txt.gz
--2009-12-16 09:37:03-- http://mirror.candidhosting.com/pub/...1mailrc.txt.gz
Resolving mirror.candidhosting.com... 66.230.217.253
Connecting to mirror.candidhosting.com|66.230.217.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 163281 (159K) [application/x-gzip]
Saving to: `STDOUT'
2009-12-16 09:37:03 (632 KB/s) - `-' saved [163281/163281]
Going to read /home/.cpan/sources/authors/01mailrc.txt.gz
Trying with "/usr/bin/wget -O -" to get
http://mirror.candidhosting.com/pub/...details.txt.gz
--2009-12-16 09:37:04-- http://mirror.candidhosting.com/pub/...details.txt.gz
Resolving mirror.candidhosting.com... 66.230.217.253
Connecting to mirror.candidhosting.com|66.230.217.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 842704 (823K) [application/x-gzip]
Saving to: `STDOUT'
That explains the 3 files (MIRRORED.BY, 01mailrc.txt and 02packages.details.txt)
Now, finally for my question
Is it ok to remove this no directory from the /home partition? I assume so, but just want to make sure.
Thank You,
Peter Elsner



LinkBack URL
About LinkBacks
Reply With Quote










