mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 12:15:50 +03:00
[GH-ISSUE #531] [BUG] ERNO 98 in REPLIT Instance #342
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#342
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vacom13 on GitHub (Nov 10, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/531
Describe the bug
This is an issue of the replit instance. At times it gives me an os error
[ERNO 98] Address already in usewhen I go to rerun the instance after closing the browser tab once. The reason that I found for the same is that the file is still present in the process stack after the last run.Once this happens, it shows whoogle in a browser tab even though replit doesn't show that it is actually still running. Any changes I would make to the code wont show up till I rerun the instance but this is where the issue is as replit just shows the following after I click on run.
P.S. The whoogle instance that shows up in the browser is from the last runtime and therefore doesn't have any new modifications
To Reproduce
Steps to reproduce the behavior:
Deployment Method
runexecutableVersion of Whoogle Search
Desktop:
OS: Windows 11 Build 22494
Smartphone:
Additional context
I suppose, this is an error related to replit. However a fix I found for the same would be to run
kill -9 $(ps -A | grep python | awk '{print $1}')in the terminal before rerunning the instance. I was thinking that maybe we could just add this to the.replitfile to automate the running of this command in the terminal thereby making sure that the service has stopped in process stack.Refer to
https://stackoverflow.com/questions/4465959/python-errno-98-address-already-in-usefor more context.@Albonycal commented on GitHub (Nov 11, 2021):
it's because the old one is still running
do
killall -q python3and then start whoogle again..;)
@vacom13 commented on GitHub (Nov 11, 2021):
I get that part. I was thinking that maybe it could just be implemented it so that the command runs everytime the button is clicked, making sure the user doesn't have to maybe?
@benbusby commented on GitHub (Nov 12, 2021):
Should probably target by port, i.e.
kill $(lsof -t -i:5000)or something, rather than just a blanket kill command forpython. Otherwise yeah sounds like a good idea. I'll try to add it soon, or someone else can if they want.