Error keeps happening in log file And I dont know why?

Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿
返信数: 21

I'm using moodle 2.2.1 from error_log

I donr have mod_python in my apache config


(process:27075): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied
[Mon Jul 30 09:21:03 2012] [notice] caught SIGTERM, shutting down
[Mon Jul 30 09:21:04 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jul 30 09:21:04 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Jul 30 09:21:04 2012] [notice] Digest: done
[Mon Jul 30 09:21:04 2012] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon Jul 30 09:21:04 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

(process:27233): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied

(process:27222): libgnomevfs-WARNING **: Unable to create ~/.gnome2 directory: Permission denied
[Mon Jul 30 09:27:34 2012] [error] [client 127.0.0.1] File does not exist: /usr/moodle/moodle_data

Any direction of where to start to fix this would be greatly appreicated.

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Howard Miller の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Why do you think that this has anything to do with Moodle?

I would do a Google search on "Unable to create ~/.gnome2" - there seems to be quite a bit of informatiom/speculation.
Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Guillermo Madero の投稿

The problem seems to come from the last line:

[Mon Jul 30 09:27:34 2012] [error] [client 127.0.0.1] File does not exist: /usr/moodle/moodle_data

Guillermo Madero への返信

Re: Error keeps happening in log file And I dont know why?

- Howard Miller の投稿
画像 Core developers 画像 Documentation writers 画像 Particularly helpful Moodlers 画像 Peer reviewers 画像 Plugin developers
Well spotted... I didn't read that far. I would suggest that there's probably two problems here then!

Well... make sure your config.php contents match reality for a start!
Howard Miller への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

the funny thing is my config.php is poing to the correct location of my moodle_data folder?

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Ken Task の投稿
画像 Particularly helpful Moodlers

CentOS ... ok ...

what are the owner/group/permission settings on every folder/subdirectory along the path to the moodledata folder as well as the moodledata folder.

On 'typical' installs of a RedHat flavored server (CentOS), web server (httpd) runs under user 'apache' and group 'apache', web root is /var/www/  Document root is /var/www/html/

Person who installs Moodle could set up the data folder where ever they desire as long as Apache knows about it AND ownership and permissions will allow.

Wonder if you might have been reading a how to install that was meant for Ubuntu users?  (happens, done so myself). ;)

'spirit of sharing', Ken

 

Ken Task への返信

Re: Error keeps happening in log file And I dont know why?

- Ken Task の投稿
画像 Particularly helpful Moodlers

Forgot to mention ... if the drive has been partitioned and the /usr partition is the largest of all partitions, then that's a good reason to put moodledata folder there.

A 'df' (disk free) will display your drive setup and would explain the location of the data folder.

'spirit of sharing', Ken

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Ken Task の投稿
画像 Particularly helpful Moodlers

libgnomevfs = GNome virtual file system.  The ~ is a replacement for the logged on user (path it user files).  Are you logged on as root user using browser and accessing the Moodle via a localhost (127.0.0.1)?

Googling for that error renders several hits and many are NOT Moodle but other apps.

Here's one site that offers a fix:

https://bbs.archlinux.org/viewtopic.php?id=50958

Notice it is NOT anywhere related to Moodle.

As a matter of server security, years ago re-call that 'surfing the net' with a browser from the server was not a good (safe) practice.  Bet one doesn't get anything like that in logs from work stations that are hitting Moodle's front door ... ie, the URL to the Moodle.

That aside ... see the data folder is installed in /usr/ so must be Ubuntu and must have been installed with the infamous apt-get from Ubuntu repositories.  So that's also different than most 'standard' installs and directions given on Moodle.org for installing.  Thus also might be adding to errors in logs.  What are permissions on the moodle/moodle_data folder?  To be usable by Apache, don't they have to be owned by www-data and writable by www-data?

So there are some unusual things about the install/situation and appear to be pre-determined preferences ... by OS not the user.

So maybe someone who runs Ubuntu, installed Moodle via apt-get, surfs the net with the browser from the server desktop, can give you a hand.  Have you tried Ubuntu forums?

'spirit of sharing', Ken

Ken Task への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

thank you ken for your post i looked at the link you provided and my root user's home is pointed to the /root folder?

I'm using CentOS and not Ubuntu

I did use the broswer to seach for this error?

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- AL Rachels の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers

Mr. Marc,

Have you checked to make sure the Moodle configuration file for Apache is there? For Centos it should be in /etc/httpd/conf.d/ and named moodle.conf or whatever matches your installation name for Moodle. (I run three versions of Moodle on my server so I have a moodle1919.conf, moodle23dev.conf, and moodle23.conf in my conf.d folder.)

 If you let Centos do the install the moodle.conf file will be there and probably setup correctly. If you installed Moodle yourself, then the conf file is probably missing and in my experience, Moodle will not work correctly until it is.  In that case, you will have to add the moodle.conf file yourself and then restart the httpd deamon for it to be used by Apache.

Hope this helps,

AL

AL Rachels への返信

Re: Error keeps happening in log file And I dont know why?

- Ken Task の投稿
画像 Particularly helpful Moodlers

Pardon for 'side jacking' ... but ...

"If you let Centos do the install the moodle.conf file will be there and probably setup correctly"

Been running CentOS for years now and don't think I've ever found moodle in CentOS repositories.  Is it now available?  If so, where?

Just discovered the reason for /usr/moodle and /usr/moodle/moodledata …

http://docs.moodle.org/23/en/RedHat_Linux_installation

Note : These instructions apply to RedHat version 8. They have also been found to work for RedHat 9.0 and for Fedora Core 1 and 2. Fedora Core 3 requires the php-gd package in addition to php. I see no reason why they should not work for later versions. In addition, later distributions of Fedora (after 7) contain a moodle yum package. Installation is as easy as yum install moodle.

Hmmmmm … so folks running CentOS have to use a Fedora repo (which is not default) to acquire Moodle via yum.  Wonder what version of Moodle?  And wonder how dangereous that is mixing too many repos of 'like flavor'.  That has the makings of whacking one's self, me thinks!

One of the reasons folks switch from Fedora to CentOS was the issue of long term support.  Fedora (any version), if I'm not mistaken, has a 'shelf life' of 2 years?  This to mean, after two years, no more updates.
CentOS (based upon RH Enterprise) has support for version 5 until 2014 and version 6 longer.

So please enlighten! ;)

'spirit of sharing', Ken

Ken Task への返信

Re: Error keeps happening in log file And I dont know why?

- AL Rachels の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers

Hi Ken,

I was surprised too to find Moodle in my last two Centos installs. Actually, I first noticed it when it started showing up in the list of files to be updated while running Centos 5.6 last year, I think. I used the Developer/Development install for my last two setups. Can't remember the exact name right now. It almost does a "kitchen sink" install. When you run the gui Add Remove Software and then search for Moodle, it shows up. Right now it is showing Moodle 2.1.7.

AL

AL Rachels への返信

Re: Error keeps happening in log file And I dont know why?

- Ken Task の投稿
画像 Particularly helpful Moodlers

Thanks for sharing!

Had to do an rpm search (not in any 'standard' repo for CentOS) ... Fedora Core repos.  Closely related.  But, think I'll stick to a 'git' method.  Easier updates and upgrades.  But, each to his own! ;)

moodle-2.3.1-1.fc18.noarch.rpm Fedora Rawhide for x86_64 A Course Management System
moodle-2.3.1-1.fc18.noarch.rpm Fedora Rawhide for i386 A Course Management System
moodle-2.2.4-1.fc17.noarch.rpm Fedora 17 updates for x86_64 A Course Management System
moodle-2.2.4-1.fc17.noarch.rpm Fedora 17 updates for i386 A Course Management System
moodle-2.2.2-1.fc17.noarch.rpm Fedora 17 for i386 A Course Management System
moodle-2.2.2-1.fc17.noarch.rpm Fedora 17 for x86_64 A Course Management System
moodle-2.1.7-1.el6.noarch.rpm Extras Packages for Enterprise Linux 6 for ppc64 A Course Management System
moodle-2.1.7-1.el6.noarch.rpm Extras Packages for Enterprise Linux 6 for i386 A Course Management System
moodle-2.1.7-1.el6.noarch.rpm Extras Packages for Enterprise Linux 6 for x86_64

A Course Management System

 

'spirit of sharing', Ken

Ken Task への返信

Re: Error keeps happening in log file And I dont know why?

- Visvanath Ratnaweera の投稿
画像 Particularly helpful Moodlers 画像 Translators
Hi Ken and AL

A Debian package 'moodle' is causing confusion and grief in Debian based distributions, mostly in Ubuntu: See:
- 'Debian based Linux: Ban "apt-get install moodle"!' http://moodle.org/mod/forum/discuss.php?d=196512
- 'Edubuntu Install gone awry' http://moodle.org/mod/forum/discuss.php?d=208870
- 'Installation problems on Ubuntu' http://moodle.org/mod/forum/discuss.php?d=209465

Sad to see the same sickness now creeping into CentOS.
AL Rachels への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

I installed it my self from the download from moodle I dont have a moodle.conf in that directory but do have a httpd.conf.  What is in the moodle.conf file ?

We have never had one that i can see from our other past installs of 1.5, 1.7, 1.9, and now 2.2?

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

Im also getting this error in the httpd error_log file

[Wed Aug 22 09:49:25 2012] [notice] Apache/2.2.3 (CentOS) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 mod_perl/2.0.4 Perl/v5.8.8 configured -- resuming normal operations
[Wed Aug 22 10:32:03 2012] [notice] caught SIGTERM, shutting down
[Wed Aug 22 10:38:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Aug 22 10:38:45 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Aug 22 10:38:45 2012] [notice] Digest: done
[Wed Aug 22 10:38:50 2012] [notice] Apache/2.2.3 (CentOS) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8e-fips-rhel5 mod_perl/2.0.4 Perl/v5.8.8 configured --

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- Visvanath Ratnaweera の投稿
画像 Particularly helpful Moodlers 画像 Translators
Dear Mr. Marc

You say:
> I installed it my self from the download from moodle I dont have a moodle.conf in that directory but do have a httpd.conf. What is in the moodle.conf file ?

If you installed it all yourself, I expect you to know whare what is.

For those who are less adventerous, there is a collection of howtos in Moodle Docs http://docs.moodle.org/22/en/Category:Installation.

> We have never had one that i can see from our other past installs of 1.5, 1.7, 1.9, and now 2.2?

May be those installations were more orthodox.
悲しい
Visvanath Ratnaweera への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

I have a httpd.conf file is the moodle.conf also the same file as that just name differently?

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- AL Rachels の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers

No they are not the same file. httpd.conf is the configuration file for the Apache web server. The configuration information for the Moodle folders can be inside the the httpd.conf but with Centos they have removed them and put them in a separate folder at /etc/httpd/conf.d. The Moodle.conf is strictly for Moodle. Separating the configuration info for programs like Moodle and putting them in conf.d makes it easier to keep track of what configuration settings go with which program. Right now my conf.d folder has files for three different Moodle's, my dns, perl, php, phpMyAdmin, and welcome page.

HTH,

AL

AL Rachels への返信

Re: Error keeps happening in log file And I dont know why?

- Mr. Marc の投稿

Al thank you for your reply.  is there anywhere to see a samaple or explains this file better to understand what it is and how it works?

Mr. Marc への返信

Re: Error keeps happening in log file And I dont know why?

- AL Rachels の投稿
画像 Core developers 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 Testers

Mr. Marc,

Here is one of my moodle configuration files for Apache.  At the top, underlined in red, is the name and where the file is physically located on my Centos server. The other red underlined text shows what would need to be changed to have multiple versions of Moodle on the server at the same time. For instance, I also have Moodle 2.3.1+ running on the same server and those are all moodle23 in the configuration file for it.

HTH,

AL

configuration