Hi,

I'm using Vagrant to create Ubuntu 14.04 virtual server. I use 
setup-web2py-ubuntu.sh 
script in provision phase but it doesn't work out of the box with Vagrant. If 
I ssh to virtual server and run the script, everything works. But in "creating 
a self signed certificate" phase script asks some information about 
country, email etc. If I run the script through vagrant provision, then 
those are not asked but left empty instead. I guess that is the reason why 
script fails and gives me an error:

==> default: You are about to be asked to enter information that will be 
incorporated
==> default: into your certificate request.
==> default: What you are about to enter is what is called a Distinguished 
Name or a DN.
==> default: There are quite a few fields but you can leave some blank
==> default: For some fields there will be a default value,
==> default: If you enter '.', the field will be left blank.
==> default: -----
==> default: Country Name (2 letter code) [AU]:
==> default: problems making Certificate Request
==> default: unable to load certificate
==> default: 139944983766688:error:0906D06C:PEM routines:PEM_read_bio:no 
start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE
==> default: rewriting your apache config file to use mod_wsgi
==> default: =================================================
==> default: Enabling site default.
==> default: To activate the new configuration, you need to run:
==> default:   service apache2 reload
==> default: restarting apache
==> default: ================
==> default:  * Restarting web server apache2
==> default:    ...fail!
==> default:  * The apache2 configtest failed.
==> default: Output of config test was:
==> default: AH00526: Syntax error on line 27 of 
/etc/apache2/sites-enabled/default.conf:
==> default: SSLCertificateFile: file '/etc/apache2/ssl/self_signed.cert' 
does not exist or is empty
==> default: Action 'configtest' failed.
==> default: The Apache error log may have more information.
==> default: admin password:
==> default: Traceback (most recent call last):
==> default:   File "<string>", line 1, in <module>
==> default: EOFError
==> default: :
==> default: EOF when reading a line
==> default: done!

How I could fix that problem? I'm not too familiar with bash scripting and 
just started to learn Vagrant so I'm having problems to figure out how to 
proceed.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to