-
Notifications
You must be signed in to change notification settings - Fork 74
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
Scrapers can't connect to the internet with mitmproxy enabled #1135
Comments
Sigh. I'm seeing it on production now too. I'm guessing it's the updates we did earlier. |
Here's the docker upgrade:
and the full upgrade log for debugging:
|
@auxesis Yes, it's what intercepts the scraper network traffic to record what sites they've scraped.
It's disabled by removing the iptables rules with: https://github.com/openaustralia/morph/blob/master/provisioning/roles/morph-app/files/iptables-morph-remove So it didn't muck anything up restarting the mitmproxy container. However those rules are added on boot so a restart of the server will muck things up. We'll need to manually run that command after a restart until this issue is fixed. |
How about we throw the execution of that script into |
We deliberately add those rules on boot. Shouldn't we just fix the problem? |
After doing routing package updates just now I noticed that after Docker had updated and restarted that the mitmproxy container was just restarting over and over. Attaching to the container showed this backtrace:
I've got no idea why the container is suddenly broken. I even tried downloading it again but get the same result. I've killed the container for now so it doesn't keep rebooting over and over. |
I rebooted the service, but forgot about this stuff. Scrapers were getting connection errors when trying to connect to sites. I then ran:
And now all seems well in the land of morph 🌄 |
When this is fixed we should revert #1148 so that the statistic about pages scraped is shown on the home page once again. |
When that's up and running I'll revert #1148 |
Scrapers can't connect to the internet when mitmproxy is enabled. I think it's because the newish dedicated morph network (192.168.0.0/16) conflicts with the virtualbox bridge network (192.168.11.0/24).
The text was updated successfully, but these errors were encountered: