Vagrant share: https not working

201 views
Skip to first unread message

Marcelo Villela Gusmão

unread,
Jul 27, 2016, 8:00:05 AM7/27/16
to Vagrant

When I run vagrant share --https 443, http version works fine.


But when I try to access https version, a blank screen appears.


Header return an 500 Internal Server Error

Alvaro Miranda Aguilera

unread,
Jul 27, 2016, 9:40:35 AM7/27/16
to vagra...@googlegroups.com
Hello,

Can you share output log from vagrant share and Vagrant file?

From guest, share also  netstat -anp (assuming linux)

Feel free to remove anything you wont like to share over the email.

Thanks
Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c05e8d7c-46c6-43b0-a7d6-b8f8983c14df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcelo Villela Gusmão

unread,
Jul 27, 2016, 9:48:53 AM7/27/16
to Vagrant
Hello Alvaro

Here is my Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

    config.vm.box = "scotch/box"
    config.vm.network "private_network", ip: "xxx.xxx.xx.xx"
    config.vm.hostname = "scotchbox"
    config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
    
    # Optional NFS. Make sure to remove other synced_folder line too
    #config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }

end

And here is vagrant share output log

==> default: Detecting network information for machine...
    default: Local machine address: xxx.xxx.xx.xx
    default: Local HTTP port: 80
    default: Local HTTPS port: 443
==> default: Checking authentication and authorization...
==> default: Creating Vagrant Share session...
    default: Share will be at: shocking-sheep-3356
==> default: Your Vagrant Share is running! Name: shocking-sheep-3356

This help?

Alvaro Miranda Aguilera

unread,
Jul 27, 2016, 10:25:58 AM7/27/16
to vagra...@googlegroups.com
Hi

from guest:

netstat -anp | grep -i listen

Thanks
Alvaro

Marcelo Villela Gusmão

unread,
Jul 27, 2016, 10:32:51 AM7/27/16
to Vagrant
OK, here is the output. I hope doing correct:

vagrant@scotchbox:~$ netstat -anp | grep -i listen
(No info could be read for "-p": geteuid()=1000 but you should be root.)
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:11300         0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN      -
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:49325           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      -
tcp6       0      0 :::22                   :::*                    LISTEN      -
tcp6       0      0 :::46650                :::*                    LISTEN      -
tcp6       0      0 :::6379                 :::*                    LISTEN      -
tcp6       0      0 :::111                  :::*                    LISTEN      -
tcp6       0      0 :::80                   :::*                    LISTEN      -
unix  2      [ ACC ]     STREAM     LISTENING     7855     -                   /tmp/mongodb-27017.sock
unix  2      [ ACC ]     STREAM     LISTENING     9253     -                   /var/run/php5-fpm.sock
unix  2      [ ACC ]     STREAM     LISTENING     7983     -                   /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     9281     -                   /var/run/postgresql/.s.PGSQL.5432
unix  2      [ ACC ]     STREAM     LISTENING     6978     -                   @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     7294     -                   /run/rpcbind.sock
unix  2      [ ACC ]     STREAM     LISTENING     8839     -                   /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     SEQPACKET  LISTENING     1947     -                   /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     9169     -                   /var/run/acpid.socket

Alvaro Miranda Aguilera

unread,
Jul 27, 2016, 10:44:22 AM7/27/16
to vagra...@googlegroups.com
Hello,

http port is 80, https is 443

as you can see there is nothing on 443.

so you need to check how to enable ssl

Hope this helps

Alvaro

Marcelo Villela Gusmão

unread,
Jul 27, 2016, 10:45:50 AM7/27/16
to Vagrant
How can I do that?

I need to install a SSL certificate in my local Vagrant?

Alvaro Miranda Aguilera

unread,
Jul 27, 2016, 11:06:50 AM7/27/16
to vagra...@googlegroups.com
Hello, 

that is more an OS question than vagrant.

Not sure what OS nor web server you are using. Buts plenty of information on blogs for all the combinations.

If you share OS and web server, maybe someone can help.

Alvaro

Marcelo Villela Gusmão

unread,
Jul 27, 2016, 11:41:29 AM7/27/16
to Vagrant
Thanks for the help Alvaro.

For this project, I'm using ubuntu/apache.
Reply all
Reply to author
Forward
0 new messages