[squid-users] HELP: UPDATE
Ok, I rm -rf`d all directories named squid from my box thinking that attempting to do a fresh install after would fix everything NOPE, and wtf, apparently the install binary wont recreate the directories now, yay! wtf symlink madness any suggestions how to just get squid to reinstall from apt would be, so awesome. I removed squid due to a botched attempt to build and isntall from source, ok, then when I reinstalled squid after doing a make uninstall, squid was complaining about the error pages missing, it was looking for them in a new dir that it should not have been. rm -rf /usr/share/squid3/ --squid3.1.6 SHOULD be looking here rm -rf /usr/share/squid-langpack ---but,squid keeps looking for them here deviant:/# apt-get install squid3 Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: squidclient squid-cgi resolvconf The following NEW packages will be installed: squid3 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/1,445 kB of archives. After this operation, 3,666 kB of additional disk space will be used. Selecting previously deselected package squid3. (Reading database ... 249217 files and directories currently installed.) Unpacking squid3 (from .../squid3_3.1.6-1.2+squeeze1_i386.deb) ... Processing triggers for man-db ... Setting up squid3 (3.1.6-1.2+squeeze1) ... Restarting Squid HTTP Proxy 3.x: squid3FATAL: MIME Config Table /usr/share/squid3/mime.conf: (2) No such file or directory Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 16320 KB Page faults with physical i/o: 0 failed! cache.log === 2011/12/31 00:10:46| Starting Squid Cache version 3.1.6 for i486-pc-linux-gnu... 2011/12/31 00:10:46| Process ID 25488 2011/12/31 00:10:46| With 65535 file descriptors available 2011/12/31 00:10:46| Initializing IP Cache... 2011/12/31 00:10:46| DNS Socket created at [::], FD 7 2011/12/31 00:10:46| DNS Socket created at 0.0.0.0, FD 8 2011/12/31 00:10:46| Adding nameserver 127.0.0.1 from squid.conf 2011/12/31 00:10:46| errorpage.cc(293) errorTryLoadText: '/usr/share/squid3/errors/templates/ERR_LIFETIME_EXP': (2) No such file or directory FATAL: failed to find or read error text file. Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.040 seconds = 0.008 user + 0.032 sys Maximum Resident Size: 41792 KB Page faults with physical i/o: 0
Re: [squid-users] HELP: UPDATE
On 31/12/2011 21:32, someone wrote: Ok, I rm -rf`d all directories named squid from my box thinking that attempting to do a fresh install after would fix everything NOPE, and wtf, apparently the install binary wont recreate the directories now, yay! wtf symlink madness any suggestions how to just get squid to reinstall from apt would be, so awesome. I removed squid due to a botched attempt to build and isntall from source, ok, then when I reinstalled squid after doing a make uninstall, squid was complaining about the error pages missing, it was looking for them in a new dir that it should not have been. rm -rf /usr/share/squid3/--squid3.1.6 SHOULD be looking here rm -rf /usr/share/squid-langpack---but,squid keeps looking for them here deviant:/# apt-get install squid3 Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: squidclient squid-cgi resolvconf The following NEW packages will be installed: squid3 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/1,445 kB of archives. After this operation, 3,666 kB of additional disk space will be used. Selecting previously deselected package squid3. (Reading database ... 249217 files and directories currently installed.) Unpacking squid3 (from .../squid3_3.1.6-1.2+squeeze1_i386.deb) ... Processing triggers for man-db ... Setting up squid3 (3.1.6-1.2+squeeze1) ... Restarting Squid HTTP Proxy 3.x: squid3FATAL: MIME Config Table /usr/share/squid3/mime.conf: (2) No such file or directory Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 16320 KB Page faults with physical i/o: 0 failed! cache.log === 2011/12/31 00:10:46| Starting Squid Cache version 3.1.6 for i486-pc-linux-gnu... 2011/12/31 00:10:46| Process ID 25488 2011/12/31 00:10:46| With 65535 file descriptors available 2011/12/31 00:10:46| Initializing IP Cache... 2011/12/31 00:10:46| DNS Socket created at [::], FD 7 2011/12/31 00:10:46| DNS Socket created at 0.0.0.0, FD 8 2011/12/31 00:10:46| Adding nameserver 127.0.0.1 from squid.conf 2011/12/31 00:10:46| errorpage.cc(293) errorTryLoadText: '/usr/share/squid3/errors/templates/ERR_LIFETIME_EXP': (2) No such file or directory FATAL: failed to find or read error text file. Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.040 seconds = 0.008 user + 0.032 sys Maximum Resident Size: 41792 KB Page faults with physical i/o: 0 Hi, What does dpkg -l | grep squid show ? Cheers, Pieter
Re: [squid-users] HELP: UPDATE
THANK YOU for your response Peter. deviant:/home/devadmin# dpkg -l | grep squid ii sarg 2.2.5-2 squid analysis report generator rc squid 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) ii squid-cgi 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control CGI ii squid-common 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) - common files ii squid-langpack20100628-1 Localized error pages for Squid rc squid33.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) ii squid3-common 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - common files ii squidclient 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control utility But yeah basically after I failed to compiled a newer version, because I need SSL, I just decided I would reinstall the vanilla squid3.1.6 from debian squeeze repos, but when I installed it, it kept complaining about files missing, as if somehow some symlinks were made, and Im guessing that make install from debian 3.1.8 must have not cleaned up after itself after doing a 'make uninstall' of course im totally freaking out coz producting is in 5 hours and I just figured Id clarify. On Sat, 2011-12-31 at 22:45 +1300, Pieter De Wit wrote: On 31/12/2011 21:32, someone wrote: Ok, I rm -rf`d all directories named squid from my box thinking that attempting to do a fresh install after would fix everything NOPE, and wtf, apparently the install binary wont recreate the directories now, yay! wtf symlink madness any suggestions how to just get squid to reinstall from apt would be, so awesome. I removed squid due to a botched attempt to build and isntall from source, ok, then when I reinstalled squid after doing a make uninstall, squid was complaining about the error pages missing, it was looking for them in a new dir that it should not have been. rm -rf /usr/share/squid3/--squid3.1.6 SHOULD be looking here rm -rf /usr/share/squid-langpack---but,squid keeps looking for them here deviant:/# apt-get install squid3 Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: squidclient squid-cgi resolvconf The following NEW packages will be installed: squid3 0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded. Need to get 0 B/1,445 kB of archives. After this operation, 3,666 kB of additional disk space will be used. Selecting previously deselected package squid3. (Reading database ... 249217 files and directories currently installed.) Unpacking squid3 (from .../squid3_3.1.6-1.2+squeeze1_i386.deb) ... Processing triggers for man-db ... Setting up squid3 (3.1.6-1.2+squeeze1) ... Restarting Squid HTTP Proxy 3.x: squid3FATAL: MIME Config Table /usr/share/squid3/mime.conf: (2) No such file or directory Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 16320 KB Page faults with physical i/o: 0 failed! cache.log === 2011/12/31 00:10:46| Starting Squid Cache version 3.1.6 for i486-pc-linux-gnu... 2011/12/31 00:10:46| Process ID 25488 2011/12/31 00:10:46| With 65535 file descriptors available 2011/12/31 00:10:46| Initializing IP Cache... 2011/12/31 00:10:46| DNS Socket created at [::], FD 7 2011/12/31 00:10:46| DNS Socket created at 0.0.0.0, FD 8 2011/12/31 00:10:46| Adding nameserver 127.0.0.1 from squid.conf 2011/12/31 00:10:46| errorpage.cc(293) errorTryLoadText: '/usr/share/squid3/errors/templates/ERR_LIFETIME_EXP': (2) No such file or directory FATAL: failed to find or read error text file. Squid Cache (Version 3.1.6): Terminated abnormally. CPU Usage: 0.040 seconds = 0.008 user + 0.032 sys Maximum Resident Size: 41792 KB Page faults with physical i/o: 0 Hi, What does dpkg -l | grep squid show ? Cheers, Pieter
Re: [squid-users] HELP: UPDATE
On 31/12/2011 11:56 p.m., someone wrote: THANK YOU for your response Peter. deviant:/home/devadmin# dpkg -l | grep squid ii sarg 2.2.5-2 squid analysis report generator rc squid 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) ii squid-cgi 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control CGI ii squid-common 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) - common files ii squid-langpack20100628-1 Localized error pages for Squid rc squid33.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) ii squid3-common 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - common files ii squidclient 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control utility But yeah basically after I failed to compiled a newer version, because I need SSL, I just decided I would reinstall the vanilla squid3.1.6 from debian squeeze repos, but when I installed it, it kept complaining about files missing, as if somehow some symlinks were made, and Im guessing that make install from debian 3.1.8 must have not cleaned up after itself after doing a 'make uninstall' of course im totally freaking out coz producting is in 5 hours and I just figured Id clarify. aptitude purge to remove a package in future ;). You will need to begin by running aptitude purge squid squid3 squid-langpack squid-common squid3-common. Then re-install squid3 and apt should be able to pull the others back in properly as dependencies. wiki.squid-cache.org/KnowledgeBase/Debian has the set of minimum required ./configure options to build squid for Debian. *Except* that the official packages use squid3 instead of squid in the paths, and the custom built binary is also called /usr/sbin/squid so the squid3 packages /etc/init.d/squid3 script needs a small edit to change the executables name. Amos
Re: [squid-users] HELP: UPDATE
On 31/12/2011 10:45 p.m., Pieter De Wit wrote: On 31/12/2011 21:32, someone wrote: Ok, I rm -rf`d all directories named squid from my box thinking that attempting to do a fresh install after would fix everything NOPE, and wtf, apparently the install binary wont recreate the directories now, yay! wtf symlink madness any suggestions how to just get squid to reinstall from apt would be, so awesome. I removed squid due to a botched attempt to build and isntall from source, ok, then when I reinstalled squid after doing a make uninstall, squid was complaining about the error pages missing, it was looking for them in a new dir that it should not have been. rm -rf /usr/share/squid3/--squid3.1.6 SHOULD be looking here rm -rf /usr/share/squid-langpack---but,squid keeps looking for them here No. Squid 3.1 uses error page templates provided by the langpack. It is correct. At this point I agree with Pieter suggestion. Use dpkg -l | grep squid to find all the packages which you may have damaged by removing squid directories. At the minimum there will be squid3, squid3-common and squid-langpack. When you have determined what needs repairing use aptitude purge followed by the package names to drop them out of your system. Then and re-install them. The squid wiki.squid-cache.org/KnowledgeBase/Debian has the required options to build squid for Debian. Amos
Re: [squid-users] HELP: UPDATE
Thanks guys! ---noob! it worked! I did try apt-get purge by itself, wasnt aware that I needed to also include the names of the packages, but IT WORKED! THANK YOU! well tommarow Ill get back at compiling and I will check out that link of requisites for building squid amos. THANKS AGAIN! BACK IN PRODUCTION... On Sun, 2012-01-01 at 00:17 +1300, Amos Jeffries wrote: On 31/12/2011 11:56 p.m., someone wrote: THANK YOU for your response Peter. deviant:/home/devadmin# dpkg -l | grep squid ii sarg 2.2.5-2 squid analysis report generator rc squid 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) ii squid-cgi 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control CGI ii squid-common 2.7.STABLE9-2.1 Internet object cache (WWW proxy cache) - common files ii squid-langpack20100628-1 Localized error pages for Squid rc squid33.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) ii squid3-common 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - common files ii squidclient 3.1.6-1.2+squeeze1 A full featured Web Proxy cache (HTTP proxy) - control utility But yeah basically after I failed to compiled a newer version, because I need SSL, I just decided I would reinstall the vanilla squid3.1.6 from debian squeeze repos, but when I installed it, it kept complaining about files missing, as if somehow some symlinks were made, and Im guessing that make install from debian 3.1.8 must have not cleaned up after itself after doing a 'make uninstall' of course im totally freaking out coz producting is in 5 hours and I just figured Id clarify. aptitude purge to remove a package in future ;). You will need to begin by running aptitude purge squid squid3 squid-langpack squid-common squid3-common. Then re-install squid3 and apt should be able to pull the others back in properly as dependencies. wiki.squid-cache.org/KnowledgeBase/Debian has the set of minimum required ./configure options to build squid for Debian. *Except* that the official packages use squid3 instead of squid in the paths, and the custom built binary is also called /usr/sbin/squid so the squid3 packages /etc/init.d/squid3 script needs a small edit to change the executables name. Amos