Git Product home page Git Product logo

kong-vagrant's Introduction

This repository is outdated and no longer functional. Vagrant has served us well, but due to more dependencies being added to the Kong eco-system we have found docker based environments easier to work with.

For plugin development please check out Pongo. For Kong development see the Kong repository.

So long, and thanks for all the fish!


Website Documentation Kong Nation

Vagrant is used to create an isolated environment for Kong including PostgreSQL, Cassandra, and Redis.

You can use the vagrant box either as an all-in-one Kong installation for testing purposes, or you can link it up with source code and start developing on Kong or on custom plugins.

Table of contents

WINDOWS USERS: Please check the known issues

IMPORTANT: The Kong admin api is by default only available on localhost, but to be able to access it from the host system, the Vagrant box will listen on all interfaces by default. This might be a security risk in your environment.

Try Kong

If you just want to give Kong a test ride, and you have Vagrant installed, then you can simply clone this vagrant repo, and build the VM.

# clone this repository
$ git clone https://github.com/Kong/kong-vagrant
$ cd kong-vagrant

# build the machine
$ vagrant up

# start Kong, by ssh into the vm
$ vagrant ssh
$ kong migrations bootstrap
# if you are running Kong < 0.15.0, run this instead:
# $ kong start --run-migrations
$ kong start

# alternatively use ssh -c option to start Kong
$ vagrant ssh -c "kong migrations bootstrap && kong start"
# or with Kong < 0.15.0:
# $ vagrant ssh -c "kong start --run-migrations"

Kong is now started and is available on the exposed ports.

To verify Kong is running successfully, execute the following command (from the host machine):

$ curl http://localhost:8001

You should receive a JSON response:

{
  "tagline": "Welcome to kong",
  "version": "x.x.x",
  "hostname": "bionic64",
  "lua_version": "LuaJIT 2.1.0-beta3",
  "plugins": {
    "enabled_in_cluster": {},
    "available_on_server": [
      ...
    ]
  }
}

See the environment variables section below for defaults used and how to modify the settings of the Vagrant machine.

When done you can destroy the virtual machine again:

# delete the virtual machine
$ vagrant destroy

Development environment

Preparing the development environment

Once you have Vagrant installed, follow these steps to set up a development environment for both Kong itself as well as for custom plugins. It will install the development dependencies like the busted test framework.

# clone this repository
$ git clone https://github.com/Kong/kong-vagrant
$ cd kong-vagrant

# clone the Kong repo (inside the vagrant one)
$ git clone https://github.com/Kong/kong

# only if you want to develop a custom plugin, also clone the plugin template
$ git clone https://github.com/Kong/kong-plugin

# build a box with a folder synced to your local Kong and plugin sources
$ vagrant up

# ssh into the Vagrant machine, and setup the dev environment
$ vagrant ssh
$ cd /kong
$ make dev

# only if you want to run the custom plugin, tell Kong to load it
$ export KONG_PLUGINS=bundled,myplugin
# if you are running Kong < 0.14.0, run this instead:
# $ export KONG_CUSTOM_PLUGINS=myplugin

# startup kong: while inside '/kong' call `kong` from the repo as `bin/kong`!
# we will also need to ensure that migrations are up to date
$ cd /kong
$ bin/kong migrations bootstrap
# if you are running Kong < 0.15.0, run this instead of bootstrap:
# $ bin/kong migrations up
$ bin/kong start

This will tell Vagrant to mount your local Kong repository under the guest's /kong folder, and (if you cloned it) the 'kong-plugin' repository under the guest's /kong-plugin folder.

To verify Kong has loaded the plugin successfully, execute the following command from the host machine:

$ curl http://localhost:8001

In the response you get, the plugins list should now contain an entry "myplugin" to indicate the plugin was loaded.

To start using the plugin, execute from the host:

# create an api that simply echoes the request using mockbin, using a
# 'catch-all' setup with the `uris` field set to '/'
# NOTE: for pre-0.10 versions 'uris=' below should be 'request_path='
$ curl -i -X POST \
  --url http://localhost:8001/services/ \
  --data 'name=mockbin' \
  --data 'url=http://mockbin.org/request'

$ curl -i -X POST \
  --url http://localhost:8001/services/mockbin/routes \
  --data 'paths[]=/'

# add the custom plugin, to our new api
$ curl -i -X POST \
  --url http://localhost:8001/services/mockbin/plugins \
  --data 'name=myplugin'

If you are using an older version of Kong follow the instructions below instead:

# create an api that simply echoes the request using mockbin, using a
# 'catch-all' setup with the `uris` field set to '/'
# NOTE: for pre-0.10 versions 'uris=' below should be 'request_path='
$ curl -i -X POST \
  --url http://localhost:8001/apis/ \
  --data 'name=mockbin' \
  --data 'upstream_url=http://mockbin.org/request' \
  --data 'uris=/'

# add the custom plugin, to our new api
$ curl -i -X POST \
  --url http://localhost:8001/apis/mockbin/plugins \
  --data 'name=myplugin'

Check whether it is working by making a request from the host:

$ curl -i http://localhost:8000

The response you get should be an echo (by Mockbin) of the request. But in the response headers the plugin has now inserted a header Bye-World.

Running Kong from the source repo

Because the start and stop scripts are in the repository, you must use those to stop and start Kong. Using the scripts that came with the base version you specified when building the Vagrant box will lead to unpredictable results.

# ssh into the Vagrant machine
$ vagrant ssh

# only if you want to run the custom plugin, tell Kong to load it
$ export KONG_PLUGINS=bundled,myplugin
# if you are running Kong < 0.14.0, run this instead:
# $ export KONG_CUSTOM_PLUGINS=myplugin

# startup kong: while inside '/kong' call `kong` from the repo as `bin/kong`!
$ cd /kong
$ bin/kong migrations bootstrap
# if you are running Kong < 0.15.0, run this instead of bootstrap:
# $ bin/kong migrations up
$ bin/kong start

Testing Kong and custom plugins

To use the test helpers from the Kong repo, you must first setup the development environment as mentioned above.

To run test suites, you should first stop Kong, and clear any environment variables you've set to prevent them from interfering with the tests.

The test environment has the same limitation as running from source in that it must be executed from the Kong source repo at /kong, inside the Vagrant machine.

# ssh into the Vagrant machine
$ vagrant ssh

# enter the repo and start the linter
$ cd /kong
$ make lint

# testing: while inside '/kong' call `busted` from the repo as `bin/busted`!
$ bin/busted

# or for more verbose output do
$ bin/busted -v -o gtest

Note that Kong comes with a special Busted script that runs against the OpenResty environment, instead of regular Busted which runs against Lua(JIT) directly.

To test the plugin specific tests:

# ssh into the Vagrant machine
$ vagrant ssh

# start the linter from the plugin repository
$ cd /kong-plugin
$ luacheck .

# testing: while inside '/kong' call `busted` from the repo as `bin/busted`,
# but specify the plugin testsuite to be executed
$ cd /kong
$ bin/busted /kong-plugin/spec

Log files

To log stuff for debugging during your tests, you need to realize that there are generally 2 processes running when testing:

  1. Test files executed by busted that run your tests
  2. The Kong instance that your tests are running against.

So to debug you can simply use the print function. In the former case the output will be in your terminal from where you executed the tests. In the latter case the output will be in the error.log file, but this file is cleaned automatically in between tests. Because the Kong tests run in the servroot prefix inside the Kong repo you can track them using a tail command.

Inside the virtual machine, the Kong prefix (working directory) will be set to /kong/servroot. You can track the log files (from the host) like this for example:

vagrant ssh -c "tail -F /kong/servroot/logs/error.log"

If you have the Kong source tree available, then /kong will be mounted from the host and the prefix will be on the host in <kong-repo>/servroot (the same location where the tests will also run). In this case you can track the log files directly on the host like this for example:

tail -F <kong-repo>/servroot/logs/error.log"

Development tips and tricks

  • Add export KONG_LOG_LEVEL=debug to your bash profile on the host so it will be automatically set whenever you rebuild the VM (applies to other environment variables as well)

  • To run individual tests use the --tags switch in busted. Define a test with a tag;

    it("will test something #only", function()
      -- test here
    end

    Then execute the test with bin/busted --tags=only

  • Some snippets for debug statements on Kong nation.

  • The VM will have some additional helpful utilities installed:

Utilities and profiling

Vagrant can build the box with a set of additional utilities if requested:

To enable those tools use KONG_UTILITIES=true when building the VM.

Environment variables and configuration

The following environment variables will be copied from the Host system into the virtual machine upon provisioning:

name description
KONG_LOG_LEVEL setting the KONG_LOG_LEVEL variable in the virtual machine
HTTP_PROXY & HTTPS_PROXY Proxy settings to be able to properly build the machine when using a proxy

You can alter the behavior of the provision step by setting the following environment variables:

name description default
KONG_VERSION the Kong version number to download and install at the provision step 3.3.1
KONG_VB_MEM virtual machine memory (RAM) size (in MB) 4096
KONG_CASSANDRA the major Cassandra version to use, either 2 or 3 3, or 2 for Kong versions 0.9.x and older
KONG_PATH the path to mount your local Kong source under the guest's /kong folder ./kong, ../kong, or nothing. In this order.
KONG_PLUGIN_PATH the path to mount your local plugin source under the guest's /kong-plugin folder ./kong-plugin, ../kong-plugin, or nothing. In this order.
KONG_UTILITIES boolean determining whether or not to add the additional utilities undefined
KONG_NGINX_WORKER_PROCESSES the number of CPUs available to the virtual machine (relates to the number of nginx workers) 2

Use them when provisioning, e.g.:

$ KONG_VERSION=0.12.1 vagrant up

The xxx_PATH variables will take the value set, or the defaults, but the defaults will only be taken if they actually exist. As such the defaults allow for 2 file structures, without any configuration.

Structure where everything resides inside the kong-vagrant repo:

-some_dir
  |-kong-vagrant
     |-kong
     |-kong-plugin

or if you prefer all repos on the same level:

-some_dir
  |-kong-vagrant
  |-kong
  |-kong-plugin

Exposed ports

The (non-configurable) exposed ports are;

  • 8000 HTTP Proxy port
  • 8443 HTTPS Proxy port
  • 8001 Admin API
  • 8444 SSL Admin API
  • 9000 TCP Proxy port (both TLS and non-TLS) (only available with Kong >= 0.15.0)
  • 65432 Postgres datastore

These are mapped 1-on-1 between the host and guest.

Known issues

Postgres connection refused

When you get an error that postgres refused the connection, eg.

Error: [postgres error] could not retrieve server_version: connection refused

Then make sure that Postgres was properly started, check it like this:

# ssh into the vm
$ vagrant ssh

$ service --status-all

If it wasn't started, you can do so by executing:

# ssh into the vm
$ vagrant ssh

$ sudo service postgresql start

Windows

When using the Vagrant box on Windows there are some extra items to watch out for:

  1. you cannot run the Vagrant-box inside another VM, so you have to run it on the Windows host.
  2. in combination with the source repositories you might run into issues due to text file incompatibilities. Windows line endings are not supported in unix shell scripts. Use the fix-windows makefile target to fix this.
# ssh into the vm
$ vagrant ssh
$ cd /kong
$ make fix-windows

Incompatible versions error

When Kong starts it can give errors for incompatible versions. This happens for example when dependencies have been updated. Eg. 0.9.2 required Openresty 1.9.15.1, whilst 0.9.5 requires 1.11.2.1.

So please reprovision it and specify the proper version you want to work with (either newer or older, see the defaults above), as in the example below with version 0.9.2;

# clone this repository
$ git clone https://github.com/Kong/kong-vagrant
$ cd kong-vagrant/

# clone the Kong repo and switch explicitly to the 0.9.2 version.
# this will get the proper Kong source code for the version.
$ git clone https://github.com/Kong/kong
$ cd kong
$ git checkout 0.9.2
$ cd ..

# start a box with a folder synced to your local Kong clone, and
# specifically targetting 0.9.2, to get the required binary versions
$ KONG_VERSION=0.9.2 vagrant up

worker_connections are not enough error

When running tests these errors occasionally happen. The underlying reason seems to be that in the VM the connections are not freed up quickly enough. There seem to be 2 workarounds;

  • add more memory to the VM. Recreate the vm with:
KONG_VB_MEM=4096 vagrant up
  • run the tests by explicitly raising the connection limit, by prefixing the resty executable and the new limit -c 65000, for example:
resty -c 65000 bin/busted -v -o gtest

Vagrant error; The box 'ubuntu/bionic64' could not be found

There is a known issue with Vagrant on OS X with an included curl version that fails. See stack overflow for a solution.

Enterprise Support

Support, Demo, Training, API Certifications and Consulting available at https://getkong.org/enterprise.

kong-vagrant's People

Contributors

af-inet avatar bungle avatar chrisst avatar eyolas avatar fpedrini avatar geekysrm avatar gszr avatar hbagdi avatar hishamhm avatar hutchic avatar jnmik avatar jwarwick-r7 avatar keizo042 avatar kikito avatar kinman avatar locao avatar m-wild avatar mashapedeployment avatar nmundar avatar p0pr0ck5 avatar ph4r5h4d avatar sharpedavid avatar silanpa avatar subnetmarco avatar thibaultcha avatar tieske avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kong-vagrant's Issues

Startup process changes in 0.9.x versions

It seems that the newest versions of Kong now starts up in a different way. The command to start the kong service is described as follows:

# start Kong
$ kong start -c kong_DEVELOPMENT.yml

but the kong_DEVELOPMENT.yml is not created now, and may be it's not necessary anymore. As result, Kong does not start.

To start Kong I had to follow these steps:

  1. Copy the file /etc/kong/kong.conf.default to /etc/kong/kong.conf
  2. Edit the /etc/kong/kong.conf file and add the entry database = cassandra
  3. Now start Kong without the -c parameter:
vagrant@precise64:/kong$ kong start 

If you want to configure new plugins, there is a parameter in the kong.conf file called custom_plugins

Got this error when tried to run vagrant up

vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: ../kong/plugin

kong-vagrant tag policy and bintray sunset effect on older tags.

Hello.

We are using this project for developing custom plugins and to ensure that everything works fine.

Currently we still have to maintain a 1.4.3 version (which we are migrating to 2.5.1 this year btw).

My questions are:

  • What is the policy that you follow for tagging kong-vagrant releases? since 2.1.x no more tags have been provided (could it be possible to have a tag per minor release for example? 2.5.x for example.
  • Since bintray sunset (no more bintray downloads are possible) all previous tags that provision.sh rely on bintray urls are no longer valid and not working so the project cannot be used (is it possible to fix, which is guess would be to replace the bintray urls for the new ones wherever they are located? for previous tag that are still supported by your team?)

Thanks a lot!

Tagging kong-vagrant stable versions to avoid breaking changes

Hello,

I am working with a 1.4 version and following the instructions I come up with a problem of a compatiblity between the base Ubuntu 16.04 and Nginx version with GLIBC dependencies.
In ubuntu 16.04, GLIBC last version is 2.23, but the nginx and the kong of the 1.4.3 inside the master kong-vagrant requires GLIBC 2.27.

If you had tag in this project, probably would be easier to keep stable environments for longer time as i understand that there are to many moving pieces here while evolving the platform that might break.

For instance, to solve my issue i basically went to a working git HASH checkout of several months ago.

Thank you!

KONG_VERSION 1.4.3 installation does not work due missing deb package

As per documentation, to use different versions with:
KONG_VERSION=1.4.3 vagrant up --provision

Using 1.4.2 works because this package exists
https://bintray.com/kong/kong-deb/download_file?file_path=kong-1.4.2.bionic.amd64.deb

With this correct message

default: Fetching and installing Kong 1.4.2
default: *************************************************************************
default: https://bintray.com/kong/kong-deb/download_file?file_path=kong-1.4.2.bionic.amd64.deb
default:
default: WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
default: Reading package lists...
default: Building dependency tree...
default:
default: Reading state information...
default: The following NEW packages will be installed:
default: kong
default: 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
default: Need to get 0 B/29.5 MB of archives.
default: After this operation, 91.0 MB of additional disk space will be used.
default: Get:1 /home/vagrant/kong.deb kong amd64 1.4.2 [29.5 MB]

Using 1.4.3 fails because this package does not exists (but the 1.4.3 patch is important due security fixes)
https://bintray.com/kong/kong-deb/download_file?file_path=kong-1.4.3.bionic.amd64.deb

Giving the followiging error with vagrant

default: *************************************************************************
default: Fetching and installing Kong 1.4.3
default: *************************************************************************
default: https://bintray.com/kong/kong-deb/download_file?file_path=kong-1.4.3.bionic.amd64.deb
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.

Could be possible to make this package available? thank you.

Kong fails to start using Vagrant

Summary

When following the quick start guide for Vagrant (https://getkong.org/install/vagrant/), Kong fails to start starting from a fresh state i.e. with no existing VM.

Steps To Reproduce

  1. git clone https://github.com/Mashape/kong-vagrant
  2. cd kong-vagrant/
  3. vagrant up
  4. vagrant ssh -c "kong start"

Note

This also fails when doing vagrant ssh followed by kong start.

Additional Details & Logs

% vagrant ssh -c "kong start"
_____________________________________________________________________
WARNING! Your environment specifies an invalid locale.
 This can affect your user experience significantly, including the
 ability to manage packages. You may install the locales by running:

   sudo apt-get install language-pack-en
     or
   sudo locale-gen en_GB.UTF-8

To see all available language packs, run:
   apt-cache search "^language-pack-[a-z][a-z]$"
To disable this message for all users, run:
   sudo touch /var/lib/cloud/instance/locale-check.skip
_____________________________________________________________________

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "en_GB.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:20: could not find OpenResty 'resty' executable. Kong requires version 1.11.2.1 to 1.11.2.2

  Run with --v (verbose) or --vv (debug) for more details
Connection to 127.0.0.1 closed.

on plugin 'myplugin': myplugin plugin is enabled but not installed

Hi team:
I am using vagrant to write customized plugins.I use the plugin https://github.com/Kong/kong-plugin to play . but when kong start. it failed as "on plugin 'myplugin': myplugin plugin is enabled but not installed;"

2021/09/07 08:54:56 [verbose] stopped services
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:75: /usr/local/share/lua/5.1/kong/cmd/start.lua:64: nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/kong/nginx.conf:6
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:514: error loading plugin schemas: on plugin 'myplugin': myplugin plugin is enabled but not installed;
no plugin found
stack traceback:
[C]: in function 'assert'
/usr/local/share/lua/5.1/kong/init.lua:514: in function 'init'
init_by_lua:3: in main chunk

stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/cmd/start.lua:75: in function 'cmd_exec'
/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:88>
[C]: in function 'xpcall'
/usr/local/share/lua/5.1/kong/cmd/init.lua:88: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:45>
/usr/local/bin/kong:9: in function 'file_gen'
init_worker_by_lua:47: in function <init_worker_by_lua:45>
[C]: in function 'xpcall'

"Try Kong" instructions not working

I've tried https://docs.konghq.com/install/vagrant/ and compared with the "Try Kong" instructions from https://github.com/Kong/kong-vagrant#try-kong and this process doesn't work at all (at least with a Windows host).

It seems that Cassandra, Postgres, and Redis are running, but there's nothing listening on ports 8000, 8002, 8443, 8444:

vagrant@ubuntu-xenial:~$ sudo netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1265/sshd
tcp 0 0 127.0.0.1:7000 0.0.0.0:* LISTEN 2458/java
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 1502/postgres
tcp 0 0 127.0.0.1:34492 0.0.0.0:* LISTEN 2458/java
tcp 0 0 127.0.0.1:7199 0.0.0.0:* LISTEN 2458/java
tcp6 0 0 127.0.0.1:9042 :::* LISTEN 2458/java
tcp6 0 0 :::22 :::* LISTEN 1265/sshd
tcp6 0 0 :::5432 :::* LISTEN 1502/postgres

Authentication failure after postscipt

Hi,

After executing the postsript file, and relaunching the vagrant box, the following warning appears.

==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Authentication failure. Retrying...
    default: Warning: Authentication failure. Retrying...

Still if I hit ctrl+c and execute vagrant ssh , I can successfully connect into the box.

Can't start with kong 0.9.0 (or "next")

After a kong update from 0.8.3 to 0.9.0 (or a fresh install with 0.9.0), the vagrant kong host can't start:

vagrant@precise64:/kong$ kong start --trace
Error:
./kong/cmd/start.lua:15: connection refused
stack traceback:
[C]: in function 'assert'
./kong/cmd/start.lua:15: in function 'cmd_exec'
./kong/cmd/init.lua:81: in function <./kong/cmd/init.lua:81>
[C]: in function 'xpcall'
./kong/cmd/init.lua:81: in function <./kong/cmd/init.lua:42>
/usr/local/bin/kong:11: in function 'file_gen'
init_worker_by_lua:38: in function <init_worker_by_lua:36>
[C]: in function 'pcall'
init_worker_by_lua:45: in function <init_worker_by_lua:43>

sudo make dev failing

I am not able to do sudo make dev as mentioned in the README. It is failing with the error as shown below:-

Missing dependencies for kong:
lapis ~> 1.3.0-1
yaml ~> 1.1.2-1
lrexlib-pcre ~> 2.8.0-1
luasyslog >= 1.0.0-2
luasocket ~> 2.0.2-6
lua_uuid ~> 0.1-4

Using https://luarocks.org/lapis-1.3.0-1.src.rock... switching to 'build' mode
Updating manifest for /usr/local/lib/luarocks/rocks
lapis 1.3.0-1 is now built and installed in /usr/local (license: MIT)

Checking stability of dependencies on the absence of
lapis 1.1.0-1...

Will not remove lapis 1.1.0-1.
Removing it would break dependencies for: 
kong 0.5.2-1

Use --force to force removal (warning: this may break modules).
Failed removing.
Using https://luarocks.org/yaml-1.1.2-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/api.c -o src/api.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/b64.c -o src/b64.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/dumper.c -o src/dumper.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/emitter.c -o src/emitter.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/loader.c -o src/loader.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/lyaml.c -o src/lyaml.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/parser.c -o src/parser.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/reader.c -o src/reader.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/scanner.c -o src/scanner.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/strtod.c -o src/strtod.o -Isrc
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/writer.c -o src/writer.o -Isrc
gcc -shared -o yaml/core.so -L/usr/local/lib src/api.o src/b64.o src/dumper.o src/emitter.o src/loader.o src/lyaml.o src/parser.o src/reader.o src/scanner.o src/strtod.o src/writer.o
Updating manifest for /usr/local/lib/luarocks/rocks
yaml 1.1.2-1 is now built and installed in /usr/local (license: MIT)
Checking stability of dependencies on the absence of
yaml 1.1.1-1...

Will not remove yaml 1.1.1-1.
Removing it would break dependencies for: 
kong 0.5.2-1

Use --force to force removal (warning: this may break modules).
Failed removing.
Using https://luarocks.org/lrexlib-pcre-2.8.0-1.src.rock... switching to 'build' mode

Error: Failed installing dependency: https://luarocks.org/lrexlib-pcre-2.8.0-1.src.rock - Could not find expected file pcre.h, or pcre.h for PCRE -- you may have to install PCRE in your system and/or pass PCRE_DIR or PCRE_INCDIR to the luarocks command. Example: luarocks install lrexlib-pcre PCRE_DIR=/usr/local
make: *** [install] Error 1

After that I installed pcre with the below command:-

sudo apt-get install libpcre3 libpcre3-dev

Now getting the below error:-

Missing dependencies for kong:
lrexlib-pcre ~> 2.8.0-1
luasyslog >= 1.0.0-2
luasocket ~> 2.0.2-6
lua_uuid ~> 0.1-4

Using https://luarocks.org/lrexlib-pcre-2.8.0-1.src.rock... switching to 'build' mode
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/common.c -o src/common.o -DVERSION="2.8.0" -DLUA_COMPAT_5_2 -I/usr/include
gcc -O2 -fPIC -I/usr/local/include/luajit-2.0 -c src/pcre/lpcre.c -o src/pcre/lpcre.o -DVERSION="2.8.0" -DLUA_COMPAT_5_2 -I/usr/include
src/pcre/lpcre.c: In function 'Lpcre_fullinfo':
src/pcre/lpcre.c:372:3: error: 'PCRE_INFO_JIT' undeclared (first use in this function)
src/pcre/lpcre.c:372:3: note: each undeclared identifier is reported only once for each function it appears in
src/pcre/lpcre.c:373:3: error: 'PCRE_INFO_JITSIZE' undeclared (first use in this function)
src/pcre/lpcre.c:380:3: error: 'PCRE_INFO_MAXLOOKBEHIND' undeclared (first use in this function)

Error: Failed installing dependency: https://luarocks.org/lrexlib-pcre-2.8.0-1.src.rock - Build error: Failed compiling object src/pcre/lpcre.o
make: *** [install] Error 1

myplugin tests fail with "[postgres error] ERROR: relation "apis" does not exist"

I'm getting an error when running the tests on myplugin. I haven't changed any code. I simply followed the commands in this repository's README.
These are the commands I'm running to setup the environment on macOS10. The full log is attached here: kong-vagrant-log.txt

git clone https://github.com/Kong/kong-vagrant kong-vagrant-test
cd kong-vagrant-test
git clone https://github.com/Kong/kong
git clone https://github.com/Kong/kong-plugin
vagrant up
vagrant ssh
cd /kong
make dev
export KONG_CUSTOM_PLUGINS=myplugin
bin/kong migrations up
bin/kong start
http localhost:8001
http localhost:8001/apis
bin/kong stop
Kong stopped
vagrant@vagrant-ubuntu-trusty-64:/kong$ bin/busted /kong-plugin/spec

0 successes / 0 failures / 1 error / 0 pending : 0.280653 seconds

Error → /kong-plugin/spec/myplugin/01-access_spec.lua @ 6
Demo-Plugin: myplugin (access) setup
/kong-plugin/spec/myplugin/01-access_spec.lua:7: [postgres error] ERROR: relation "apis" does not exist (13)

I thought it might have something to do with the recent change from apis to services and routes so I also tried an earlier version of Kong using the commands below, but that gave the same error.

git clone https://github.com/Kong/kong-vagrant kong-vagrant-test
cd kong-vagrant-test

git clone https://github.com/Kong/kong
cd kong
git checkout 0.11.1
$ cd ..

$ KONG_VERSION=0.11.1 vagrant up

Make dev fails with latest Kong rockspec (1.1.0) due to dependency on lyaml

Error as follows:

Installing https://luarocks.org/lyaml-6.2.3-1.src.rock

Error: Failed installing dependency: https://luarocks.org/lyaml-6.2.3-1.src.rock - Could not find library file for YAML
  No file libyaml.a in /usr/local/lib
  No file libyaml.a in /usr/local/lib/x86_64-linux-gnu
  No file libyaml.so in /usr/local/lib
  No file libyaml.so in /usr/local/lib/x86_64-linux-gnu
  No file matching libyaml.so.* in /usr/local/lib
  No file matching libyaml.so.* in /usr/local/lib/x86_64-linux-gnu
  No file libyaml.a in /usr/lib
  No file libyaml.a in /usr/lib/x86_64-linux-gnu
  No file libyaml.so in /usr/lib
  No file libyaml.so in /usr/lib/x86_64-linux-gnu
  No file matching libyaml.so.* in /usr/lib
  No file matching libyaml.so.* in /usr/lib/x86_64-linux-gnu
You may have to install YAML in your system and/or pass YAML_DIR or YAML_LIBDIR to the luarocks command.
Example: luarocks install lyaml YAML_DIR=/usr/local

Request path is unknown

HI

I just setup kong on my system in vagrant.

I am trying this

curl -i -X POST \
>   --url http://localhost:8001/apis/ \
>   --data 'name=mockbin' \
>   --data 'upstream_url=http://mockbin.org/request' \
>   --data 'request_path=/'

I am getting error

HTTP/1.1 400 Bad Request
Date: Wed, 08 Mar 2017 12:15:07 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Server: kong/0.9.9

{"request_path":"request_path is an unknown field"}

Any solutions ?

Silent Error

Just followed the steps that you have to use the vagrant file, but every time i run the kong command on terminal nothing happens.

I've made a simple test on version 0.13.0 of vagrant and same.

image

Empty Response:

image

Here you will see version xenial from ubuntu but i've tried even precise, trusty all the same with version 0.13.0.

Thanks.

control the memory of the vagrant machine from env variable

currently the virtual machine RAM is set as '2048'.
for some workstations its to much (slows the workstation), others could give more RAM to virtual machine.

instead of change the value in the Vagrant file, it will be nice to control it from outside.
for example set the RAM as 4G:

KONG_PATH=/path/to//kong VB_MEM=4092 vagrant up

make test-all

After installing the kong-vagrant environment I ran "make dev" and I could start kong successfully.

When running make test-all I get the following error:

make test-all
/usr/bin/env: resty: No such file or directory
make: *** [test-all] Error 127

Any ideas?

`kong migrations bootstrap` fails with `Error: proxy_listen must be of form:...`

Steps to reproduce:

  1. git pull
  2. vagrant up
  3. vagrant ssh
  4. kong migrations bootstrap

The complete error is:

Error: proxy_listen must be of form: [off] | <ip>:<port> [ssl] [http2] [proxy_protocol] [deferred] [bind] [reuseport] [backlog=%d+], [... next entry ...]

I believe that the problem is the transparent part of the proxy_protocol, introduced by provision.sh here:

if [ $KONG_NUM_VERSION -ge 001500 ]; then
  # use Bionic now instead of Trusty
  KONG_DOWNLOAD_URL="https://bintray.com/kong/kong-deb/download_file?file_path=kong-${KONG_VERSION}.bionic.all.deb"

  # Let's enable transparent listening option as well
  KONG_PROXY_LISTEN="0.0.0.0:8000 transparent, 0.0.0.0:8443 transparent ssl"

  # Kong 0.15.0 has a stream module, let's enable that too
  KONG_STREAM_LISTEN="0.0.0.0:9000 transparent"
fi

I believe transparent is not valid in 2.0.x

reuseport: command not found

I'm having trouble running provisioning script. It breaks on setup of KONG_ADMIN_LISTEN var that was recently reworked.

default: /tmp/vagrant-shell: line 73: reuseport: 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.

The problem is that new command was not put into quotes. When in quotes provisioning passes without errors.

Erros running test suite with original source code

Hi,

I've setup the environment as follows:

$ git clone https://github.com/Mashape/kong-vagrant
$ cd kong-vagrant
$ git clone https://github.com/Mashape/kong
$ vagrant up
$ vagrant ssh
$ cd /kong
$ make dev

And then run the test suite:

$ bin/busted

But I get a log of errors. Here is the output:

vagrant@precise64:/kong$ bin/busted
●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌◌●◌◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌◌●◌◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●◌●●●●●●●●●●◌●●●●●●●●●●●●●●●◌●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◼◼●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●◌●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●2017/05/27 14:07:27 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:27 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:34 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:40 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:40 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:40 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:40 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:40 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:47 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:07:57 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:11 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:15 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:15 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:15 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:15 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:15 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:17 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:08:24 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●●●●●●●●●●●2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:03 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●2017/05/27 14:09:07 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:18 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:22 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●2017/05/27 14:09:26 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:39 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:09:49 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:08 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:19 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●2017/05/27 14:10:23 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:23 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:28 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:54 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●●2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●●●2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱2017/05/27 14:10:55 [alert] 27252#0: *2 64 worker_connections are not enough, context: ngx.timer
✱●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●
1760 successes / 2 failures / 78 errors / 20 pending : 1468.811606 seconds

Pending → spec/01-unit/04-utils_spec.lua @ 33
Utils is_valid_uuid() invalidates UUIDs with invalid variants

Pending → spec/01-unit/07-entities_schemas_spec.lua @ 156
Entities Schemas APIs hosts errors rejects if not a table

Pending → spec/01-unit/11-router_spec.lua @ 68
Router new() [errors] enforces apis fields types

Pending → spec/02-integration/01-cmd/02-start_stop_spec.lua @ 22
kong start/stop start/stop gracefully with default conf/prefix

Pending → spec/02-integration/01-cmd/08-restart_spec.lua @ 67
kong restart restarts with default configuration and prefix

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 237
Model (CRUD) with DB: #postgres find_all() retrieve all matching rows

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 247
Model (CRUD) with DB: #postgres find_all() return matching rows bis

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 267
Model (CRUD) with DB: #postgres find_all() return empty table if no row match

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 274
Model (CRUD) with DB: #postgres find_all() handles non-string values

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 237
Model (CRUD) with DB: #cassandra find_all() retrieve all matching rows

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 247
Model (CRUD) with DB: #cassandra find_all() return matching rows bis

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 267
Model (CRUD) with DB: #cassandra find_all() return empty table if no row match

Pending → spec/02-integration/02-dao/03-crud_spec.lua @ 274
Model (CRUD) with DB: #cassandra find_all() handles non-string values

Pending → ...integration/03-admin_api/07-certificates_routes_spec.lua @ 398
Admin API /snis with cassandra /snis/:name PATCH updates a SNI

Pending → ...02-integration/03-admin_api/08-upstreams_routes_spec.lua @ 100
Admin API /upstreams postgres POST creates an upstream without defaults with application/www-form-urlencoded

Pending → ...02-integration/03-admin_api/08-upstreams_routes_spec.lua @ 294
Admin API /upstreams postgres PUT replaces if exists

Pending → ...02-integration/03-admin_api/08-upstreams_routes_spec.lua @ 100
Admin API /upstreams cassandra POST creates an upstream without defaults with application/www-form-urlencoded

Pending → ...02-integration/03-admin_api/08-upstreams_routes_spec.lua @ 294
Admin API /upstreams cassandra PUT replaces if exists

Pending → spec/03-plugins/03-http-log/01-log_spec.lua @ 27
Plugin: http-log (log)

Pending → spec/03-plugins/10-key-auth/02-access_spec.lua @ 203
Plugin: key-auth (access) key in request body multipart/form-data handles duplicated key

Failure → spec/02-integration/05-proxy/05-ssl_spec.lua @ 259
SSL certificates and SNIs invalidations DELETE
spec/02-integration/05-proxy/05-ssl_spec.lua:8: 140322022401696:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:724:


Failure → spec/02-integration/05-proxy/05-ssl_spec.lua @ 293
SSL certificates and SNIs invalidations UPDATE
spec/02-integration/05-proxy/05-ssl_spec.lua:8: 140153334273696:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:724:


Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 309
#ci Plugin: rate-limiting (access) with policy: local With authentication Plugin customized for specific consumer blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 337
#ci Plugin: rate-limiting (access) with policy: local With authentication Plugin customized for specific consumer blocks if the only rate-limiting plugin existing is per consumer and not per API
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 552
#ci Plugin: rate-limiting (access) with policy: local Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 198
#ci Plugin: rate-limiting (access) with policy: cluster Without authentication (IP address) blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 228
#ci Plugin: rate-limiting (access) with policy: cluster Without authentication (IP address) handles multiple limits
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 268
#ci Plugin: rate-limiting (access) with policy: cluster With authentication API-specific plugin blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 309
#ci Plugin: rate-limiting (access) with policy: cluster With authentication Plugin customized for specific consumer blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 337
#ci Plugin: rate-limiting (access) with policy: cluster With authentication Plugin customized for specific consumer blocks if the only rate-limiting plugin existing is per consumer and not per API
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 407
#ci Plugin: rate-limiting (access) with policy: cluster Fault tolerancy does not work if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 434
#ci Plugin: rate-limiting (access) with policy: cluster Fault tolerancy keeps working if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 552
#ci Plugin: rate-limiting (access) with policy: cluster Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 198
#ci Plugin: rate-limiting (access) with policy: redis Without authentication (IP address) blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 228
#ci Plugin: rate-limiting (access) with policy: redis Without authentication (IP address) handles multiple limits
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 268
#ci Plugin: rate-limiting (access) with policy: redis With authentication API-specific plugin blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 309
#ci Plugin: rate-limiting (access) with policy: redis With authentication Plugin customized for specific consumer blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 337
#ci Plugin: rate-limiting (access) with policy: redis With authentication Plugin customized for specific consumer blocks if the only rate-limiting plugin existing is per consumer and not per API
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 494
#ci Plugin: rate-limiting (access) with policy: redis Fault tolerancy does not work if an error occurs
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 507
#ci Plugin: rate-limiting (access) with policy: redis Fault tolerancy keeps working if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/24-rate-limiting/04-access_spec.lua @ 552
#ci Plugin: rate-limiting (access) with policy: redis Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 227
#ci Plugin: response-ratelimiting (access) with policy: local Without authentication (IP address) blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 255
#ci Plugin: response-ratelimiting (access) with policy: local Without authentication (IP address) handles multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 293
#ci Plugin: response-ratelimiting (access) with policy: local With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 324
#ci Plugin: response-ratelimiting (access) with policy: local With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 353
#ci Plugin: response-ratelimiting (access) with policy: local With authentication API-specific plugin blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 387
#ci Plugin: response-ratelimiting (access) with policy: local Upstream usage headers should append the headers with multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 457
#ci Plugin: response-ratelimiting (access) with policy: local should block on first violation
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 684
#ci Plugin: response-ratelimiting (access) with policy: local Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 227
#ci Plugin: response-ratelimiting (access) with policy: cluster Without authentication (IP address) blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 255
#ci Plugin: response-ratelimiting (access) with policy: cluster Without authentication (IP address) handles multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 293
#ci Plugin: response-ratelimiting (access) with policy: cluster With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 324
#ci Plugin: response-ratelimiting (access) with policy: cluster With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 353
#ci Plugin: response-ratelimiting (access) with policy: cluster With authentication API-specific plugin blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 387
#ci Plugin: response-ratelimiting (access) with policy: cluster Upstream usage headers should append the headers with multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 457
#ci Plugin: response-ratelimiting (access) with policy: cluster should block on first violation
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 534
#ci Plugin: response-ratelimiting (access) with policy: cluster Fault tolerancy does not work if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 562
#ci Plugin: response-ratelimiting (access) with policy: cluster Fault tolerancy keeps working if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 684
#ci Plugin: response-ratelimiting (access) with policy: cluster Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 227
#ci Plugin: response-ratelimiting (access) with policy: redis Without authentication (IP address) blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 255
#ci Plugin: response-ratelimiting (access) with policy: redis Without authentication (IP address) handles multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 293
#ci Plugin: response-ratelimiting (access) with policy: redis With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 324
#ci Plugin: response-ratelimiting (access) with policy: redis With authentication API-specific plugin blocks if exceeding limit and a per consumer setting
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 353
#ci Plugin: response-ratelimiting (access) with policy: redis With authentication API-specific plugin blocks if exceeding limit
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 387
#ci Plugin: response-ratelimiting (access) with policy: redis Upstream usage headers should append the headers with multiple limits
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 457
#ci Plugin: response-ratelimiting (access) with policy: redis should block on first violation
./spec/helpers.lua:213: operation now in progress

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 628
#ci Plugin: response-ratelimiting (access) with policy: redis Fault tolerancy does not work if an error occurs
./spec/helpers.lua:213: resource temporarily unavailable

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 594
#ci Plugin: response-ratelimiting (access) with policy: redis Fault tolerancy before_each
.../03-plugins/25-response-rate-limiting/04-access_spec.lua:595: [postgres error] name=already exists with value 'failtest3_com'

Error → .../03-plugins/25-response-rate-limiting/04-access_spec.lua @ 684
#ci Plugin: response-ratelimiting (access) with policy: redis Expirations expires a counter
./spec/helpers.lua:213: operation now in progress

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1390
Plugin: oauth2 (access) OAuth2 Access Token returns an error when only the code is being sent
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1411
Plugin: oauth2 (access) OAuth2 Access Token returns an error when only the code and client_secret are being sent
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1433
Plugin: oauth2 (access) OAuth2 Access Token returns an error when grant_type is not being sent
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1453
Plugin: oauth2 (access) OAuth2 Access Token returns an error with a wrong code
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1474
Plugin: oauth2 (access) OAuth2 Access Token returns success without state
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1494
Plugin: oauth2 (access) OAuth2 Access Token returns success with state
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1515
Plugin: oauth2 (access) OAuth2 Access Token fails when the client used for the code is not the same client used for the token
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1536
Plugin: oauth2 (access) OAuth2 Access Token sets the right upstream headers
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1567
Plugin: oauth2 (access) OAuth2 Access Token fails when an authorization code is used more than once
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1605
Plugin: oauth2 (access) OAuth2 Access Token fails when an authorization code is used by another application
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1627
Plugin: oauth2 (access) OAuth2 Access Token fails when an authorization code is used for another API
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1663
Plugin: oauth2 (access) Making a request works when a correct access_token is being sent in the querystring
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1675
Plugin: oauth2 (access) Making a request does not work when requesting a different API
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1689
Plugin: oauth2 (access) Making a request works when a correct access_token is being sent in a form body
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1705
Plugin: oauth2 (access) Making a request works when a correct access_token is being sent in an authorization header (bearer)
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1718
Plugin: oauth2 (access) Making a request works when a correct access_token is being sent in an authorization header (token)
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1738
Plugin: oauth2 (access) Making a request works with right credentials and anonymous
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1781
Plugin: oauth2 (access) Making a request Global Credentials does not access two different APIs that are not sharing global credentials
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1804
Plugin: oauth2 (access) Making a request Global Credentials does not access two different APIs that are not sharing global credentials 2
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1827
Plugin: oauth2 (access) Making a request Global Credentials access two different APIs that are sharing global credentials
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1894
Plugin: oauth2 (access) Authentication challenge returns 401 Unauthorized when token has expired
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1935
Plugin: oauth2 (access) Refresh Token refreshes an valid access token
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1955
Plugin: oauth2 (access) Refresh Token refreshes an valid access token and checks that it belongs to the application
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 1978
Plugin: oauth2 (access) Refresh Token expires after 5 seconds
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2036
Plugin: oauth2 (access) Hide Credentials does not hide credentials in the body
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2053
Plugin: oauth2 (access) Hide Credentials hides credentials in the body
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2070
Plugin: oauth2 (access) Hide Credentials does not hide credentials in the querystring
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2083
Plugin: oauth2 (access) Hide Credentials hides credentials in the querystring
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2096
Plugin: oauth2 (access) Hide Credentials does not hide credentials in the header
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2110
Plugin: oauth2 (access) Hide Credentials hides credentials in the header
./spec/helpers.lua:213: resource temporarily unavailable

Error → spec/03-plugins/26-oauth2/03-access_spec.lua @ 2124
Plugin: oauth2 (access) Hide Credentials does not abort when the request body is a multipart form upload
./spec/helpers.lua:213: resource temporarily unavailable

vagrant up fails

Error message:
default: chown: invalid user: ‘vagrant’

Work around:
vagrant provision is successful, after manually creating a vagrant user in the VM.

Details:
$ git show | head -3
commit 99a3b9c
Author: Thijs Schreijer [email protected]
Date: Wed Oct 3 11:25:40 2018 +0200

$ vagrant up
==> vagrant: A new version of Vagrant is available: 2.1.5 (installed version: 2.1.4)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

/Users/xxxxx/GIT/kong-vagrant/Vagrantfile:4: warning: already initialized constant VAGRANTFILE_API_VERSION
/Users/xxxxx/GIT/kong-vagrant/Vagrantfile:4: warning: previous definition of VAGRANTFILE_API_VERSION was here
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/xenial64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: A newer version of the box 'ubuntu/xenial64' for provider 'virtualbox' is
==> default: available! You currently have version '20171221.0.0'. The latest is version
==> default: '20181005.0.0'. Run vagrant box update to update.
==> default: Setting the name of the VM: vagrant_kong
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 8000 (guest) => 8000 (host) (adapter 1)
default: 8001 (guest) => 8001 (host) (adapter 1)
default: 8443 (guest) => 8443 (host) (adapter 1)
default: 8444 (guest) => 8444 (host) (adapter 1)
default: 5432 (guest) => 65432 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: ubuntu
default: SSH auth method: password
default: Warning: Connection reset. Retrying...
default: Warning: Authentication failure. Retrying...
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 5.0.40
default: VirtualBox Version: 5.2
==> default: Mounting shared folders...
default: /vagrant => /Users/xxxxx/GIT/kong-vagrant
==> default: Running provisioner: shell...
default: Running: /var/folders/jr/zp6jz87n74vcm6k2ds4gl6lw0000gn/T/vagrant-shell20181010-21061-ga20sq.sh
default: *************************************************************************
root:x:0:0:root:/root:/bin/bash
default: Installing Kong version: 0.14.1
default: *************************************************************************
default: chown: invalid user: ‘vagrant’
The SSH command responded with a non-zero exit status. Vagrant
root:*:17521:0:99999:7:::
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.

I am curious how to recognize the external folder path of customs plugin.

-some_dir
  |-kong-vagrant
     |-kong
     |-kong-plugin

When the directory structure is the same as above,

$ export KONG_PLUGINS=bundled,myplugin

Although it is said to set environment variables,

  • kong
    • host: some_dir/kong-vagrant/kong/kong/plugins/myplugin/
    • guest: /kong/kong/plugins/myplugin/
  • kong-plugin
    • host: some_dir/kong-vagrant/kong-plugin/kong/plugins/myplugin/
    • guest: /kong-plugin/kong/plugins/myplugin/

How to recognize the folder path of customs plugin
located in external folder(kong-plugin/kong/plugins/myplugin/) of kong,
not located in subfolder(kong/kong/plugins/myplugin/) of kong?

beyond HTTP(S)_PROXY

hello, kong project.
Thanks you for the great project.

Problem

provision.sh doesn't take care HTTP_PROXY, HTTPS_PROXY enviroment variable.
so, vagrant up stop after Installing Kong version message inside http proxy.

Proposal

$6 of provison.sh accpets HTTP(S) proxy host.
and provision.sh configure.

invalid parameter "transparent" in nginx-kong.conf

hi, i follow the README instructions and setup a vagrant vm to play with kong. but when i start kong

kong start -vv

it throws errors saying transparent is an invalid parameter.

2019/08/28 11:54:27 [verbose] retrieving database schema state...
2019/08/28 11:54:27 [verbose] schema state retrieved
2019/08/28 11:54:27 [verbose] preparing nginx prefix directory at /kong/servroot
2019/08/28 11:54:27 [verbose] SSL enabled, no custom certificate set: using default certificate
2019/08/28 11:54:27 [verbose] default SSL certificate found at /kong/servroot/ssl/kong-default.crt
2019/08/28 11:54:27 [verbose] Admin SSL enabled, no custom certificate set: using default certificate
2019/08/28 11:54:27 [verbose] admin SSL certificate found at /kong/servroot/ssl/admin-kong-default.crt
2019/08/28 11:54:27 [debug] searching for OpenResty 'nginx' executable
2019/08/28 11:54:27 [debug] /usr/local/openresty/nginx/sbin/nginx -v: 'nginx version: openresty/1.13.6.2'
2019/08/28 11:54:27 [debug] found OpenResty 'nginx' executable at /usr/local/openresty/nginx/sbin/nginx
2019/08/28 11:54:27 [debug] testing nginx configuration: KONG_NGINX_CONF_CHECK=true /usr/local/openresty/nginx/sbin/nginx -t -p /kong/servroot -c nginx.conf
2019/08/28 11:54:27 [verbose] could not start Kong, stopping services
2019/08/28 11:54:27 [verbose] stopped services
Error:
./kong/cmd/start.lua:75: ./kong/cmd/start.lua:37: nginx configuration is invalid (exit code 1):
nginx: [emerg] invalid parameter "transparent" in /kong/servroot/nginx-kong.conf:51
nginx: configuration file /kong/servroot/nginx.conf test failed

stack traceback:
        [C]: in function 'error'
        ./kong/cmd/start.lua:75: in function 'cmd_exec'
        ./kong/cmd/init.lua:87: in function <./kong/cmd/init.lua:87>
        [C]: in function 'xpcall'
        ./kong/cmd/init.lua:87: in function <./kong/cmd/init.lua:44>
        /usr/local/bin/kong:9: in function 'file_gen'
        init_worker_by_lua:49: in function <init_worker_by_lua:47>
        [C]: in function 'xpcall'
        init_worker_by_lua:56: in function <init_worker_by_lua:54>

Because the default openresty version is too high( kong start complain unsupported openresty version, kong itself is checkout to tag v1.2.1) , so i manually installed openresty(version 1.13.6.2) through source.

./configure
make
sudo make install

so summary up:

kong: v1.2.1
openresty: 1.13.6.2
kong-vagrant: master

i found that a env KONG_PROXY_LISTEN is set to vagrant vm. this env gernerates a transparent directive in nginx-kong.conf. is that env necessary?

i am new with nginx/kong. thanks in advance.

vagrant up fails

Hi,

I'm trying to get kong up & running for custom plugin development but am running into the following issue. I've tried killing my repo & reinstalling virtualbox but it seems to die every time at the same place (installing java).

Am I doing something wrong? The only thing I see that stands out is the 'dpkg-preconfigure: unable to re-open stdin: No such file or directory' which apparently is an expected bug in dpkg.

/github/kong-vagrant>$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM: vagrant_kong
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 8000 (guest) => 8000 (host) (adapter 1)
default: 8001 (guest) => 8001 (host) (adapter 1)
default: 8443 (guest) => 8443 (host) (adapter 1)
default: 8444 (guest) => 8444 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.2.0
default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
default: /kong => /Users/chris/github/kong
default: /vagrant => /Users/chris/github/kong-vagrant
==> default: Running provisioner: shell...
default: Running: /var/folders/1w/nv844fcs6p5fsrjr4m1_0r8c0000gn/T/vagrant-shell20170522-3629-fim56d.sh
==> default: Installing Kong version: 0.10.2
==> default: Ign http://us.archive.ubuntu.com precise InRelease
==> default: Get:1 http://us.archive.ubuntu.com precise-updates InRelease [55.7 kB]
==> default: Get:2 http://security.ubuntu.com precise-security InRelease [55.7 kB]
==> default: Get:3 http://us.archive.ubuntu.com precise-backports InRelease [55.7 kB]
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Get:4 http://us.archive.ubuntu.com precise-updates/main Sources [503 kB]
==> default: Get:5 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,837 B]
==> default: Get:6 http://us.archive.ubuntu.com precise-updates/universe Sources [137 kB]
==> default: Get:7 http://us.archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB]
==> default: Get:8 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [741 kB]
==> default: Get:9 http://security.ubuntu.com precise-security/main Sources [150 kB]
==> default: Get:10 http://security.ubuntu.com precise-security/restricted Sources [4,643 B]
==> default: Get:11 http://security.ubuntu.com precise-security/universe Sources [57.9 kB]
==> default: Get:12 http://security.ubuntu.com precise-security/multiverse Sources [3,032 B]
==> default: Get:13 http://security.ubuntu.com precise-security/main amd64 Packages [375 kB]
==> default: Get:14 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [15.4 kB]
==> default: Get:15 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [288 kB]
==> default: Get:16 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB]
==> default: Get:17 http://us.archive.ubuntu.com precise-updates/main i386 Packages [745 kB]
==> default: Get:18 http://security.ubuntu.com precise-security/restricted amd64 Packages [10.9 kB]
==> default: Get:19 http://security.ubuntu.com precise-security/universe amd64 Packages [145 kB]
==> default: Get:20 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [15.3 kB]
==> default: Get:21 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [297 kB]
==> default: Get:22 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]
==> default: Get:23 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [208 B]
==> default: Get:24 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]
==> default: Get:25 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]
==> default: Get:26 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]
==> default: Get:27 http://us.archive.ubuntu.com precise-backports/main Sources [5,922 B]
==> default: Get:28 http://us.archive.ubuntu.com precise-backports/restricted Sources [28 B]
==> default: Get:29 http://us.archive.ubuntu.com precise-backports/universe Sources [44.2 kB]
==> default: Get:30 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,750 B]
==> default: Get:31 http://security.ubuntu.com precise-security/multiverse amd64 Packages [3,367 B]
==> default: Get:32 http://security.ubuntu.com precise-security/main i386 Packages [377 kB]
==> default: Get:33 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,477 B]
==> default: Get:34 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [28 B]
==> default: Get:35 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [46.3 kB]
==> default: Get:36 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,419 B]
==> default: Get:37 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,478 B]
==> default: Get:38 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [28 B]
==> default: Get:39 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [46.1 kB]
==> default: Get:40 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,413 B]
==> default: Get:41 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [202 B]
==> default: Get:42 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [202 B]
==> default: Get:43 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [193 B]
==> default: Get:44 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [205 B]
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Get:45 http://us.archive.ubuntu.com precise-updates/main Translation-en [344 kB]
==> default: Get:46 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [10.1 kB]
==> default: Get:47 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [3,686 B]
==> default: Get:48 http://us.archive.ubuntu.com precise-updates/universe Translation-en [174 kB]
==> default: Get:49 http://us.archive.ubuntu.com precise-backports/main Translation-en [5,737 B]
==> default: Get:50 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,852 B]
==> default: Get:51 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [28 B]
==> default: Get:52 http://us.archive.ubuntu.com precise-backports/universe Translation-en [35.9 kB]
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Get:53 http://security.ubuntu.com precise-security/restricted i386 Packages [10.8 kB]
==> default: Get:54 http://security.ubuntu.com precise-security/universe i386 Packages [154 kB]
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Get:55 http://security.ubuntu.com precise-security/multiverse i386 Packages [3,537 B]
==> default: Get:56 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
==> default: Get:57 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
==> default: Get:58 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]
==> default: Get:59 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Get:60 http://security.ubuntu.com precise-security/main Translation-en [188 kB]
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Get:61 http://security.ubuntu.com precise-security/multiverse Translation-en [1,993 B]
==> default: Get:62 http://security.ubuntu.com precise-security/restricted Translation-en [2,802 B]
==> default: Get:63 http://security.ubuntu.com precise-security/universe Translation-en [93.2 kB]
==> default: Fetched 5,297 kB in 3s (1,756 kB/s)
==> default: Reading package lists...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default: git-man libapt-pkg4.12 libcurl3 libcurl3-gnutls liberror-perl libpcre3
==> default: libpcrecpp0 patch
==> default: Suggested packages:
==> default: git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
==> default: git-email git-gui gitk gitweb make-doc diffutils-doc zip
==> default: The following NEW packages will be installed:
==> default: curl git git-man libcurl3 liberror-perl libpcre3-dev libpcrecpp0 make patch
==> default: pkg-config unzip
==> default: The following packages will be upgraded:
==> default: apt-transport-https libapt-pkg4.12 libcurl3-gnutls libpcre3
==> default: 4 upgraded, 11 newly installed, 0 to remove and 189 not upgraded.
==> default: Need to get 9,141 kB of archives.
==> default: After this operation, 18.1 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libapt-pkg4.12 amd64 0.8.16
exp12ubuntu10.27 [934 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpcre3 amd64 8.12-4ubuntu0.2 [149 kB]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3-gnutls amd64 7.22.0-3ubuntu4.17 [228 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libcurl3 amd64 7.22.0-3ubuntu4.17 [237 kB]
==> default: Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpcrecpp0 amd64 8.12-4ubuntu0.2 [16.2 kB]
==> default: Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main apt-transport-https amd64 0.8.16exp12ubuntu10.27 [16.4 kB]
==> default: Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main curl amd64 7.22.0-3ubuntu4.17 [138 kB]
==> default: Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1 [23.8 kB]
==> default: Get:9 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main git-man all 1:1.7.9.5-1ubuntu0.3 [632 kB]
==> default: Get:10 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main git amd64 1:1.7.9.5-1ubuntu0.3 [6,103 kB]
==> default: Get:11 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpcre3-dev amd64 8.12-4ubuntu0.2 [231 kB]
==> default: Get:12 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main make amd64 3.81-8.1ubuntu1.1 [119 kB]
==> default: Get:13 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main patch amd64 2.6.1-3ubuntu0.1 [80.0 kB]
==> default: Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/main pkg-config amd64 0.26-1ubuntu1 [40.9 kB]
==> default: Get:15 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main unzip amd64 6.0-4ubuntu2.5 [193 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 9,141 kB in 5s (1,785 kB/s)
==> default: (Reading database ...
==> default: 51095 files and directories currently installed.)
==> default: Preparing to replace libapt-pkg4.12 0.8.16
exp12ubuntu10 (using .../libapt-pkg4.12_0.8.16exp12ubuntu10.27_amd64.deb) ...
==> default: Unpacking replacement libapt-pkg4.12 ...
==> default: Setting up libapt-pkg4.12 (0.8.16
exp12ubuntu10.27) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: (Reading database ...
==> default: 51095 files and directories currently installed.)
==> default: Preparing to replace libpcre3 8.12-4 (using .../libpcre3_8.12-4ubuntu0.2_amd64.deb) ...
==> default: Unpacking replacement libpcre3 ...
==> default: Preparing to replace libcurl3-gnutls 7.22.0-3ubuntu4 (using .../libcurl3-gnutls_7.22.0-3ubuntu4.17_amd64.deb) ...
==> default: Unpacking replacement libcurl3-gnutls ...
==> default: Selecting previously unselected package libcurl3.
==> default: Unpacking libcurl3 (from .../libcurl3_7.22.0-3ubuntu4.17_amd64.deb) ...
==> default: Selecting previously unselected package libpcrecpp0.
==> default: Unpacking libpcrecpp0 (from .../libpcrecpp0_8.12-4ubuntu0.2_amd64.deb) ...
==> default: Preparing to replace apt-transport-https 0.8.16exp12ubuntu10 (using .../apt-transport-https_0.8.16exp12ubuntu10.27_amd64.deb) ...
==> default: Unpacking replacement apt-transport-https ...
==> default: Selecting previously unselected package curl.
==> default: Unpacking curl (from .../curl_7.22.0-3ubuntu4.17_amd64.deb) ...
==> default: Selecting previously unselected package liberror-perl.
==> default: Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
==> default: Selecting previously unselected package git-man.
==> default: Unpacking git-man (from .../git-man_1%3a1.7.9.5-1ubuntu0.3_all.deb) ...
==> default: Selecting previously unselected package git.
==> default: Unpacking git (from .../git_1%3a1.7.9.5-1ubuntu0.3_amd64.deb) ...
==> default: Selecting previously unselected package libpcre3-dev.
==> default: Unpacking libpcre3-dev (from .../libpcre3-dev_8.12-4ubuntu0.2_amd64.deb) ...
==> default: Selecting previously unselected package make.
==> default: Unpacking make (from .../make_3.81-8.1ubuntu1.1_amd64.deb) ...
==> default: Selecting previously unselected package patch.
==> default: Unpacking patch (from .../patch_2.6.1-3ubuntu0.1_amd64.deb) ...
==> default: Selecting previously unselected package pkg-config.
==> default: Unpacking pkg-config (from .../pkg-config_0.26-1ubuntu1_amd64.deb) ...
==> default: Selecting previously unselected package unzip.
==> default: Unpacking unzip (from .../unzip_6.0-4ubuntu2.5_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Setting up libpcre3 (8.12-4ubuntu0.2) ...
==> default: Setting up libcurl3-gnutls (7.22.0-3ubuntu4.17) ...
==> default: Setting up libcurl3 (7.22.0-3ubuntu4.17) ...
==> default: Setting up libpcrecpp0 (8.12-4ubuntu0.2) ...
==> default: Setting up apt-transport-https (0.8.16~exp12ubuntu10.27) ...
==> default: Setting up curl (7.22.0-3ubuntu4.17) ...
==> default: Setting up liberror-perl (0.17-1) ...
==> default: Setting up git-man (1:1.7.9.5-1ubuntu0.3) ...
==> default: Setting up git (1:1.7.9.5-1ubuntu0.3) ...
==> default: Setting up libpcre3-dev (8.12-4ubuntu0.2) ...
==> default: Setting up make (3.81-8.1ubuntu1.1) ...
==> default: Setting up patch (2.6.1-3ubuntu0.1) ...
==> default: Setting up pkg-config (0.26-1ubuntu1) ...
==> default: Setting up unzip (6.0-4ubuntu2.5) ...
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
==> default: Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Get:3 http://us.archive.ubuntu.com precise-updates Release [55.4 kB]
==> default: Get:4 http://security.ubuntu.com precise-security Release.gpg [198 B]
==> default: Get:5 http://security.ubuntu.com precise-security Release [55.5 kB]
==> default: Get:6 http://us.archive.ubuntu.com precise-backports Release [55.5 kB]
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Get:7 http://us.archive.ubuntu.com precise-updates/main Sources [503 kB]
==> default: Get:8 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,837 B]
==> default: Get:9 http://us.archive.ubuntu.com precise-updates/universe Sources [137 kB]
==> default: Get:10 http://us.archive.ubuntu.com precise-updates/multiverse Sources [10.5 kB]
==> default: Get:11 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [741 kB]
==> default: Get:12 http://security.ubuntu.com precise-security/main Sources [150 kB]
==> default: Get:13 http://security.ubuntu.com precise-security/restricted Sources [4,643 B]
==> default: Get:14 http://security.ubuntu.com precise-security/universe Sources [57.9 kB]
==> default: Get:15 http://security.ubuntu.com precise-security/multiverse Sources [3,032 B]
==> default: Get:16 http://security.ubuntu.com precise-security/main amd64 Packages [375 kB]
==> default: Get:17 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [15.4 kB]
==> default: Get:18 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [288 kB]
==> default: Get:19 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [17.1 kB]
==> default: Get:20 http://us.archive.ubuntu.com precise-updates/main i386 Packages [745 kB]
==> default: Get:21 http://security.ubuntu.com precise-security/restricted amd64 Packages [10.9 kB]
==> default: Get:22 http://security.ubuntu.com precise-security/universe amd64 Packages [145 kB]
==> default: Get:23 http://security.ubuntu.com precise-security/multiverse amd64 Packages [3,367 B]
==> default: Get:24 http://security.ubuntu.com precise-security/main i386 Packages [377 kB]
==> default: Get:25 http://security.ubuntu.com precise-security/restricted i386 Packages [10.8 kB]
==> default: Get:26 http://security.ubuntu.com precise-security/universe i386 Packages [154 kB]
==> default: Get:27 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [15.3 kB]
==> default: Get:28 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [297 kB]
==> default: Get:29 http://security.ubuntu.com precise-security/multiverse i386 Packages [3,537 B]
==> default: Get:30 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
==> default: Get:31 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
==> default: Get:32 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]
==> default: Get:33 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
==> default: Get:34 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [17.3 kB]
==> default: Get:35 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [208 B]
==> default: Get:36 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [202 B]
==> default: Get:37 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [202 B]
==> default: Get:38 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [205 B]
==> default: Get:39 http://us.archive.ubuntu.com precise-backports/main Sources [5,922 B]
==> default: Hit http://security.ubuntu.com precise-security/main Translation-en
==> default: Get:40 http://us.archive.ubuntu.com precise-backports/restricted Sources [28 B]
==> default: Get:41 http://us.archive.ubuntu.com precise-backports/universe Sources [44.2 kB]
==> default: Get:42 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,750 B]
==> default: Get:43 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [6,477 B]
==> default: Get:44 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [28 B]
==> default: Get:45 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [46.3 kB]
==> default: Get:46 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,419 B]
==> default: Get:47 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,478 B]
==> default: Get:48 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [28 B]
==> default: Get:49 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [46.1 kB]
==> default: Get:50 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,413 B]
==> default: Get:51 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [202 B]
==> default: Get:52 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [202 B]
==> default: Hit http://security.ubuntu.com precise-security/multiverse Translation-en
==> default: Hit http://security.ubuntu.com precise-security/restricted Translation-en
==> default: Get:53 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [193 B]
==> default: Get:54 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [205 B]
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
==> default: Hit http://security.ubuntu.com precise-security/universe Translation-en
==> default: Fetched 4,431 kB in 3s (1,306 kB/s)
==> default: Reading package lists...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default: python-pycurl unattended-upgrades
==> default: Suggested packages:
==> default: libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
==> default: The following NEW packages will be installed:
==> default: python-pycurl python-software-properties software-properties-common
==> default: unattended-upgrades
==> default: 0 upgraded, 4 newly installed, 0 to remove and 189 not upgraded.
==> default: Need to get 106 kB of archives.
==> default: After this operation, 794 kB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main unattended-upgrades all 0.76ubuntu1.3 [24.7 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ precise/main python-pycurl amd64 7.19.0-4ubuntu3 [49.2 kB]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python-software-properties all 0.82.7.7 [23.5 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main software-properties-common all 0.82.7.7 [8,450 B]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 106 kB in 0s (217 kB/s)
==> default: Selecting previously unselected package unattended-upgrades.
==> default: (Reading database ...
==> default: 51889 files and directories currently installed.)
==> default: Unpacking unattended-upgrades (from .../unattended-upgrades_0.76ubuntu1.3_all.deb) ...
==> default: Selecting previously unselected package python-pycurl.
==> default: Unpacking python-pycurl (from .../python-pycurl_7.19.0-4ubuntu3_amd64.deb) ...
==> default: Selecting previously unselected package python-software-properties.
==> default: Unpacking python-software-properties (from .../python-software-properties_0.82.7.7_all.deb) ...
==> default: Selecting previously unselected package software-properties-common.
==> default: Unpacking software-properties-common (from .../software-properties-common_0.82.7.7_all.deb) ...
==> default: Processing triggers for man-db ...
==> default: Processing triggers for ureadahead ...
==> default: Setting up unattended-upgrades (0.76ubuntu1.3) ...
==> default: Setting up python-pycurl (7.19.0-4ubuntu3) ...
==> default: Setting up python-software-properties (0.82.7.7) ...
==> default: Setting up software-properties-common (0.82.7.7) ...
==> default: OK
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-updates Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-backports Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Hit http://us.archive.ubuntu.com precise-updates Release
==> default: Hit http://security.ubuntu.com precise-security Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-backports Release
==> default: Hit http://security.ubuntu.com precise-security Release
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/restricted Sources
==> default: Hit http://security.ubuntu.com precise-security/universe Sources
==> default: Hit http://security.ubuntu.com precise-security/multiverse Sources
==> default: Hit http://security.ubuntu.com precise-security/main amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/universe amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/main i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/restricted i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
==> default: Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/main TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/universe TranslationIndex
==> default: Get:1 https://apt.postgresql.org precise-pgdg Release.gpg [819 B]
==> default: Hit http://security.ubuntu.com precise-security/main Translation-en
==> default: Hit http://security.ubuntu.com precise-security/multiverse Translation-en
==> default: Hit http://security.ubuntu.com precise-security/restricted Translation-en
==> default: Get:2 https://apt.postgresql.org precise-pgdg Release [40.1 kB]
==> default: Hit http://security.ubuntu.com precise-security/universe Translation-en
==> default: Get:3 https://apt.postgresql.org precise-pgdg/main Sources [29.9 kB]
==> default: Get:4 https://apt.postgresql.org precise-pgdg/main amd64 Packages [74.3 kB]
==> default: Get:5 https://apt.postgresql.org precise-pgdg/main i386 Packages [74.3 kB]
==> default: Get:6 https://apt.postgresql.org precise-pgdg/main TranslationIndex [345 B]
==> default: Ign https://apt.postgresql.org precise-pgdg/main TranslationIndex
==> default: Ign https://apt.postgresql.org precise-pgdg/main Translation-en_US
==> default: Ign https://apt.postgresql.org precise-pgdg/main Translation-en
==> default: Fetched 219 kB in 4s (48.9 kB/s)
==> default: Reading package lists...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default: libpq5 libsensors4 libxslt1.1 pgdg-keyring postgresql-client-9.5
==> default: postgresql-client-common postgresql-common postgresql-contrib-9.5 ssl-cert
==> default: sysstat
==> default: Suggested packages:
==> default: lm-sensors locales-all postgresql-doc-9.5 libjson-perl libdbd-pg-perl
==> default: openssl-blacklist isag
==> default: The following NEW packages will be installed:
==> default: libpq5 libsensors4 libxslt1.1 pgdg-keyring postgresql-9.5
==> default: postgresql-client-9.5 postgresql-client-common postgresql-common
==> default: postgresql-contrib-9.5 ssl-cert sysstat
==> default: 0 upgraded, 11 newly installed, 0 to remove and 189 not upgraded.
==> default: Need to get 6,457 kB of archives.
==> default: After this operation, 28.6 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libsensors4 amd64 1:3.3.1-2ubuntu1 [31.9 kB]
==> default: Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libxslt1.1 amd64 1.1.26-8ubuntu1.4 [168 kB]
==> default: Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ssl-cert all 1.0.28ubuntu0.1 [12.3 kB]
==> default: Get:4 http://us.archive.ubuntu.com/ubuntu/ precise/main sysstat amd64 10.0.3-1 [303 kB]
==> default: Get:5 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main libpq5 amd64 9.6.3-1.pgdg12.4+1 [128 kB]
==> default: Get:6 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main pgdg-keyring all 2017.1 [10.1 kB]
==> default: Get:7 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main postgresql-client-common all 182.pgdg12.4+1 [81.7 kB]
==> default: Get:8 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main postgresql-client-9.5 amd64 9.5.7-1.pgdg12.4+1 [1,182 kB]
==> default: Get:9 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main postgresql-common all 182.pgdg12.4+1 [236 kB]
==> default: Get:10 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main postgresql-9.5 amd64 9.5.7-1.pgdg12.4+1 [3,866 kB]
==> default: Get:11 https://apt.postgresql.org/pub/repos/apt/ precise-pgdg/main postgresql-contrib-9.5 amd64 9.5.7-1.pgdg12.4+1 [438 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 6,457 kB in 4s (1,426 kB/s)
==> default: Selecting previously unselected package libpq5.
==> default: (Reading database ...
==> default: 51976 files and directories currently installed.)
==> default: Unpacking libpq5 (from .../libpq5_9.6.3-1.pgdg12.4+1_amd64.deb) ...
==> default: Selecting previously unselected package libsensors4.
==> default: Unpacking libsensors4 (from .../libsensors4_1%3a3.3.1-2ubuntu1_amd64.deb) ...
==> default: Selecting previously unselected package libxslt1.1.
==> default: Unpacking libxslt1.1 (from .../libxslt1.1_1.1.26-8ubuntu1.4_amd64.deb) ...
==> default: Selecting previously unselected package pgdg-keyring.
==> default: Unpacking pgdg-keyring (from .../pgdg-keyring_2017.1_all.deb) ...
==> default: Selecting previously unselected package postgresql-client-common.
==> default: Unpacking postgresql-client-common (from .../postgresql-client-common_182.pgdg12.4+1_all.deb) ...
==> default: Selecting previously unselected package postgresql-client-9.5.
==> default: Unpacking postgresql-client-9.5 (from .../postgresql-client-9.5_9.5.7-1.pgdg12.4+1_amd64.deb) ...
==> default: Selecting previously unselected package ssl-cert.
==> default: Unpacking ssl-cert (from .../ssl-cert_1.0.28ubuntu0.1_all.deb) ...
==> default: Selecting previously unselected package postgresql-common.
==> default: Unpacking postgresql-common (from .../postgresql-common_182.pgdg12.4+1_all.deb) ...
==> default: Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
==> default: Selecting previously unselected package postgresql-9.5.
==> default: Unpacking postgresql-9.5 (from .../postgresql-9.5_9.5.7-1.pgdg12.4+1_amd64.deb) ...
==> default: Selecting previously unselected package postgresql-contrib-9.5.
==> default: Unpacking postgresql-contrib-9.5 (from .../postgresql-contrib-9.5_9.5.7-1.pgdg12.4+1_amd64.deb) ...
==> default: Selecting previously unselected package sysstat.
==> default: Unpacking sysstat (from .../sysstat_10.0.3-1_amd64.deb) ...
==> default: Processing triggers for man-db ...
==> default: Processing triggers for ureadahead ...
==> default: Setting up libpq5 (9.6.3-1.pgdg12.4+1) ...
==> default: Setting up libsensors4 (1:3.3.1-2ubuntu1) ...
==> default: Setting up libxslt1.1 (1.1.26-8ubuntu1.4) ...
==> default: Setting up pgdg-keyring (2017.1) ...
==> default: Removing apt.postgresql.org key from trusted.gpg:
==> default: OK
==> default: Setting up postgresql-client-common (182.pgdg12.4+1) ...
==> default: Setting up postgresql-client-9.5 (9.5.7-1.pgdg12.4+1) ...
==> default: update-alternatives:
==> default: using /usr/share/postgresql/9.5/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode.
==> default: Setting up ssl-cert (1.0.28ubuntu0.1) ...
==> default: Setting up postgresql-common (182.pgdg12.4+1) ...
==> default: Adding user postgres to group ssl-cert
==> default: Creating config file /etc/postgresql-common/createcluster.conf with new version
==> default: Creating config file /etc/logrotate.d/postgresql-common with new version
==> default: Building PostgreSQL dictionaries from installed myspell/hunspell packages...
==> default: Removing obsolete dictionary files:
==> default: * No PostgreSQL clusters exist; see "man pg_createcluster"
==> default: Setting up postgresql-9.5 (9.5.7-1.pgdg12.4+1) ...
==> default: Creating new PostgreSQL cluster 9.5/main ...
==> default: /usr/lib/postgresql/9.5/bin/initdb -D /var/lib/postgresql/9.5/main --auth-local peer --auth-host md5
==> default: The files belonging to this database system will be owned by user "postgres".
==> default: This user must also own the server process.
==> default: The database cluster will be initialized with locale "en_US".
==> default: The default database encoding has accordingly been set to "LATIN1".
==> default: The default text search configuration will be set to "english".
==> default: Data page checksums are disabled.
==> default: fixing permissions on existing directory /var/lib/postgresql/9.5/main ...
==> default: ok
==> default: creating subdirectories ...
==> default: ok
==> default: selecting default max_connections ...
==> default: 100
==> default: selecting default shared_buffers ...
==> default: 128MB
==> default: selecting dynamic shared memory implementation ...
==> default: posix
==> default: creating configuration files ...
==> default: ok
==> default: creating template1 database in /var/lib/postgresql/9.5/main/base/1 ...
==> default: ok
==> default: initializing pg_authid ...
==> default: ok
==> default: initializing dependencies ...
==> default: ok
==> default: creating system views ...
==> default: ok
==> default: loading system objects' descriptions ...
==> default: ok
==> default: creating collations ...
==> default: ok
==> default: creating conversions ...
==> default: ok
==> default: creating dictionaries ...
==> default: ok
==> default: setting privileges on built-in objects ...
==> default: ok
==> default: creating information schema ...
==> default: ok
==> default: loading PL/pgSQL server-side language ...
==> default: ok
==> default: vacuuming database template1 ...
==> default: ok
==> default: copying template1 to template0 ...
==> default: ok
==> default: copying template1 to postgres ...
==> default: ok
==> default: syncing data to disk ...
==> default: ok
==> default:
==> default: Success. You can now start the database server using:
==> default:
==> default: /usr/lib/postgresql/9.5/bin/pg_ctl -D /var/lib/postgresql/9.5/main -l logfile start
==> default: Ver Cluster Port Status Owner Data directory Log file
==> default: 9.5 main 5432 down postgres /var/lib/postgresql/9.5/main /var/log/postgresql/postgresql-9.5-main.log
==> default: update-alternatives:
==> default: using /usr/share/postgresql/9.5/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode.
==> default: * Starting PostgreSQL 9.5 database server
==> default: ...done.
==> default: Setting up postgresql-contrib-9.5 (9.5.7-1.pgdg12.4+1) ...
==> default: Setting up sysstat (10.0.3-1) ...
==> default: Creating config file /etc/default/sysstat with new version
==> default: update-alternatives:
==> default: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode.
==> default: Processing triggers for libc-bin ...
==> default: ldconfig deferred processing now taking place
==> default: * Restarting PostgreSQL 9.5 database server
==> default: ...done.
==> default: Expanded display is on.
==> default: CREATE ROLE
==> default: CREATE DATABASE
==> default: CREATE DATABASE
==> default: Hit http://us.archive.ubuntu.com precise Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-updates Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-backports Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise Release
==> default: Hit http://us.archive.ubuntu.com precise-updates Release
==> default: Hit http://security.ubuntu.com precise-security Release.gpg
==> default: Hit http://us.archive.ubuntu.com precise-backports Release
==> default: Hit http://security.ubuntu.com precise-security Release
==> default: Hit http://us.archive.ubuntu.com precise/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/main Sources
==> default: Hit http://us.archive.ubuntu.com precise/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/restricted Sources
==> default: Hit http://security.ubuntu.com precise-security/universe Sources
==> default: Hit http://security.ubuntu.com precise-security/multiverse Sources
==> default: Hit http://security.ubuntu.com precise-security/main amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/universe amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
==> default: Hit http://security.ubuntu.com precise-security/main i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/restricted i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
==> default: Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
==> default: Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise/universe Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
==> default: Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
==> default: Hit http://security.ubuntu.com precise-security/main TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
==> default: Hit http://security.ubuntu.com precise-security/universe TranslationIndex
==> default: Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
==> default: Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
==> default: Hit http://security.ubuntu.com precise-security/main Translation-en
==> default: Hit http://security.ubuntu.com precise-security/multiverse Translation-en
==> default: Hit http://security.ubuntu.com precise-security/restricted Translation-en
==> default: Hit https://apt.postgresql.org precise-pgdg Release.gpg
==> default: Hit http://security.ubuntu.com precise-security/universe Translation-en
==> default: Hit https://apt.postgresql.org precise-pgdg Release
==> default: Hit https://apt.postgresql.org precise-pgdg/main Sources
==> default: Hit https://apt.postgresql.org precise-pgdg/main amd64 Packages
==> default: Hit https://apt.postgresql.org precise-pgdg/main i386 Packages
==> default: Get:1 https://apt.postgresql.org precise-pgdg/main TranslationIndex [345 B]
==> default: Ign https://apt.postgresql.org precise-pgdg/main TranslationIndex
==> default: Ign https://apt.postgresql.org precise-pgdg/main Translation-en_US
==> default: Ign https://apt.postgresql.org precise-pgdg/main Translation-en
==> default: Reading package lists...
==> default: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following NEW packages will be installed:
==> default: redis-server
==> default: 0 upgraded, 1 newly installed, 0 to remove and 189 not upgraded.
==> default: Need to get 204 kB of archives.
==> default: After this operation, 523 kB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/universe redis-server amd64 2:2.2.12-1build1 [204 kB]
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Fetched 204 kB in 0s (360 kB/s)
==> default: Selecting previously unselected package redis-server.
==> default: (Reading database ...
==> default: 52887 files and directories currently installed.)
==> default: Unpacking redis-server (from .../redis-server_2%3a2.2.12-1build1_amd64.deb) ...
==> default: Processing triggers for ureadahead ...
==> default: ureadahead will be reprofiled on next reboot
==> default: Processing triggers for man-db ...
==> default: Setting up redis-server (2:2.2.12-1build1) ...
==> default: Starting redis-server:
==> default: redis-server.
==> default: Fetching and installing java...
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.

no file at: /etc/kong/kong.conf

I just installed Kong and set the forwarding ports to as:

  config.vm.network :forwarded_port, guest: 8000, host: 8010
  config.vm.network :forwarded_port, guest: 8001, host: 8011
  config.vm.network :forwarded_port, guest: 8443, host: 8443
  config.vm.network :forwarded_port, guest: 8444, host: 8444
  config.vm.network :forwarded_port, guest: 9000, host: 9000 # only used with TCP stream proxy with Kong >= 0.15.0
  config.vm.network :forwarded_port, guest: 5432, host: 65432

When I ssh to the machine and do: kong check

I get:

 [error] no file at: /etc/kong/kong.conf

Doesnot work with xenial64

With ubuntu xenial64.

vagrant ssh -c "kong start --run-migrations"
prefix directory /usr/local/kong not found, trying to create it
Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:19: Permission denied

  Run with --v (verbose) or --vv (debug) for more details
Connection to 127.0.0.1 closed.

Works with sudo though

Port 8443 isn't forwarded in the Vagrantfile

Kong listens to 8443 for HTTPS connections by default, but the Vagrantfile for this project doesn't forward that port (just 8000 and 8001). I had to alter my Vagrantfile to test HTTPS requests to Kong on the Vagrant VM. Any reason it isn't there by default?

detaulf ulimit value cause a warning in kong start

the dev machine default value for ulimit is 1024.
since this value is less then 4096, a warning is raised when kong start.

vagrant@precise64:/kong$ kong start -c kong_DEVELOPMENT.yml 
...
...
[WARN] ulimit is currently set to "1024". For better performance set it to at least "4096" using "ulimit -n"

sudo make dev fails on Windows 7 host

I am able to run all the steps up to "sudo make dev" to set up on my Windows 7 host.

When I run the make step it yields...
bin/kong config -c kong.yml -e TEST
: No such file or directory
make: *** [dev] Error 127

If I try to run "bin/kong" manually I get the same error as the make displays.

If I "cd bin" to go into the bin directory where the "kong" executable is and run kong manually I get...
vagrant@precise64:/kong/bin$ kong
Missing

Usage: kong

where <command> is one of:
  start, restart, reload, stop, quit, version

kong --help            print this message
kong <command> --help  print the help message of a command

[email protected]

I have tried changing the formatting ( ie use of / vs \ ) of my "KONG_PATH" environment variable in Windows and it has no effect.

Any ideas what may be wrong with my Windows host environment?

Package 'oracle-java8-installer' has no installation candidate

https://launchpad.net/~webupd8team/+archive/ubuntu/java

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available. Please review the terms carefully before downloading and using this product. An FAQ is available here: https://www.oracle.com/technetwork/j...-jdk-faqs.html

Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).

For this reason, THIS PPA IS DISCONTINUED

Installing from Vagrant idle installing

I´ve been tryinng install kong using vagrant but when i use vagrant up after downloading and set up cassandra, i receive the message 'installing kong...' in the console but nothing happens. After 3 hours with message of installing i quit installation and restart vagrant. the VM is installed but Kong is not.

I saw kong.deb file and after tried to install using dpkg but not work. So, after i dowloaded community deb version and installed direct on the VM.

kongdeb

git is missing in the vagrant box

some libraries, specifically lua-cassandra depend on git.
the base vagrant box is missing git.

vagrant@precise64:~$ cd /kong
vagrant@precise64:/kong$ sudo make dev

Missing dependencies for kong:
lua-cassandra ~> 0.3.5-0

Using https://luarocks.org/lua-cassandra-0.3.5-0.rockspec... switching to 'build' mode
sh: 1: git: not found

i think a the fix should include update to the box to ubunto 14.04.
i've tested with:

config.vm.box = "puphpet/ubuntu1404-x64"

let me know if you create PR for it.

Unable to run Busted cli

I am interested in writing unit tests for my custom plugins using busted, and I wanted to try running tests for the plugins that come with Kong first (in /kong/spec). I bought up vagrant out of the box, and set up my development environment as mentioned in the README. I tried to run the tests with busted in three ways:

  1. by first calling the busted cli directly with this command: busted /kong-plugin/spec
    That gave me back this error, which is understandable because I read up that busted has to be run in resty cli for nginx context.
0 successes / 0 failures / 1 error / 0 pending : 0.041759 seconds

Error → ./kong/tools/utils.lua @ 33
suite /kong-plugin/spec/myplugin/01-access_spec.lua
  1. next, by calling busted cli as mentioned in the README with this command: bin/busted /kong-plugin/spec, which gave me the error below.
    : No such file or directory

  2. finally, I tried to invoke the resty cli directly and run bin/busted against resty cli with this command: resty bin/busted /kong-plugin/spec, and although it seems to have started the busted process, I still see the no such file or directory error.

0 successes / 0 failures / 1 error / 0 pending : 1.065115 seconds

Error → /kong-plugin/spec/myplugin/01-access_spec.lua @ 6
Demo-Plugin: myplugin (access) setup
: No such file or directory01-access_spec.lua:20: /usr/bin/env: resty

Can someone suggest as to what I am doing wrong (if anything at all) when trying to run the tests via Busted, and what can be done to fix this "no such file or directory" error?

dev does not correspond to KONG_VERSION

I created my vagrant with KONG_VERSION=1.1.2. Kong version 1.1.2 installs but when I cd to /kong the Kong rockspec is 2.0.2 and in the Makefile the DEV_ROCKS look like they're for 2.x:

DEV_ROCKS = "busted 2.0.0" "busted-htest 1.0.0" "luacheck 0.23.0" "lua-llthreads2 0.1.5" "http 0.3"

Removing kong-2.0.2-0.rockspec and adding kong-1.1..2-0.rockspec from the Kong repo didn't help, make fails.

Any suggestions on how to create dev for a back-version of Kong?

default: Downloading: precise64: An error occurred while downloading the remote file.

mbpro13 ~/Documents/webpages/kong-vagrant schreiner $ KONG_PATH=/home/schreiner/Documents/webpages/kong/ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'precise64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'precise64' (v0) for provider: virtualbox
    default: Downloading: precise64
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Couldn't open file /home/schreiner/Documents/webpages/kong-vagrant/precise64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.