Installation

Can't locate Mojolicious/WeBWorK/Controller/Home.pm

Can't locate Mojolicious/WeBWorK/Controller/Home.pm

by Andras Balogh -
Number of replies: 3

I am trying to test internally the installation of  2.19 with Mojolicious App in /opt/webwork

from the terminal window w3m http://127.0.0.1/webwork2/ throw server error.

The log file  /opt/webwork/webwork2/logs/webwork2.log shows

[error] [Jx9Gw0LpnNva] Can't locate Mojolicious/WeBWorK/Controller/Home.pm:   /opt/webwork/pg/lib/Mojolicious/WeBWorK/Controller/Home.pm: Permission denied at (eval 819) line 1.

The directory /opt/webwork/pg/lib/ does not have subdirectory Mojolicious

There is a directory /opt/webwork/webwork2/lib/Mojolicious/WeBWorK, but that directory does not have  Controller/Home.pm

I did find a Home.pm file in subdirectory 
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Home.pm

The beginning of the log file  /opt/webwork/webwork2/logs/webwork2.log shows

WeBWorK server is starting

WeBWorK root directory set to /opt/webwork/webwork2
PG root directory set to /opt/webwork/pg
The webwork url on this site is http://127.0.0.1/webwork2
Listening at "http://*:80"
Manager 124777 started
Worker 124778 started
...
Creating process id file "/run/webwork2/webwork2.pid"



In reply to Andras Balogh

Re: Can't locate Mojolicious/WeBWorK/Controller/Home.pm

by Andras Balogh -

I am still stuck at this point with webwork2 service via hypnotoad not working.

I found two files named Home.pm :

/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Home.pm
/usr/share/perl5/Mojo/Home.pm


In reply to Andras Balogh

Re: Can't locate Mojolicious/WeBWorK/Controller/Home.pm

by Glenn Rice -

The file it is looking for is /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Home.pm.  In /opt/webwork/webwork2/lib/Mojolicious/WeBWorK.pm the WeBWorK::ContentGenerator namespace is added to the list of modules namespaces to use for controller files.

You were testing this before using some directory other /opt/webwork, right?  I suspect you still have some remnant of that setup in your configuration files.  I don't really know what is going wrong though.  This isn't a problem that I have encountered.

In reply to Glenn Rice

Re: Can't locate Mojolicious/WeBWorK/Controller/Home.pm

by Andras Balogh -

Strangely, this might have been the result of a mistyped domain name, although I have other related issues that I will explain in a separate post.