kalash_dog

Untitled

Apr 13th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.11 KB | None | 0 0
  1. MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ git pull
  2. Already up-to-date.
  3. MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ vagrant destroy
  4. passaro_vagrant: Are you sure you want to destroy the 'passaro_vagrant' VM? [y/N] y
  5. ==> passaro_vagrant: Forcing shutdown of VM...
  6. ==> passaro_vagrant: Destroying VM and associated drives...
  7. ==> passaro_vagrant: Pruning invalid NFS exports. Administrator privileges will be required...
  8. ==> passaro_vagrant: Updating /etc/hosts file on host machine (password may be required)...
  9. MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ git clean -xfd
  10. Removing .vagrant/
  11. Removing drive/__pycache__/
  12. Removing drive/helpers/__pycache__/
  13. Removing drive/jotium/__pycache__/
  14. Removing drive/jotium/django/__pycache__/
  15. Removing drive/joxi/__pycache__/
  16. Removing drive/locale/ru/LC_MESSAGES/django.mo
  17. Removing drive/oauth/__pycache__/
  18. Removing drive/oauth/migrations/__pycache__/
  19. Removing drive/oauth/rest_framework/__pycache__/
  20. Removing drive/rest/__pycache__/
  21. Removing drive/search/__pycache__/
  22. Removing drive/settings/__pycache__/
  23. Removing drive/stats/__pycache__/
  24. Removing drive/stats/migrations/__pycache__/
  25. Removing drive/storage/__pycache__/
  26. Removing drive/storage/management/__pycache__/
  27. Removing drive/storage/migrations/__pycache__/
  28. Removing drive/storage/models/__pycache__/
  29. Removing drive/support/__pycache__/
  30. Removing drive/urls/__pycache__/
  31. Removing drive/urlshortener/__pycache__/
  32. Removing drive/urlshortener/migrations/__pycache__/
  33. Removing drive/user/__pycache__/
  34. Removing drive/user/migrations/__pycache__/
  35. Removing provision/fabric_provisioner.pyc
  36. Removing var/
  37. MacBook-Pro-Evgenij:passaro evgenijkalasnikov$ vagrant up
  38. Bringing machine 'passaro_vagrant' up with 'virtualbox' provider...
  39. ==> passaro_vagrant: Importing base box 'dizballanze/passaro'...
  40. ==> passaro_vagrant: Matching MAC address for NAT networking...
  41. ==> passaro_vagrant: Checking if box 'dizballanze/passaro' is up to date...
  42. ==> passaro_vagrant: Setting the name of the VM: passaro_vagrant
  43. ==> passaro_vagrant: Clearing any previously set network interfaces...
  44. ==> passaro_vagrant: Preparing network interfaces based on configuration...
  45. passaro_vagrant: Adapter 1: nat
  46. passaro_vagrant: Adapter 2: hostonly
  47. ==> passaro_vagrant: Forwarding ports...
  48. passaro_vagrant: 22 (guest) => 2222 (host) (adapter 1)
  49. ==> passaro_vagrant: Running 'pre-boot' VM customizations...
  50. ==> passaro_vagrant: Booting VM...
  51. ==> passaro_vagrant: Waiting for machine to boot. This may take a few minutes...
  52. passaro_vagrant: SSH address: 127.0.0.1:2222
  53. passaro_vagrant: SSH username: vagrant
  54. passaro_vagrant: SSH auth method: private key
  55. passaro_vagrant: Warning: Remote connection disconnect. Retrying...
  56. ==> passaro_vagrant: Machine booted and ready!
  57. ==> passaro_vagrant: Checking for guest additions in VM...
  58. ==> passaro_vagrant: Setting hostname...
  59. ==> passaro_vagrant: Configuring and enabling network interfaces...
  60. ==> passaro_vagrant: Exporting NFS shared folders...
  61. ==> passaro_vagrant: Preparing to edit /etc/exports. Administrator privileges will be required...
  62. ==> passaro_vagrant: Mounting NFS shared folders...
  63. ==> passaro_vagrant: Updating /etc/hosts file on host machine (password may be required)...
  64. ==> passaro_vagrant: Running provisioner: fabric...
  65. [127.0.0.1] Executing task 'common'
  66. [127.0.0.1] sudo: yum -y update
  67. [127.0.0.1] sudo: yum -y install curl git-core libjpeg-devel libevent-devel libxslt-devel wget redis libmemcached-devel
  68. [127.0.0.1] sudo: service redis start
  69. [127.0.0.1] sudo: chkconfig --level 2345 redis on
  70. [127.0.0.1] sudo: yum groupinstall -y development
  71. [127.0.0.1] sudo: yum -y clean packages
  72. [127.0.0.1] run: wget -O libmemcached.tar.gz https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz
  73. [127.0.0.1] run: tar -xf libmemcached.tar.gz
  74. [127.0.0.1] run: mv libmemcached-1.0.18 libmemcached
  75. [127.0.0.1] run: ./configure
  76. [127.0.0.1] sudo: make && make install
  77. [127.0.0.1] sudo: touch /usr/memcached_sentinel
  78. [127.0.0.1] sudo: wget -O ffmpeg.tar.xz http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
  79. [127.0.0.1] sudo: tar -xf /tmp/ffmpeg.tar.xz --strip-components 1
  80. [127.0.0.1] put: <file obj> -> /home/vagrant/.bashrc
  81. [127.0.0.1] Executing task 'database'
  82. [127.0.0.1] sudo: iptables -t nat -I PREROUTING -p tcp --dport 3307 -j REDIRECT --to-ports 3306
  83. [127.0.0.1] sudo: iptables -t nat -I OUTPUT -p tcp -o lo --dport 3307 -j REDIRECT --to-ports 3306
  84. [127.0.0.1] sudo: iptables -t nat -I PREROUTING -p tcp --dport 3308 -j REDIRECT --to-ports 3306
  85. [127.0.0.1] sudo: iptables -t nat -I OUTPUT -p tcp -o lo --dport 3308 -j REDIRECT --to-ports 3306
  86. [127.0.0.1] sudo: service iptables save
  87. [127.0.0.1] run: mysqladmin -u root password "oDcpRPQ4"
  88.  
  89. Warning: run() received nonzero return code 1 while executing 'mysqladmin -u root password "oDcpRPQ4"'!
  90.  
  91. [127.0.0.1] run: mysql -e "
  92. # create user for joxi_all
  93. CREATE USER 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
  94.  
  95. # create user for drive
  96. CREATE USER '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
  97.  
  98. # give access user to db
  99. GRANT USAGE ON *.* TO 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
  100. GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'localhost';
  101.  
  102. # give access user2 to db
  103. GRANT USAGE ON *.* TO '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
  104. GRANT ALL PRIVILEGES ON *.* TO '43254579'@'localhost';
  105.  
  106. # update access rules
  107. FLUSH PRIVILEGES;
  108. " --user=root --password="oDcpRPQ4"
  109.  
  110. Warning: run() received nonzero return code 1 while executing 'mysql -e "
  111. # create user for joxi_all
  112. CREATE USER 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
  113.  
  114. # create user for drive
  115. CREATE USER '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
  116.  
  117. # give access user to db
  118. GRANT USAGE ON *.* TO 'v_joxi'@'localhost' IDENTIFIED BY 'oDcpRPQ4';
  119. GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'localhost';
  120.  
  121. # give access user2 to db
  122. GRANT USAGE ON *.* TO '43254579'@'localhost' IDENTIFIED BY 'W3po2Bx0';
  123. GRANT ALL PRIVILEGES ON *.* TO '43254579'@'localhost';
  124.  
  125. # update access rules
  126. FLUSH PRIVILEGES;
  127. " --user=root --password="oDcpRPQ4"'!
  128.  
  129. [127.0.0.1] run: mysql -e "
  130. # give access user to db
  131. GRANT USAGE ON *.* TO 'v_joxi'@'10.1.1.201' IDENTIFIED BY 'oDcpRPQ4';
  132. GRANT ALL PRIVILEGES ON *.* TO 'v_joxi'@'10.1.1.201';
  133.  
  134. # update access rules
  135. FLUSH PRIVILEGES;
  136. " --user=root --password="oDcpRPQ4"
  137. [127.0.0.1] Executing task 'nginx'
  138. [127.0.0.1] put: <file obj> -> /etc/yum.repos.d/nginx.repo
  139. [127.0.0.1] sudo: yum -y install nginx
  140. [127.0.0.1] sudo: rm -rf /etc/nginx/conf.d
  141. [127.0.0.1] put: <file obj> -> /etc/nginx/nginx.conf
  142. [127.0.0.1] put: <file obj> -> /etc/nginx/passwd
  143. [127.0.0.1] put: <file obj> -> /etc/hosts
  144. [127.0.0.1] sudo: mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled
  145. [127.0.0.1] put: <file obj> -> /etc/nginx/sites-available/passaro
  146. [127.0.0.1] put: <file obj> -> /etc/nginx/sites-available/passaro
  147. [127.0.0.1] sudo: ln -sf /etc/nginx/sites-available/passaro /etc/nginx/sites-enabled/passaro
  148. [127.0.0.1] sudo: openssl genrsa -out api.joxi.net.key 2048
  149. [127.0.0.1] sudo: openssl req -new -x509 -key api.joxi.net.key -out api.joxi.net.cert -days 3650 -subj /CN=api.joxi.net
  150. [127.0.0.1] sudo: service nginx restart
  151. [127.0.0.1] run: mkdir fake1 -p
  152. [127.0.0.1] sudo: chown nginx:nginx fake1
  153. [127.0.0.1] sudo: chmod 755 fake1 -R
  154. [127.0.0.1] run: mkdir fake2 -p
  155. [127.0.0.1] sudo: chown nginx:nginx fake2
  156. [127.0.0.1] sudo: chmod 755 fake2 -R
  157. [127.0.0.1] sudo: chmod 755 /home/vagrant
  158. [127.0.0.1] Executing task 'app'
  159. [127.0.0.1] run: pyvenv-3.4 /home/vagrant/venv
  160. [127.0.0.1] run: /home/vagrant/venv/bin/pip install --no-index -f wheels/ -r requirements.txt
  161. [127.0.0.1] run: mysql -e "
  162. # create database joxi_all
  163. CREATE DATABASE IF NOT EXISTS joxi_all;
  164.  
  165. # create database joxi_drive_0
  166. CREATE DATABASE IF NOT EXISTS joxi_drive_0;
  167.  
  168. # create database joxi_drive_1
  169. CREATE DATABASE IF NOT EXISTS joxi_drive_1;
  170. " --user=root --password="oDcpRPQ4"
  171. [127.0.0.1] run: mysql --user=v_joxi --password="oDcpRPQ4" -h localhost joxi_all < joxi_all_schema.sql
  172. [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=default --noinput --fake-initial
  173. [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=drive_0 --noinput --fake-initial
  174. [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py migrate --database=drive_1 --noinput --fake-initial
  175. [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py collectstatic --noinput
  176. [127.0.0.1] run: /home/vagrant/venv/bin/python manage.py compilemessages
  177. [127.0.0.1] sudo: chmod 755 /home/vagrant/static -R
  178. [127.0.0.1] run: mysql -e "
  179. # LOCK TABLES joxi_all.user_user WRITE;
  180. INSERT INTO joxi_all.user_user VALUES (
  181. 1,NULL,'phpuser@e.co','mLwHT6/ySw642rtBE8xu8jczSZbYisTBS0woMJgMjwF8Jr2OJc4pX/xCrwpT6i7m9OQGeyKKBLp3oneFmahxHw==',
  182. 'n7fvxinojy80g4ogc4os4o44gw4o480','Root',NULL,NULL,NULL,NULL,NULL,NULL,NULL,
  183. '2016-02-25 17:22:02','a:0:{}',NULL,'phpuser@e.co',1,0,0,0,NULL,NULL,NULL,NULL,
  184. NULL,NULL,'ru',NULL,0,0);
  185. # UNLOCK TABLES;
  186. " --user=root --password="oDcpRPQ4"
  187. [127.0.0.1] run: echo "from user.models import User
  188. from oauth.models import AccessToken
  189. # create admin user
  190. user = User.objects.create_superuser(**{'password': '123123', 'name': 'tmp user', 'email': 'root@e.co'})
  191. # create access token for php user
  192. user = User.objects.get(email='phpuser@e.co')
  193. acc_token, created = AccessToken.objects.get_or_create(user=user, token='user_token')
  194. " | /home/vagrant/venv/bin/python manage.py shell
  195. [127.0.0.1] run: mkdir var -p
  196. [127.0.0.1] run: make start
  197. [127.0.0.1] run: make runcelery_multi
  198. [127.0.0.1] put: <file obj> -> /home/vagrant/put.py
  199. [127.0.0.1] run: /home/vagrant/venv/bin/python /home/vagrant/put.py
  200.  
  201. Done.
  202. Disconnecting from 127.0.0.1:2222... done.
  203.  
  204. ==> passaro_vagrant: Machine 'passaro_vagrant' has a post `vagrant up` message. This is a message
  205. ==> passaro_vagrant: from the creator of the Vagrantfile, and not from Vagrant itself:
  206. ==> passaro_vagrant:
  207. ==> passaro_vagrant: passaro dev server successfuly started.
  208. ==> passaro_vagrant: Connect to host with:
  209. ==> passaro_vagrant: https://10.1.1.200/
  210. ==> passaro_vagrant: or over ssh with `vagrant ssh`
  211. ==> passaro_vagrant:
  212. ==> passaro_vagrant: To check is dev server are started visit:
  213. ==> passaro_vagrant: https://10.1.1.200/ping?q=test
  214. ==> passaro_vagrant:
  215. ==> passaro_vagrant: Admin user credentials:
  216. ==> passaro_vagrant: email: root@e.co
  217. ==> passaro_vagrant: passw: 123123
  218. ==> passaro_vagrant:
  219. ==> passaro_vagrant: API user credentials:
  220. ==> passaro_vagrant: access token: user_token
  221. ==> passaro_vagrant:
Add Comment
Please, Sign In to add comment