Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 20 - password problem stop installation #76

Open
jmarcr opened this issue Jul 28, 2014 · 2 comments
Open

Fedora 20 - password problem stop installation #76

jmarcr opened this issue Jul 28, 2014 · 2 comments

Comments

@jmarcr
Copy link

jmarcr commented Jul 28, 2014

I am trying to install WebWorK 3.0 on a fedora 20 station with

Apache 2.4.9-2 Perl 5.18.2 MariaDB 5.5.38-3

The installation goes well till the system try to restart Apache. At first apachectl configtest gives the following result:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Subroutine before redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 708.
Subroutine after redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 717.
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is apache
webwork.apache2-config: WeBWorK server groupID is apache
webwork.apache2-config: The webwork url on this site is http://173.34.249.131:8080/webwork2

I realise the site.conf use the file /opt/webwork/webwork2/confsite.conf is in perl and since I have a $ in my passord, I modify the line 153

$database_password = "with$";

to

$database_password = "with$";

Now when I run apachectl configtest I get an OK

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Subroutine before redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 708.
Subroutine after redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm line 717.
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to /opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is apache
webwork.apache2-config: WeBWorK server groupID is apache
webwork.apache2-config: The webwork url on this site is http://173.34.249.131:8080/webwork2
Localize.pm: Full path for the localization directory set to |/opt/webwork/webwork2/lib/WeBWorK/Localize|
Smartmatch is experimental at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 677.
Smartmatch is experimental at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 678.
Smartmatch is experimental at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 679.
Smartmatch is experimental at /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 680.
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://173.34.249.131:8080/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via $WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Syntax OK

When I log to http://173.34.249.131:8080/webwork2 I get a

Warning -- there may be something wrong with this question. Please inform your instructor including the warning messages below.

message. I am not sure if the installation was incomplete. The file webwork3.conf also has the same password but is written in YAML so I don't know if it will be affecte.

I don't mind changing the password, I just would like to know which non-alphanumeric I should avoid.

Thank

I really though I would be able to install WeBWorK in a record time.

@goehle
Copy link
Collaborator

goehle commented Jul 28, 2014

Unfortunately the install script can be a little fragile. Most likely
what happened is the script failed earlier on because of the $ in the
password. That failure cascaded to failures in other parts of the script.
(For example I think the permissions on your directories are not set
correctly.)

I would either run the script again with no (perl) special characters in
the password, or I would repair your existing installation by following the
install guide on the WeBWorK wiki.

Geoff.
On Jul 27, 2014 9:50 PM, "jmarcr" [email protected] wrote:

I am trying to install WebWorK 3.0 on a fedora 20 station with

Apache 2.4.9-2 Perl 5.18.2 MariaDB 5.5.38-3

The installation goes well till the system try to restart Apache. At first
apachectl configtest gives the following result:

shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
Subroutine before redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
line 708.
Subroutine after redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
line 717.
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to
/opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in
webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is apache
webwork.apache2-config: WeBWorK server groupID is apache
webwork.apache2-config: The webwork url on this site is
http://173.34.249.131:8080/webwork2

I realise the site.conf use the file /opt/webwork/webwork2/confsite.conf
is in perl and since I have a $ in my passord, I modify the line 153

$database_password = "with$";

to

$database_password = "with$";

Now when I run apachectl configtest I get an OK

shell-init: error retrieving current directory: getcwd: cannot access
parent directories: No such file or directory
Subroutine before redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
line 708.
Subroutine after redefined at /opt/webwork/webwork2/lib/WeBWorK/Utils.pm
line 717.
webwork.apache2-config: WeBWorK server is starting
webwork.apache2-config: WeBWorK root directory set to
/opt/webwork/webwork2 in webwork2/conf/webwork.apache2-config
webwork.apache2-config: The following locations and urls are set in
webwork2/conf/site.conf
webwork.apache2-config: PG root directory set to /opt/webwork/pg
webwork.apache2-config: WeBWorK server userID is apache
webwork.apache2-config: WeBWorK server groupID is apache
webwork.apache2-config: The webwork url on this site is
http://173.34.249.131:8080/webwork2
Localize.pm: Full path for the localization directory set to
|/opt/webwork/webwork2/lib/WeBWorK/Localize|
Smartmatch is experimental at
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 677.
Smartmatch is experimental at
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 678.
Smartmatch is experimental at
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 679.
Smartmatch is experimental at
/opt/webwork/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm line 680.
WebworkSOAP::WSDL: webwork_directory set to /opt/webwork/webwork2 via
$WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
WebworkSOAP::WSDL: rpc_url set to http://173.34.249.131:8080/webwork2_rpc
WebworkWebservice: webwork_directory set to /opt/webwork/webwork2 via
$WeBWorK::Constants::WEBWORK_DIRECTORY set in webwork.apache2-config
Syntax OK

When I log to http://173.34.249.131:8080/webwork2 I get a

Warning -- there may be something wrong with this question. Please inform
your instructor including the warning messages below.

message. I am not sure if the installation was incomplete. The file
webwork3.conf also has the same password but is written in YAML so I don't
know if it will be affecte.

I don't mind changing the password, I just would like to know which
non-alphanumeric I should avoid.

Thank

I really though I would be able to install WeBWorK in a record time.


Reply to this email directly or view it on GitHub
#76.

@aubreyja
Copy link
Owner

The error

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

seems to me to be a permissions problem. I think that escaping the $ probably fixes the password issue. Do you have the webwork_install.log?

Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants