geerlingguy / ansible-role-passenger Goto Github PK
View Code? Open in Web Editor NEWAnsible Role - Passenger with Nginx
Home Page: https://galaxy.ansible.com/geerlingguy/passenger/
License: MIT License
Ansible Role - Passenger with Nginx
Home Page: https://galaxy.ansible.com/geerlingguy/passenger/
License: MIT License
I get the following error:
"msg": "Failed to find required executable apt-key"
See: https://travis-ci.org/geerlingguy/ansible-role-passenger/jobs/494342387
Debugging locally to see what's up.
Would it make sense to add the ability to have passenger_env_var
entries, similar to how this post does it?
Or, perhaps, there's just a different/better way of including env vars that I'm not aware of.
The nginx module config is linked, and doesn't implement the passenger_ruby variable.
See
ansible-role-passenger/tasks/main.yml
Line 34 in fa01d37
I'm getting an error similar to the one I used to get in node.js role:
ok: [box]
_________________________________________________________
/ TASK [geerlingguy.passenger : Add Phusion apt repo. \
| repo=deb |
| https://oss-binaries.phusionpassenger.com/apt/passenger |
| {{ansible_distribution_release}} main, state=present, |
\ update_cache=True] /
---------------------------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
fatal: [box]: FAILED! => {"changed": false, "failed": true, "module_stderr": "Shared connection to box closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/tmp/ansible_DS1bEx/ansible_module_apt_repository.py\", line 538, in <module>\r\n main()\r\n File \"/tmp/ansible_DS1bEx/ansible_module_apt_repository.py\", line 527, in main\r\n cache.update()\r\n File \"/usr/lib/python2.7/dist-packages/apt/cache.py\", line 454, in update\r\n raise FetchFailedException(e)\r\napt.cache.FetchFailedException: W:The repository 'http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.\r\n", "msg": "MODULE FAILURE"}
I wonder how pulling passenger apt binaries https://oss-binaries.phusionpassenger.com/apt/passenger | | {{ansible_distribution_release}} main
triggers pulling http://ppa.launchpad.net/chris-lea/node.js/ubuntu xenial Release
?
Here are the role versions I use:
$ ansible-galaxy list
- composer, 1.5.0
- geerlingguy.nginx, 2.1.0
- geerlingguy.ntp, 1.4.1
- geerlingguy.passenger, 1.1.1
- geerlingguy.postgresql, 1.0.2
- geerlingguy.redis, 1.4.2
- geerlingguy.ruby, 2.4.2
- geerlingguy.security, 1.5.0
- security, 1.5.0
It looks like I need to specify RAILS_MASTER_KEY using passenger_env_vars. There was a previous request for this feature, but it was closed. It seems like this would still be helpful; any chance this could be added?
After running this Role, Nginx fails to start (rebooting the machine results in the same situation):
The error message is: unknown directive "passenger_root" in /etc/nginx/nginx.conf:65
If I comment this line out, then the same error message comes up for passenger_ruby.
Operating system: Ubuntu 18.04.1 LTS (bionic)
$ which passenger
/usr/bin/passenger
$ passenger --version
Phusion Passenger 5.3.4
Installs Passenger (with Nginx) on RedHat/CentOS (soon) or Debian/Ubuntu linux servers.
Any update on the RedHat/CentOS support for this role? Thanks!
why give me multiple Phusion Passenger instances
in my redmine
redmine@172:~/4.11$ passenger-status
*** Cleaning stale instance directory /tmp/passenger.UjIOTlH
Warning: Operation not permitted @ rb_file_chown - /tmp/passenger.UjIOTlH/.
It appears that multiple Phusion Passenger instances are running. Please
select a specific one by running:
passenger-status <NAME>
The following Phusion Passenger instances are running:
Name PID Description
--------------------------------------------------------------------------
oR2Fxrti 41650 nginx/1.18.0 Phusion_Passenger/6.0.6
XBKtMEPL 89988 nginx/1.18.0 Phusion_Passenger/6.0.6
database
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "redmine"
# Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
encoding: utf8mb4
pool: 10
development:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: "redmine"
# Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
encoding: utf8mb4
pool: 10
how i can let production and development in same app groub
When running this role, I get a timeout error when trying to add the passenger apt key in this step:
ansible-role-passenger/tasks/main.yml
Lines 11 to 16 in c48f331
If i modify the keyserver item to use hkp://keyserver.ubuntu.com:80
, the task does not timeout and I am able to grab the key successfully.
I'm not sure if this is isolated to my install only or others experiencing a similar issue?
system deets below:
OS:
root@ip-172-30-8-240:/usr/local/lib/ansible# cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
ansible version:
root@ip-172-30-8-240:/usr/local/lib/ansible# ansible --version
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Jun 2 2021, 10:49:15) [GCC 9.4.0]
After merging #8 and adding geerlingguy/ubuntu1804
to the test suite, I am seeing build failures, and I dug through the error HTML and found:
tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install
Example build failure: https://travis-ci.org/geerlingguy/ansible-role-passenger/jobs/477139348
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.