Picture of Manuel Lienemann
Setting up Adapt in a proxy enviroment
by Manuel Lienemann - Thursday, 8 December 2016, 2:13 PM
 

Hey everyone,

at first I'm sorry for my bad English but I really need your help. I'm trying to install the adapt authoring tool, but I got a lot of problems with our proxys. I was able to solve the proxy issues with Node.js and git. So now I'm able to use this tools/programs without any limitations. So i followed the steps for installing the authoring tool with Vagrant. But after running command "vagrant up" there are a lot of issues like:

  • ==> default: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/n
    /nodejs/nodejs_0.10.25~dfsg2-2ubuntu1_i386.deb Cannot initiate the connection t
    o archive.ubuntu.com:80 (2001:67c:1360:8001::21). - connect (101: Network is unr
    eachable) [IP: 2001:67c:1360:8001::21 80]

  • ==> default: /tmp/vagrant-shell: line 36: npm: command not found
    ==> default: /tmp/vagrant-shell: line 37: npm: command not found
    ==> default: /tmp/vagrant-shell: line 38: npm: command not found
    ==> default: /tmp/vagrant-shell: line 47: npm: command not found
    ==> default: /tmp/vagrant-shell: line 48: node: command not found
    ==> default: /tmp/vagrant-shell: line 58: node: command not found

So I tried to edit the vagrantfile with following lines:

"#Set up Proxy Server
if Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = "http://User:Password@Server:8080 "
config.proxy.https = "http://User:Password@Server:8080 "
config.proxy.no_proxy = "localhost,127.0.0.1"
end"

And yes I used the right "User", "Password", "Server" and Port. I also used this command before:

"vagrant plugin install vagrant-proxyconf"

After this configurations I got following output:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty32' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due

==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default:
==> default: The requested URL returned error: 500
==> default:
==> default: If you want to check for box updates, verify your network connectio
n
==> default: is valid and try again.
==> default: Machine already provisioned. Run `vagrant provision` or use the `--
provision`
==> default: flag to force provisioning. Provisioners marked to run always will
still run.
==> default: Running provisioner: shell...
default: Running: C:/Users/demlien1/AppData/Local/Temp/vagrant-shell20161208
-13252-9hz30b.sh
==> default: /tmp/vagrant-shell: line 6: pm2: command not found
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

 

Is there anything I did wrong? I'm getting sad about not being able to setup this great tool.

Thank you very much and kind regards from Germany :)

Picture of Manuel Lienemann
Re: Setting up Adapt in a proxy enviroment
by Manuel Lienemann - Wednesday, 14 December 2016, 9:13 AM
 

Hey guys,

I worked on this problem for a couple of days and got a "solution". At first I set up all kind of Proxy-Settings:

  • For NPM: npm config set proxy http://username:password@proxy.ac.co:port &
    npm config set https-proxy http://username:password@proxy.ac.co:port
  • For GIT: git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
  • As enviroment variable: set http_proxy=http://username:pass@hostname:port &set https_proxy=https://username:pass@hostname:port

Be aware of the correct syntax with special characters in your username like "@":  set http_proxy=http://"user@name:pass"@hostname:port

After this settings I was able to use the command "vagrant up". But I wasn't able to reach localhost:5000. So I disconnected the networkcable and tried it again. After a few attempts it works. I connected the cable again and create my course with the Authoring Tool. To style my course I will follow this steps: https://github.com/adaptlearning/adapt_authoring/wiki/Modifying-the-Vanilla-Theme

You can download the Vanilla Theme separately if you don't use the Framework. With using the Framework there are some more issues while working in a proxy enviroment. Read this thread to get a workaround. 

I hope I was able to help some people. Let me know If you guys have another solution for working with both the Authoring Tool and the Framework behind proxies.

Thanks and Good Luck