predicting-hot-technology-trends's People
predicting-hot-technology-trends's Issues
Provisioning fails with Ansible 1.9
Not sure what the underlying issue is but originally found in #3. Ansible 1.8 seems to work fine. Ansible 1.9 fails with the below message every time when provisioning.
TASK: [nginx | Install the nginx packages] ************************************
failed: [default] => (item=python-selinux,nginx) => {"failed": true, "item": "python-selinux,nginx"}
stderr: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'python-selinux' 'nginx'' failed: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Use hashicorp/precise64 instead of hashicorp/precise32
In the Vagrantfile:
config.vm.box = "hashicorp/precise32"
All the work we do now is with 64 bit machines. hashicorp has a 64 bit image called precise64.
Documentation request: Analytics
Can you add some documentation on what works and what doesn't work in terms of analytics? What strategies did you try first, how did you improve them, and why is your current analytics setup the most useful?
Ansible: shell vs command module
All the backup commands are being run with the Ansible shell module. These can probably be run with the command module.
http://docs.ansible.com/shell_module.html
http://docs.ansible.com/command_module.html
Feature Request: Digest notifications
If there is time to implement a new feature, a cool thing would be an automated notification on a daily or weekly basis via something like email, that details the digest of the best and worst technology patterns.
Ansible: redundant use of bash
Its a bit redundant to call bash scripts with "bash PATH_TO_SCRIPT". Could just be "PATH_TO_SCRIPT". Is there a reason that bash must be called before the script?
Nginx sendfile && Virtualbox
Vagrant up Ansible provision fails
This is after changing precise32 to precise64 in the Vagrantfile.
First time doing Vagrant up get the following error:
==> default: Couldn't find Cheffile at ./Cheffile.
==> default: Running provisioner: ansible...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-key=/Users/risdenk/repos/avalon/Predicting-Hot-Technology-Trends/.vagrant/machines/default/virtualbox/private_key --user=vagrant --connection=ssh --limit='default' --inventory-file=/Users/risdenk/repos/avalon/Predicting-Hot-Technology-Trends/.vagrant/provisioners/ansible/inventory ansible/playbook.yml
PLAY [all] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [default]
TASK: [nginx | Ensure APT official nginx key] *********************************
skipping: [default]
TASK: [nginx | Ensure APT official nginx repository] **************************
skipping: [default]
TASK: [nginx | Ensure RPM official nginx key] *********************************
skipping: [default]
TASK: [nginx | Ensure YUM official nginx repository] **************************
skipping: [default]
TASK: [nginx | Install the selinux python module] *****************************
skipping: [default]
TASK: [nginx | Install the epel packages] *************************************
skipping: [default]
TASK: [nginx | Install the nginx packages] ************************************
skipping: [default]
TASK: [nginx | Install the nginx packages] ************************************
skipping: [default]
TASK: [nginx | Install the nginx packages] ************************************
failed: [default] => (item=python-selinux,nginx) => {"failed": true, "item": "python-selinux,nginx"}
stderr: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install 'python-selinux' 'nginx'' failed: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/Users/risdenk/playbook.retry
default : ok=1 changed=0 unreachable=0 failed=1
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
generateReport.py fails on first attempt
After a successful machine startup and provision, I vagrant ssh
into the machine and run:
python /vagrant/generateReport.py
and get this message back:
vagrant@precise64:~$ python /vagrant/generateReport.py
Traceback (most recent call last):
File "/vagrant/generateReport.py", line 18, in <module>
g.generateSMAImages(data)
File "/vagrant/Grapher/grapher.py", line 36, in generateSMAImages
plt.savefig('/vagrant/generated_report/imgs/'+tech.replace('.',''))
File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 471, in savefig
return fig.savefig(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig
self.canvas.print_figure(*args, **kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure
**kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 474, in print_png
filename_or_obj = file(filename_or_obj, 'wb')
IOError: [Errno 2] No such file or directory: u'/vagrant/generated_report/imgs/osx.png'
I just followed the steps in the README are there more presteps?
Documentation request: CouchDB
Can you document the CouchDB setup: installation specifics like data schema, how to access it manually, and generally how it is used within the application.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.