Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Is there a way to view an event or status log? or maybe a debug mode? #878

Open
Jieiku opened this issue Nov 4, 2022 · 1 comment
Labels
question Further information is requested

Comments

@Jieiku
Copy link

Jieiku commented Nov 4, 2022

Is there a way to view an event or status log? or maybe a debug mode?

I have installed whoogle into a proxmox lxc container, when I reboot the container no problem, but once I access the whoogle search page it goes to 100% usage, it still works, but 1 thread stays pegged at 100% usage, this was not always the case so I am not sure what happened, I have another install that does not do this, so I could technically clone that container to this location but I would like to find the cause if possible and just fix it.

2022-11-03_18-39-25

I use haproxy as a reverse proxy with ssl termination, it forward the requests directly to the proxmox lxc container using the whoogle 5000 port.

For anyone curious, this is how I installed:

sudo apt install git python3 python3-venv
sudo reboot
sudo su
cd
git clone https://github.com/benbusby/whoogle-search.git
cd whoogle-search
git checkout tags/v0.7.1
cp whoogle.template.env whoogle.env
nano whoogle.env
WHOOGLE_CONFIG_URL=https://whoogle.example.com/
python3 -m venv venv
source venv/bin/activate
pip install wheel
pip install -r requirements.txt
./run
sudo nano /lib/systemd/system/whoogle.service
[Unit]
Description=Whoogle

[Service]
Environment=WHOOGLE_DOTENV=1
Type=simple
User=root
WorkingDirectory=/root/whoogle-search
ExecStart=/root/whoogle-search/venv/bin/python3 -um app --host 0.0.0.0 --port 5000
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
RestartSec=3
SyslogIdentifier=whoogle

[Install]
WantedBy=multi-user.target
sudo systemctl start whoogle
sudo systemctl enable whoogle
sudo systemctl status whoogle
@Jieiku Jieiku added the question Further information is requested label Nov 4, 2022
@Jieiku
Copy link
Author

Jieiku commented Nov 4, 2022

hmmm I adjusted the haproxy ACL and now its no longer pegging out, would still like to know how to debug though incase it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant