Services menu bug?
-
might be leftover from a previous version of squid. try removing squid, see which of both gets removed.
then manually edit config.xml and look for:<menu> <name>Squid Proxy Server</name> (or the other one) <tooltiptext>Modify the proxy server settings</tooltiptext> Services <url>/pkg_edit.php?xml=squid.xml&id=0</url> </menu>
remove whatever is left after uninstalling squid pkg.
then reinstall squid pkg -
What is the path for the file?
The one that remained is Proxy Server so that's what needs to be removed.
-
/conf/
-
Ok I made the edit but it automatically restores the old file when I get back to the menu.
-
https://doc.pfsense.org/index.php/How_can_I_reload_the_config_after_manually_editing_config.xml
-
It happens too quick. I remove:
<menu> <name>Proxy server</name> <tooltiptext>Modify the proxy server's settings</tooltiptext> Services <url>/pkg_edit.php?xml=squid.xml&id=0</url> </menu>
Then go to rm /tmp/config.cache and its right back with a warning at the top of the screen telling me the file was missing then restoring. Think this bug is best left for the developers.
-
There is no bug for us to fix. The old squid package left that there. If you're getting an error, it's because the config edit wasn't right.
-
Shouldn't the upgrade to squid 3 that replaced my 2.x when I installed pf 2.3 had fixed that?
-
No, because the squid 3.x package has no idea what that tag is. It's from the old squid package on pfSense 2.2.x, if it didn't come out properly there is nothing the current squid package can do for that since it's not a tag put there by the current package.
-
I get that but I was not running squid 3 on 2.2.x which mean the upgrade to 2.3 left a piece when prior version of squid was removed. The question is how to fix it? I tried the above but the backup gets restored automatically. What am I missing? Why does it keep coming back?
-
The question is how to fix it? I tried the above but the backup gets restored automatically. What am I missing? Why does it keep coming back?
Editing the entry out of the config is the easiest way. If you get the message that a config is being restored it means you removed too much or the wrong chunk, leaving it with invalid XML. Be sure to only remove the one menu tag and its contents and no lines above/below it.
Downloading a config backup, editing it, and then restoring it is the safest way, rather than editing live.