Closed ogkpmg closed 8 years ago
did you copy your 411.conf into /etc/apache2/sites-available and enable the site? Did you remove the default site?
hello kasper,
thanks for your prompt response.
trying that out now.
nope the file was not in there.
after moving do i simply restart the apache2 service or do i have to start the whole build all over again?
I moved the file and it is still not working, any other suggestions?
Assuming you're on ubuntu, you need to enable the site. a2ensite 411
should probably do the trick. Check out https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts for more details.
hello, yes it is ubuntu. sorry for not specifying that earlier.
giving it a go now.
Hello,
I enabled the site: Site 411 already enabled
but still getting apache2 ubuntu default page.
any other suggestions?
not sure if this helps any but i ran the sudo a2dissite 000-default.conf command and it looks like were getting some where but now its stuck on this loading screen:
any ideas? thanks in advance.
It doesn't look like 411 was installed correctly. Make sure you've installed zip
and unzip
and try running through the commands again (npm
, bower
, composer
).
i did run into a lot of problems with npm, bower, and composer. are they suppose to be ran as sudo and to run these cmds:
sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config
is there suppose to be specific permissions on the 411 folder or are they all suppose to be root:root
Here are the errors: netadmin@411monitoring:/var/www/411$ npm install npm WARN FourOneOne@1.0.0 No repository field.
netadmin@411monitoring:/var/www/411$ bower install bower invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
whats in the /var/log/apache2/error.log ?? I had similar issues, which showed up in apache-logs
I am rebuilding the server now.
I am now encountering this error: [RuntimeException] Source path "./ecl" is not found for package kiwiz/ecl
if you know a solution let me know, i will be researching in the meantime
ok so I followed the instructions as best that I could and I am still getting the same loading screen.
here is the output from /var/log/apache2/error.log:
[Fri Sep 30 06:25:02.057285 2016] [mpm_prefork:notice] [pid 10344] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 06:25:02.057297 2016] [core:notice] [pid 10344] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 08:23:05.347173 2016] [mpm_prefork:notice] [pid 10344] AH00169: caught SIGTERM, shutting down [Fri Sep 30 08:23:06.447915 2016] [mpm_prefork:notice] [pid 51868] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 08:23:06.447950 2016] [core:notice] [pid 51868] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 08:23:47.208880 2016] [mpm_prefork:notice] [pid 51868] AH00169: caught SIGTERM, shutting down [Fri Sep 30 08:23:48.301236 2016] [mpm_prefork:notice] [pid 51954] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 08:23:48.301271 2016] [core:notice] [pid 51954] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 08:45:12.081137 2016] [mpm_prefork:notice] [pid 51954] AH00169: caught SIGTERM, shutting down [Fri Sep 30 08:45:43.073060 2016] [mpm_prefork:notice] [pid 1749] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 08:45:43.073272 2016] [core:notice] [pid 1749] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 09:05:34.483383 2016] [mpm_prefork:notice] [pid 1749] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.100.5. Set the 'ServerName' directive globally to suppress this message [Fri Sep 30 09:05:34.525420 2016] [mpm_prefork:notice] [pid 1749] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 09:05:34.525429 2016] [core:notice] [pid 1749] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 09:15:16.018897 2016] [:error] [pid 3223] [client 172.19.100.4:65068] script '/var/www/html/index.php' not found or unable to stat [Fri Sep 30 09:15:44.310526 2016] [mpm_prefork:notice] [pid 1749] AH00171: Graceful restart requested, doing restart AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.100.5. Set the 'ServerName' directive globally to suppress this message [Fri Sep 30 09:15:44.338487 2016] [mpm_prefork:notice] [pid 1749] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations [Fri Sep 30 09:15:44.338495 2016] [core:notice] [pid 1749] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 30 09:16:52.700731 2016] [mpm_prefork:notice] [pid 1749] AH00171: Graceful restart requested, doing restart "/var/log/apache2/error.log" [readonly] 34L, 4251C 1,1 Top
I did notice that it was having problems with the FQDN, The server is in a cloud environment (MS Azure). I tried: -using the ip address during the setup -using the hostname during setup -using the FQDN that we setup on the internal DNS server that is pingable -I tried inputting "localhost", "ipaddress", "hostname", and "hostname.fqdn" in /etc/apache2/httpd.conf with no luck -I replaced the default apache index.html with the /411/htdocs/index.html
Totally stuck.
any recommendations would greatly be appreciated
@ogkpmg I've fixed the './ecl' issue. Do you have another environment you can test out 411 with?
I have multiple environments in Azure, or do you mean on a local hypervisor i.e. virtual box, vmware, etc.
Do you know how to resolve the './ecl' issue?
is this error related to the reason why the home screen is stuck with a loading bar?
Thanks for all your support we are using this application for a huge project to hopefully monitor multiple environments across multiple vlans, or if that is not possible we will setup a 411 monitoring server per environment.
Here is the list of commands and configs that I am following based off the read me. I made some adjustments to get some items to work. I try not to steer away from the documentation as much as possible but let me know any error in my procedures:
config/pre-required installs:
Pre Req
setup dns records
dns1j10
sudo su -
vi /var/named/master/master.kpmg.tech
411monitoring IN A 172.20.100.5
service named restart
411monitoring
sudo vi /etc/hosts
172.20.100.4 dns1j10.kpmg.tech dns1j10
172.20.100.5 411monitoring
update
sudo apt-get update
apache
sudo apt-get install apache2 -y
php 5.5 w/ sqlite3 support
sudo apt-get install libapache2-mod-php -y
sudo apt-get install php-xml -y
sudo apt-get install php7.0-mbstring -y
sudo apt-get install php7.0-sqlite -y
sudo apt-get install php7.0-curl -y
nodejs
sudo apt-get install nodejs-legacy -y
sqlite3
sudo apt-get install npm sqlite3 -y
zip
sudo apt-get install zip -y
unzip
sudo apt-get install unzip -y
Composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Grunt & Bower
sudo npm install -g grunt-cli bower
`
Exim email smtp client:
`Pre Req for Exim
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get -y autoremove
exim4
sudo apt-get -y install exim4
config exim4
sudo dpkg-reconfigure exim4-config
mail sent by smarthost; received via SMTP or fetchmail
localhost #172.20.100.5 or hostname: 411monitoring
127.0.0.1 ; ::1
<empty>
<empty>
smtp.gmail.com::587
<no>
<no>
mbox format in /var/mail/
<no>
donotreply.kpmg.tech@gmail.com
sudo vi /etc/exim4/passwd.client
i
*.google.com:donotreply.kpmg.tech@gmail.com:<password>
esc
:wq
echo test only | mail -s 'Test Subject' orlandogalindo@kpmg.com
echo test only | mail -s 'Test Subject' donotreply.kpmg.tech@gmail.com
exim SMTP logs located:
/var/log/exim4/mainlog
`
Install Elasticsearch
`elasticsesarch
Dependencies:
sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
<enter>
sudo apt-get update
sudo apt-get install oracle-java7-installer -y
<enter>
<tab>
<enter>
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.7.deb
sudo dpkg -i elasticsearch-0.90.7.deb
sudo vi /etc/elasticsearch/elasticsearch.yml
/
network.bind_host: 192.168.0.1
network.bind_host: 411monitoring #network.bind_host: localhost / network.bind_host: 172.20.100.5
script.disable_dynamic: true
esc
:wq
sudo service elasticsearch restart
curl -X GET 'http://172.20.100.5:9200' #curl -X GET 'http://411monitoring:9200'
service elasticsearch stop
service elasticsearch start
test
curl -X POST 'http://172.20.100.5:9200/tutorial/helloworld/1' -d '{ "message": "Hello World!" }'
curl -X GET 'http://172.20.100.5:9200/tutorial/helloworld/1'
curl -X GET 'http://172.20.100.5:9200/tutorial/helloworld/1?pretty=true'
curl -X GET 'http://172.20.100.5:9200/tutorial/helloworld/1?format=yaml'
Setup Apache
enable mod_rewrite
sudo a2enmod rewrite
/etc/init.d/apache2 restart
service apache2 restart
enable mod_headers
sudo a2enmod headers
service apache2 restart
`
Install 411 repo
`411 install
git clone https://github.com/etsy/411.git
vi 411/411.conf if referenced later it will be in ==> vi /var/www/411/411.conf
:%s/HOSTNAME/172.20.100.5/g :%s/HOSTNAME/411monitoring/g
:wq
Sample =======> <VirtualHost *:80>
ServerName 172.20.100.5
php_value include_path ".:/var/www/411/phplib"
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/411/htdocs
# Force this vhost to use a specific 411 instance.
# SetEnv FOURONEONEHOST HOSTNAME
<Directory /var/www/411/htdocs>
AllowOverride Indexes FileInfo Options
Options -Indexes +FollowSymLinks
Order allow,deny //==> npm init --yes https://www.npmjs.com/package/npm-autoinit
Allow from all // npm install
</Directory> || bower init --yes
|| bower install
</VirtualHost> || composer init --yes
sudo mv 411 /var/www || composer install
sudo cp /var/www/411/411.conf /etc/apache2/sites-available
sudo chown -R $USER:$GROUP ~/.npm || sudo npm install -g grunt-cli
sudo chown -R $USER:$GROUP ~/.config || sudo npm install grunt --save-dev
cd /var/www/411 || sudo npm install grunt-contrib-concat --save-dev
npm install If errors occur run the following ==// sudo npm install -g grunt-init
bower install
composer install sudo chown -R $USER $HOME/.composer rm -rf vendor composer.lock composer install --no-dev
vi config.php
:%s/localhost/172.20.100.5/g :%s/172.20.100.5/411monitoring/g
:wq
sqlite3 data.db < db.sql
bin/create_site.php
Creating new site Creating new site
172.20.100.5 Site name: FourOneOne
172.20.100.5 Hostname: 172.20.100.5
donotreply.kpmg.tech@gmail.com From email: donotreply.kpmg.tech@gmail.com
donotreply.kpmg.tech@gmail.com From Error email: donotreply.kpmg.tech@gmail.com
donotreply.kpmg.tech@gmail.com Default To email: donotreply.kpmg.tech@gmail.com
bin/create_user.php
Creating new user
Username: netadmin
Real name: netadmin
Password: 411
netadmin@411monitoring:/var/www/411$ bin/create_user.php
Creating new user
Username: netadmin
Real name: netadmin
Password: 411
Email: donotreply.kpmg.tech@gmail.com
Admin (y/n): y
crontab -u netadmin -e
3
<shift + g>
i
sudo a2ensite 411
service apache2 reload
may have to execute:
sudo chmod -R 755 /var/www
sudo a2dissite 000-default.conf
service apache2 reload name: "FourOneOne",
sudo vi bower.json https://github.com/kiwiz/411
wow that didnt format the way i thought it would, i apologize.
I pushed out a proper release of 411. This should be much easier to set up, you'll just need to run composer. :]
Also, are you sure you uncommented the SetEnv
line? From the log you pasted, it looks like there still the #
in front?
Hello Kiwiz,
Sorry for the delay as my superiors on our current project wanted me to put a halt on using this tool as a proof-of-concept. I was given the OK to continue working on this project, however, I have been given the time line of at least getting this tool up and running within a week. Would it be possible to contact you directly to work through this? Is there a support email to contact you at to continue our correspondence with?
Hey there, I'd recommend checking out the gitter chat room: https://gitter.im/411/Lobby. It should be more responsive than GH issues.
Hello Kiwiz, I will go ahead and try your new release. Do you have a technical (how-to) write up on how to properly install and configure it?
Do I still follow the instructions to a certain point i.e. install all dependencies, etc.?
Do I still put certain files/folders in certain directories?
Please let me know.
so i ran through the runbook again and the install went a little better with less errors but it looks like there are some files still referencing the old 411 path.
I also made sure to uncomment out the SetEnv in
<VirtualHost *:80> ServerName 411monitoring
php_value include_path ".:/var/www/411-1.0.1/phplib"
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/411-1.0.1/htdocs
# Force this vhost to use a specific 411 instance.
SetEnv FOURONEONEHOST 411monitoring
<Directory /var/www/411-1.0.1/htdocs>
AllowOverride Indexes FileInfo Options
Options -Indexes +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
I also ran the create site script and gave it multiple hostnames, both ip, server name only, and servername with domain.
I am still getting the loading screen
Please help! I am on Azure, made configurations on the bind dns server we have configured on the environment.
I also edited the resolv.conf,
What other tricks may I try?
Since you're using the release package, you absolutely shouldn't be seeing a white loading screen anymore (it should be black). Some debugging questions:
Steps I am taking:
The most up-to-date instructions should be in Setup.md
. Does hitting IP_ADDR/api/data
give you anything?
let me try that, i did follow the setup.md located in the docs folder
going to the address displays the following
{"AppName":"411monitoring","Host":"172.20.100.5","Alert":{"States":{},"Resolutions":{},"Defaults":{"alert_date":0,"assignee_type":0,"assignee":0,"content":[],"search_id":0,"state":0,"resolution":0,"escalated":false,"content_hash":"","renderer_data":[],"archived":false,"create_date":0,"update_date":0}},"AlertLog":{"Defaults":{"user_id":0,"alert_id":0,"note":"","action":0,"a":0,"b":0,"archived":false,"create_date":0,"update_date":0}},"Search":{"Categories":{},"Types":[],"Priorities":{},"NotifTypes":{},"NotifFormats":{},"Defaults":{"name":"","query_data":[],"state_data":[],"renderer_data":[],"description":"","category":"","tags":[],"priority":0,"schedule_type":0,"frequency":1,"cron_expression":"* * * * *","range":1,"enabled":true,"assignee_type":0,"assignee":0,"owner":0,"flap_rate":0,"notif_type":1,"notif_format":0,"notif_data":[],"autoclose_threshold":0,"last_status":"","last_execution_date":0,"last_success_date":0,"last_failure_date":0,"last_error_email_date":0,"type":""}},"SearchLog":{"Defaults":{"user_id":0,"search_id":0,"data":[],"description":"","archived":false,"create_date":0,"update_date":0}},"Assignee":{"Types":{}},"Group":{"Types":{},"Defaults":{"type":0,"state":0,"name":"","archived":false,"create_date":0,"update_date":0}},"GroupTarget":{"Defaults":{"group_id":0,"type":0,"user_id":0,"data":"","archived":false,"create_date":0,"update_date":0}},"List":{"Types":{},"Defaults":{"type":0,"url":"","name":"","archived":false,"create_date":0,"update_date":0}},"Target":{"Types":[],"Data":[],"Descriptions":[],"Defaults":{"search_id":0,"lifetime":0,"description":"","data":[],"type":""}},"Filter":{"Types":[],"Data":[],"Descriptions":[],"Defaults":{"search_id":0,"position":0,"lifetime":0,"description":"","data":[],"type":""}},"Report":{"Types":{},"Defaults":{"type":0,"name":"","description":"","frequency":1,"range":1,"assignee_type":0,"assignee":0,"enabled":true,"start_date":0,"archived":false,"create_date":0,"update_date":0}},"ReportTarget":{"Defaults":{"report_id":0,"search_id":0,"position":0,"archived":false,"create_date":0,"update_date":0}},"Job":{"States":{}},"User":{"Me":null,"Models":[],"Defaults":{"name":"","real_name":"","password":"","email":"","admin":false,"settings":[],"archived":false,"create_date":0,"update_date":0}},"Nonce":"c3eonw\/W+L1BP2dJb5GbXNoqGZ+RltGS"}
That looks fine. Can you move to gitter for comms? (Notifications)
ok ty
issue resolved, I will post updated runbook on how to install to avoid the issue i faced. thank you kai.
How was this resolved? facing the same loading screen, IP_ADDR/api/data gives the same output and im on v1.1.0 and ES 2.1.
@praveenuchiha,
did you get my email reply with the attachments? please let me know.
also just make sure that you do not have any configs that reference 411-1-1 update, rename it to 411, this cause a lot of problems in this instance.
Hi @ogkpmg I didnt get any emails from you. Appreciate your effort. I didnt find any configs that reference to 411-1-1. In which config files did you encounter this problem? so that i can take a look at them as well. Also, please kindly resend the email, really appreciate your effort.
I sent you this updated install runbook, please let me know if this works 411 v4 - for public.xlsx
@praveenuchiha The hostname you set up the site with is how 411 detects which site to serve up. Make sure that matches the url you're hitting in your browser. (Or set that 411Host variable).
I keep getting the Apache2 Default Page.
All my configurations has the hostname and even setup the SetEnv as well in the vi /var/www/411/411.conf & bin/create_site.php please help