LINUX.ORG.RU

squid не стартует вобще, в том числе и из командной строки, или только из стартовых скриптов? В логи что-нибудь пишется?

mky ★★★★★ ()
Ответ на: комментарий от m2ru

В конфиг сквида access_log /var/log/squid3/access.log squid

И запускай.

Как запускаешь, кстати? Никаких сообщений при запуске нет?

USF ()
Ответ на: комментарий от USF

1408186464.327 12 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json

1408186468.532 66 192.168.0.2 TCP_MISS/200 381 GET http://ad.admixer.net/logevents.aspx user DIRECT/168.63.37.7 text/html

1408186468.616 151 192.168.0.2 TCP_MISS/204 243 GET http://monitor.admixer.net/scalls.aspx user DIRECT/23.102.32.94 -

1408186474.331 12 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json 1408186479.358 12 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json 1408186484.330 12 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json 1408186489.341 22 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json 1408186494.941 0 192.168.0.2 TCP_DENIED/407 1668 CONNECT safebrowsing.google.com:443 - NONE/- text/html

1408186503.349 30 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.22 application/json 1408186524.381 61 192.168.0.2 TCP_MISS/200 396 GET http://pagestat.mmi.bemobile.ua/pagestat/PageStatEntry user DIRECT/194.247.175.19 application/json

m2ru ()
Ответ на: комментарий от USF

root@domain [/usr/home/admin]#df -H

Filesystem Size Used Avail Capacity Mounted on

/dev/ad6s1a 5.0G 377M 4.2G 8% /

devfs 1.0k 1.0k 0B 100% /dev

/dev/ad6s1d 150G 138G -14M 100% /var

/dev/ad6s1e 150G 9.8G 129G 7% /usr

devfs 1.0k 1.0k 0B 100% /var/named/dev

m2ru ()
Ответ на: комментарий от m2ru

Кеш можно так

find /var/squid/cache/ -type f -delete

Хотя для начала советую логи почистить, зависит от того, в каком они там виде, если ротация, удалить архивы старые, если один файл, попробуй просто удалить и cat /dev/null > /var/squid/logs/logfile

USF ()
Ответ на: комментарий от USF

спасибо большое!!! С меня пиво :) напишы на почту мойник_здесь@ukr.net

m2ru ()
Ответ на: комментарий от USF

root@domain [/var/squid/logs]#ls

access.log cache.log squid.core

access.log.20111026 cashe.log squid.pid

access.log.2013515 logfile store.log

а эти файлы как удалить? access.log.20111026 и access.log.2013515

m2ru ()
Ответ на: комментарий от USF

опьять проблема

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/share/sams/mysqltools.php on line 289 Access denied for user sams@localhost to MySQL

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/share/sams/mysqltools.php on line 296

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /usr/local/share/sams/mysqltools.php on line 296

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/share/sams/mysqltools.php on line 303

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /usr/local/share/sams/mysqltools.php on line 303

SAMS databases not connected

The base squidlog not created or the user sams has no rights to connection to it

The base squidctrl not created or the user sams has no rights to connection to it

m2ru ()
Ответ на: комментарий от m2ru

походу mysqld не стартует вообще...

пробую

root@domain [/usr/home/user]#/usr/local/etc/rc.d/mysql-server restart mysql not running? (check /var/db/mysql/domain.pid). Starting mysql. root@domain [/usr/home/user]#

m2ru ()
Ответ на: комментарий от USF

root@ydomain [/usr/home/sysadmin]#tail -f /var/db/mysql/domain.err 140818 12:21:17 InnoDB: Started; log sequence number 22 4250875089 140818 12:21:17 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use 140818 12:21:17 [ERROR] Do you already have another mysqld server running on port: 3306 ? 140818 12:21:17 [ERROR] Aborting

140818 12:21:17 InnoDB: Starting shutdown... 140818 12:21:23 InnoDB: Shutdown completed; log sequence number 22 4250875089 140818 12:21:23 [Note] /usr/local/libexec/mysqld: Shutdown complete

140818 12:21:23 mysqld_safe mysqld from pid file /var/db/mysql/domain.pid ended

m2ru ()
Ответ на: комментарий от m2ru

root@domain [/usr/home/user]#ps -aux | grep mysql

mysql 1825 0.0 0.5 20016 15648 ?? Is Sat12PM 35:44.83 /bin/sh /usr/l

mysql 72428 0.0 0.7 66824 24364 ?? I 6:34PM 0:52.16 /usr/local/lib

root 54914 0.0 0.0 3500 1024 0 S+ 3:15PM 0:00.00 grep mysql

m2ru ()
Ответ на: комментарий от m2ru

Судя по

[ERROR] Can't start server: Bind on TCP/IP port: Address already in use

У вас уже запущен mysql. Если же он не работает, то просто убейте все процессы mysql и запустите заново(предварительно проверьте, все ли «убилось»)

USF ()
Ответ на: комментарий от USF

top выводит

1825 mysql 1 47 0 20016K 15648K wait 0 35:45 0.00% sh

а команда ps -aux | grep mysql

mysql 1825 0.0 0.5 20016 15648 ?? Is Sat12PM 35:44.83 /bin/sh /usr/l

mysql 72428 0.0 0.7 66824 24364 ?? I 6:34PM 0:52.16

/usr/local/lib root 64073 0.0 0.0 3500 1024 0 S+ 3:45PM 0:00.00 grep mysql

Как их правильно убить?

m2ru ()
Ответ на: комментарий от USF

убил, запустил, но когда захожу в вебинтерфейс squid,

через один раз выскакивает Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/share/sams/mysqltools.php on line 289

m2ru ()
Ответ на: комментарий от USF

InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to log sequence number 22 4258735649 140818 16:12:38 InnoDB: Starting an apply batch of log records to the database. .. InnoDB: Progress in percents: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 7 3 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 InnoDB: Apply batch completed 140818 16:12:39 InnoDB: Started; log sequence number 22 4258735649 140818 16:12:39 [Note] Event Scheduler: Loaded 0 events 140818 16:12:39 [Note] /usr/local/libexec/mysqld: ready for connections. Version: '5.1.55' socket: '/tmp/mysql.sock' port: 3306 FreeBSD port: mysql-se rver-5.1.55 140818 16:12:45 InnoDB: Assertion failure in thread 709127808 in file btr/btr0p cur.c line 402 InnoDB: Failing assertion: btr_page_get_prev(next_page, mtr) == buf_frame_get_pa ge_no(page) InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDB: If you get repeated assertion failures or crashes, even InnoDB: immediately after the mysqld startup, there may be InnoDB: corruption in the InnoDB tablespace. Please refer to InnoDB: http://dev.mysql.com/doc/refman/5.1/en/forcing-innodb-recovery.html InnoDB: about forcing recovery. 140818 16:12:45 - mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.

key_buffer_size=8384512 read_buffer_size=131072 max_used_connections=4 max_threads=151 threads_connected=4 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 337711 K bytes of memory Hope that's ok; if not, decrease some variables in the equation.

140818 16:12:45 mysqld_safe mysqld restarted 140818 16:12:45 [Note] Plugin 'FEDERATED' is disabled. 140818 16:12:45 InnoDB: Initializing buffer pool, size = 8.0M 140818 16:12:45 InnoDB: Completed initialization of buffer pool InnoDB: Log scan progressed past the checkpoint lsn 22 4258370632 140818 16:12:45 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... InnoDB: Doing recovery: scanned up to log sequence number 22 4258744919 140818 16:12:45 InnoDB: Starting an apply batch of log records to the database.

может его в safe mode запустить?

m2ru ()
Ответ на: комментарий от USF

тоже самое выскакивает... может добавитесь так проще будет или аську напишыте. Я через час или полтора часа дома буду.

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /usr/local/share/sams/mysqltools.php on line 289 Access denied for user sams@localhost to MySQL

m2ru ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.