Got
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.1</center>
</body>
</html>
In reponse to:
curl -H 'Host: crash-reports' -F 'ProductName=Test' -F 'Version=1.0' -F upload_file_minidump=@7d381dc5-51e2-4887-956b-1ae9c2130109.dump
http://localhost/submit
I suspect due to connector failing to start at
sudo systemctl enable socorro-collector socorro-processor
sudo systemctl start socorro-collector socorro-processor
stage.
Suspect problem with python-virtualenv but not sure how to fix/what to do.
Should the above systemctl be done inside the virtual-env? i.e.
. /data/socorro/socorro-virtualenv/bin/activate
(socorro-virtualenv)[root@localhost ]# sudo systemctl start socorro-collector socorro-processor
or not (documentation doesn't say to but can't explain why connector is failing to statr.
Output of journalctl is where I picked up on possible virtualenv issue, see below:
Oct 06 12:39:29 localhost.localdomain bash[12521]: compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-4) on 04 October 2016 20:01:53
Oct 06 12:39:29 localhost.localdomain bash[12521]: os: Linux-3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015
Oct 06 12:39:29 localhost.localdomain bash[12521]: nodename: localhost.localdomain
Oct 06 12:39:29 localhost.localdomain bash[12521]: machine: x86_64
Oct 06 12:39:29 localhost.localdomain bash[12521]: clock source: unix
Oct 06 12:39:29 localhost.localdomain bash[12521]: pcre jit disabled
Oct 06 12:39:29 localhost.localdomain bash[12521]: detected number of CPU cores: 1
Oct 06 12:39:29 localhost.localdomain bash[12521]: current working directory: /home/socorro
Oct 06 12:39:29 localhost.localdomain bash[12521]: detected binary path: /data/socorro/socorro-virtualenv/bin/uwsgi
Oct 06 12:39:29 localhost.localdomain bash[12521]: setgid() to 994
Oct 06 12:39:29 localhost.localdomain bash[12521]: setuid() to 1000
Oct 06 12:39:29 localhost.localdomain bash[12521]: your processes number limit is 15087
Oct 06 12:39:29 localhost.localdomain bash[12521]: your memory page size is 4096 bytes
Oct 06 12:39:29 localhost.localdomain bash[12521]: detected max file descriptor number: 1024
Oct 06 12:39:29 localhost.localdomain bash[12521]: lock engine: pthread robust mutexes
Oct 06 12:39:29 localhost.localdomain bash[12521]: thunder lock: disabled (you can enable it with --thunder-lock)
Oct 06 12:39:29 localhost.localdomain bash[12521]: uwsgi socket 0 bound to UNIX address /var/run/uwsgi/socorro/socorro-collector.sock fd 3
Oct 06 12:39:29 localhost.localdomain bash[12521]: Python version: 2.7.11 (default, Sep 22 2016, 20:18:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
Oct 06 12:39:29 localhost.localdomain bash[12521]: Set PythonHome to /data/socorro/socorro-virtualenv
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-processor.service: main process exited, code=exited, status=1/FAILURE
Oct 06 12:39:29 localhost.localdomain systemd[1]: Unit socorro-processor.service entered failed state.
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-processor.service failed.
Oct 06 12:39:29 localhost.localdomain bash[12520]: Could not find platform independent libraries <prefix>
Oct 06 12:39:29 localhost.localdomain bash[12520]: Could not find platform dependent libraries <exec_prefix>
Oct 06 12:39:29 localhost.localdomain bash[12520]: Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Oct 06 12:39:29 localhost.localdomain bash[12520]: ImportError: No module named site
Oct 06 12:39:29 localhost.localdomain bash[12520]: 2016/10/06 12:39:29 [ERR] unexpected exit from subprocess (1)
Oct 06 12:39:29 localhost.localdomain bash[12521]: Traceback (most recent call last):
Oct 06 12:39:29 localhost.localdomain bash[12521]: File "/data/socorro/socorro-virtualenv/lib/python2.7/site.py", line 67, in <module>
Oct 06 12:39:29 localhost.localdomain bash[12521]: import os
Oct 06 12:39:29 localhost.localdomain bash[12521]: ImportError: No module named os
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-collector.service: main process exited, code=exited, status=1/FAILURE
Oct 06 12:39:29 localhost.localdomain systemd[1]: Unit socorro-collector.service entered failed state.
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-collector.service failed.
Oct 06 12:39:29 localhost.localdomain bash[12521]: 2016/10/06 12:39:29 [ERR] unexpected exit from subprocess (1)
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-collector.service holdoff time over, scheduling restart.
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-processor.service holdoff time over, scheduling restart.
Oct 06 12:39:29 localhost.localdomain systemd[1]: start request repeated too quickly for socorro-processor.service
Oct 06 12:39:29 localhost.localdomain systemd[1]: Failed to start Socorro Processor.
Oct 06 12:39:29 localhost.localdomain systemd[1]: Unit socorro-processor.service entered failed state.
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-processor.service failed.
Oct 06 12:39:29 localhost.localdomain systemd[1]: start request repeated too quickly for socorro-collector.service
Oct 06 12:39:29 localhost.localdomain systemd[1]: Failed to start Socorro Collector.
Oct 06 12:39:29 localhost.localdomain systemd[1]: Unit socorro-collector.service entered failed state.
Oct 06 12:39:29 localhost.localdomain systemd[1]: socorro-collector.service failed.
Oct 06 12:58:02 localhost.localdomain sshd[12012]: Received disconnect from
10.50.154.56: 11: disconnected by user
Oct 06 12:58:02 localhost.localdomain sshd[12012]: pam_unix(sshd:session): session closed for user root
Oct 06 12:58:02 localhost.localdomain systemd-logind[627]: Removed session 20.
Oct 06 12:58:02 localhost.localdomain systemd[1]: Removed slice user-0.slice.
Oct 06 12:58:02 localhost.localdomain systemd[1]: Stopping user-0.slice.
Oct 06 12:58:07 localhost.localdomain sshd[12562]: Accepted password for root from 10.50.154.56 port 50458 ssh2
Oct 06 12:58:07 localhost.localdomain kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
Oct 06 12:58:07 localhost.localdomain systemd[1]: Created slice user-0.slice.
Oct 06 12:58:07 localhost.localdomain systemd[1]: Starting user-0.slice.
Oct 06 12:58:07 localhost.localdomain systemd[1]: Started Session 22 of user root.
Oct 06 12:58:07 localhost.localdomain systemd-logind[627]: New session 22 of user root.
Oct 06 12:58:07 localhost.localdomain sshd[12562]: pam_unix(sshd:session): session opened for user root by (uid=0)
Oct 06 12:58:07 localhost.localdomain systemd[1]: Starting Session 22 of user root.
Oct 06 13:01:01 localhost.localdomain systemd[1]: Started Session 23 of user root.
Oct 06 13:01:01 localhost.localdomain systemd[1]: Starting Session 23 of user root.
Oct 06 13:01:01 localhost.localdomain CROND[12585]: (root) CMD (run-parts /etc/cron.hourly)
Oct 06 13:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[12588]: starting 0anacron
Oct 06 13:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[12594]: finished 0anacron
Oct 06 13:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[12596]: starting 0yum-hourly.cron
Oct 06 13:01:01 localhost.localdomain run-parts(/etc/cron.hourly)[12600]: finished 0yum-hourly.cron