Skocz do zawartości

paplo22

Użytkownicy
  • Zawartość

    31
  • Rejestracja

  • Ostatnio

Reputacja

0 Normalna

1 obserwujący

O paplo22

  • Ranga
    Czasami na forum

Informacje osobiste

  • Imię
    Pawel
  1. Witam struktura: przykładowe dane: orders (1,1,'2015-12-23') orders (2,1,'2015-12-23') order_products (1,2,8) order_products (2,2,1) deliveries(1,1,'2015-12-23') deliveries(2,1,'2015-12-23') deliveries_products(1,1,15) deliveries_products(1,2,10) deliveries_products(2,1,10) deliveries_products(2,2,5) products(1,Bluzka) products(2,Sukienka) i teraz głowie się i nie umie wyświetlić produktu z jego aktualna ilością, zrobiłem takie zapytanie: SELECT products.product_id, products.product_name, SUM(deliveries_products.quantity), SUM(order_products.quantity) FROM products LEFT JOIN deliveries_products Using(product_id) LEFT JOIN order_products Using(product_id) GROUP BY product_id to zapytanie jest najbliże tego co chcę uzyskać wypisuje: 1, Bluzka, 25, NULL 2, Sukienka, 30, 18 Dlaczego on mi podwaja ten drugi produkt? w sensie powinno być 15 (dostawy 10 + 5 ), a robi *2, oraz powinno być 9 ( bo zamówień na prod 2 mam 8 i 1 ) Na pewno coś brakuje w zapytaniu lub jest całkowicie źle wiec proszę o pomoc
  2. Po email do administracji hekko ze nie mogę wykorzystać całej pamieć dostałem emaila Serwery VPS w ofertach OpenVZ przeważnie dysponują większą ilością pamięci, ale wadą jest, że OpenVZ zlicza użytą pamięć wirtualną. Przykładowo, każdy proces w systemie domyślnie posiada pamięć na stos wielkości 8M, co jest traktowane jako zarezerwowana pamięć. Daje to gwarancję, że proces otrzyma całą pamięć, którą zarezerwował wcześniej, ale jest to też wada jeżeli chodzi o programy, które nadmiernie rezerwują pamięć. Aby zniwelować ten negatywny efekt, zalecamy dodanie w pliku /etc/init.d/rc, poniżej linijki "umask 022", poniższej linii: ulimit -s 640 Po restarcie systemu, spowoduje to zmniejszenie domyślnego rozmiaru stosu dla aplikacji (zwłaszcza dla Apache w trybie worker), dzięki czemu łączne zużycie pamięci wirtualnej będzie mniejsze. 640kB pamięci dla stosu jest wystarczające dla aplikacji typu apache, mysql, php, itp. a więc zrobiłem tak jak napisali root@root:/var/log/apache2# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 513923 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65536 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 640 cpu time (seconds, -t) unlimited max user processes (-u) 513923 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited lecz nie pomogło dalej co jakiś czas mam error, chyba jedynym rozwiązaniem w moim przypadku będzie podwyższenie pakietu aby privvmpages był wiekszy [Fri Oct 02 14:14:38.474846 2015] [mpm_prefork:error] [pid 491] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Fri Oct 02 14:14:48.477400 2015] [mpm_prefork:error] [pid 491] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Fri Oct 02 14:14:58.563695 2015] [core:notice] [pid 491] AH00052: child pid 8492 exit signal Segmentation fault (11) [Fri Oct 02 14:14:58.563797 2015] [core:notice] [pid 491] AH00052: child pid 8494 exit signal Segmentation fault (11) dziękuje wszystkim za rady
  3. sorki ze tak dopiero po takim czasie odpisuje ale problem występował tylko raz/dwa razy na dzień, wiec go zignorowałem ale nie daje mi spokoju nadal, wiec zrobiłem tak jak mi poleciłeś test pamięci sprawdzenie dostępnej pamięci przed testem: root@root:/var/log/apache2# free -m total used free shared buffers cached Mem: 3072 2883 188 126 0 1900 -/+ buffers/cache: 982 2089 Swap: 0 0 0 teraz test chciałem przetestować 1000M bo niby mam 2GB gwarantowane i 3GB Maksymalnie, a że aktualnie aplikacje zajmują mi 982M wiec było by blisko ~2GB root@root:/var/log/apache2# memtester 1000M 1 memtester version 4.3.0 (64-bit) Copyright (C) 2001-2012 Charles Cazabon. Licensed under the GNU General Public License version 2 (only). pagesize is 4096 pagesizemask is 0xfffffffffffff000 want 1000MB (1048576000 bytes) got 809MB (849006592 bytes), trying mlock ...locked. Loop 1/1: Stuck Address : ok Random Value : ok Compare XOR : ok Compare SUB : ok Compare MUL : ok Compare DIV : ok Compare OR : ok Compare AND : ok Sequential Increment: ok Solid Bits : ok Block Sequential : ok Checkerboard : ok Bit Spread : ok Bit Flip : ok Walking Ones : ok Walking Zeroes : ok 8-bit Writes : ok 16-bit Writes : ok Done. dostałem dostęp tylko do 809M? dlaczego? na drugiej konsoli podczas testowania chciałem sprawdzić sobie htop i free i to co dostałem: root@root:/var/log/apache2# htop -bash: fork: Cannot allocate memory root@root:/var/log/apache2# free -m -bash: fork: Cannot allocate memory root@root:/var/log/apache2# free -m total used free shared buffers cached Mem: 3072 3032 39 126 0 1242 -/+ buffers/cache: 1790 1281 Swap: 0 0 0 root@root:/var/log/apache2# htop -bash: fork: Cannot allocate memory root@root:/var/log/apache2# free -m -bash: fork: Cannot allocate memory root@root:/var/log/apache2# free -m total used free shared buffers cached Mem: 3072 3033 38 126 0 1242 -/+ buffers/cache: 1790 1281 Swap: 0 0 0 root@root:/var/log/apache2# free -m -bash: fork: Cannot allocate memory root@root:/var/log/apache2# free -m -bash: fork: Cannot allocate memory root@root:/var/log/apache2# htop -bash: fork: Cannot allocate memory Teraz proszę o jakieś wyjaśnienie jak by ktoś był tak miły Dlaczego mogę wykorzystać tylko 1790M? najbardziej prawdopodobne (choć nie jestem pewien na 100%) ze tamte 1 lub 2 razy dziennie ("cannot allocate memory") było przez "easyuploader" on czasem sortuje sobie dane a jest ich dużo. Hekko.pl ma dobre opinie tutaj na forum, więć czemu się tak dzieje na moim serwerze?
  4. nie mam możliwości zwiększenia tego limitu... musiałbym wykupić wyższy pakiet. Da się coś jeszcze z tym zrobić? da się jakoś zmniejszyć zużycie privvmpages? privvmpages This is the memory allocation limit. This parameter allows controlling the amount of memory allocated by applications. If the failcnt value increases on this parameter, most likely there is not a sufficient amount of memory available to run the application. Ale jak nie mam pamięci na uruchamianie aplikacji... przez procesy mam ~1000 i cached ~~2000... to że za dużo cached przydziela mi to może być tym spowodowane? ale wszędzie pisze ze tak działa linux własnie ....
  5. Podam w linku do screena żeby było lepiej widac http://images67.fotosik.pl/1200/6f6efe88d7256763.jpg
  6. [Tue Sep 22 10:26:22.992482 2015] [mpm_prefork:error] [pid 13894] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process dalej błędy z pamięcią, i tak nagle to się dzieje, w logach już nie ma takiego ruchu ale dalej stronka wyrzuca błędy o pamieć, i nagle od 7 w logach nie było żadnego ruchy a tutaj o 10 nagle przestało działać root@hekko:/var/log/apache2# ls -bash: fork: Cannot allocate memory root@hekko:/var/log/apache2# service apache2 restart -bash: fork: Cannot allocate memory root@hekko:/var/log/apache2# service apache2 restart Failed to fork TTY ask password agent: Cannot allocate memory Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details. root@hekko:/var/log/apache2# systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: resources) since Tue 2015-09-22 10:30:04 CEST; 14s ago Process: 22085 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 16125 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 22113 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) Sep 22 10:28:06 hekko apache2[22113]: Action 'start' failed. ..... na stronce w cpanelu na hekko jest 2gb gwarantowane 3 maksymalnie i cały czas mi pokazywało ~95% ale na "htop" było tylko ~1200 a na "free -m" pokazywało w "Mem:" ze wolnego tylko 200mb (ale wiem ze na to się nie patrz) w -/+ buffers/cache: pokazywało ze wolnego ~~1500 czyli prawidłowo i nagle jak przestało działać na hekko było 0/0 MB, i wtedy nic się nie dało zrobić dopiero po restarcie serwera wróciło do porządku i aktualnie pokazuje 1,5gb(ciekawe na jak długo) to winna hekko? lecz prędzej moja, tylko w czym problem Aktualnie na "htop" pokazuje 950/3075MB większości to mysql, rożnie od 20 do 30 procesów MEM% 11,5 ... reszta procesów nie przekracza MEM% ~1,00 Jak zdiagnozować problem? proszę o poradę gdzie szukać problemu bo chciałbym poczytać o tym tylko nie wiem za co się zabrać.
  7. Sep 21 18:50:01 mojserver sshd[9956]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=31.163.9.11 user=root Sep 21 18:50:01 mojserver CRON[9958]: pam_unix(cron:session): session opened for user www-data by (uid=0) Sep 21 18:50:02 mojserver CRON[9958]: pam_unix(cron:session): session closed for user www-data Sep 21 18:50:03 mojserver sshd[9956]: Failed password for root from 31.163.9.11 port 57336 ssh2 Sep 21 18:50:03 mojserver sshd[9956]: Connection closed by 31.163.9.11 [preauth] Sep 21 19:00:01 mojserver CRON[10185]: pam_unix(cron:session): session opened for user www-data by (uid=0) Sep 21 19:00:02 mojserver CRON[10185]: pam_unix(cron:session): session closed for user www-data Sep 21 19:01:01 mojserver CRON[10199]: pam_unix(cron:session): session opened for user root by (uid=0) Sep 21 19:01:01 mojserver CRON[10200]: pam_unix(cron:session): session opened for user root by (uid=0) Sep 21 19:01:01 mojserver CRON[10200]: pam_unix(cron:session): session closed for user root Sep 21 19:01:01 mojserver CRON[10199]: pam_unix(cron:session): session closed for user root Sep 21 19:09:01 mojserver CRON[10263]: pam_unix(cron:session): session opened for user root by (uid=0) Sep 21 19:09:01 mojserver CRON[10263]: pam_unix(cron:session): session closed for user root Sep 21 19:10:01 mojserver CRON[10299]: pam_unix(cron:session): session opened for user www-data by (uid=0) Sep 21 19:10:02 mojserver CRON[10299]: pam_unix(cron:session): session closed for user www-data Sep 21 19:20:01 mojserver CRON[10523]: pam_unix(cron:session): session opened for user root by (uid=0) Sep 21 19:20:01 mojserver CRON[10524]: pam_unix(cron:session): session opened for user www-data by (uid=0) Sep 21 19:20:01 mojserver CRON[10523]: pam_unix(cron:session): session closed for user root Sep 21 19:20:02 mojserver CRON[10524]: pam_unix(cron:session): session closed for user www-data tak samo nieznana aktywność CRON'a, jak zapobiec tym atakom? co wpisać w google aby poczytać o tym? edit: z tym sobie poradziłem "To resolve this, login to the CLI and cd to /etc/pam.d In your favorite editor of choice, open: common-session-noninteractive Find: session required pam_unix.so Above it, add: session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid and then restart CRON: /etc/init.d/cron restart" PS: po zwiększeniu czasu bana narzazie w logach mały ruch, ale jak jeszcze mogę się zabezpieczyć przed podobnymi sytuacjami atakami?
  8. tak vps, tak, nie to nie są logi apacha to były: "auth.log" to jest z apache2/error.log [Mon Sep 21 14:21:52.162712 2015] [core:notice] [pid 681] AH00052: child pid 3607 exit signal Segmentation fault (11) [Mon Sep 21 14:25:08.417886 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:25:18.419344 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:25:28.422004 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:25:38.422177 2015] [core:notice] [pid 681] AH00052: child pid 3632 exit signal Segmentation fault (11) [Mon Sep 21 14:25:38.422232 2015] [core:notice] [pid 681] AH00052: child pid 3666 exit signal Segmentation fault (11) [Mon Sep 21 14:36:52.376769 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process Fatal Python error: Can't initialize tuple type [Mon Sep 21 14:37:02.378157 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:37:12.379145 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:37:22.388325 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:37:32.388562 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:37:42.390735 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:37:52.395981 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:02.398618 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:12.399701 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:22.401021 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:32.402196 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:42.403325 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:38:52.404287 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:02.405509 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:12.406107 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:22.406581 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:32.409566 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:42.410756 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:39:52.414162 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:02.415410 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:12.416394 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:22.420797 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:32.423767 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:42.424358 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:40:52.425144 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:41:02.425325 2015] [core:notice] [pid 681] AH00052: child pid 4169 exit signal Segmentation fault (11) [Mon Sep 21 14:41:02.425438 2015] [core:notice] [pid 681] AH00052: child pid 4178 exit signal Segmentation fault (11) [Mon Sep 21 14:41:02.425473 2015] [core:notice] [pid 681] AH00052: child pid 4192 exit signal Segmentation fault (11) [Mon Sep 21 14:41:02.425506 2015] [core:notice] [pid 681] AH00052: child pid 4194 exit signal Segmentation fault (11) [Mon Sep 21 14:41:02.425537 2015] [core:notice] [pid 681] AH00052: child pid 4197 exit signal Segmentation fault (11) [Mon Sep 21 14:41:02.425571 2015] [core:notice] [pid 681] AH00052: child pid 4220 exit signal Aborted (6) [Mon Sep 21 14:54:06.303101 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [crit] Memory allocation failed, aborting process. [Mon Sep 21 14:54:16.304063 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [Mon Sep 21 14:54:26.307722 2015] [mpm_prefork:error] [pid 681] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 563, in <module> main() File "/usr/lib/python2.7/site.py", line 545, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python2.7/site.py", line 261, in getusersitepackages USER_SITE = get_path('purelib', '%s_user' % os.name) File "/usr/lib/python2.7/sysconfig.py", line 497, in get_path return get_paths(scheme, vars, expand)[name] File "/usr/lib/python2.7/sysconfig.py", line 488, in get_paths return _expand_vars(scheme, vars) File "/usr/lib/python2.7/sysconfig.py", line 176, in _expand_vars _extend_dict(vars, get_config_vars()) File "/usr/lib/python2.7/sysconfig.py", line 170, in _extend_dict target_dict[key] = value MemoryError [Mon Sep 21 14:54:36.307884 2015] [core:notice] [pid 681] AH00052: child pid 4641 exit signal Aborted (6) [crit] Memory allocation failed, aborting process. Fatal Python error: Can't initialize complex type [Mon Sep 21 14:55:51.429408 2015] [core:notice] [pid 681] AH00052: child pid 4696 exit signal Aborted (6) [Mon Sep 21 14:55:51.429475 2015] [core:notice] [pid 681] AH00052: child pid 4714 exit signal Aborted (6) [crit] Memory allocation failed, aborting process. [crit] Memory allocation failed, aborting process. [crit] Memory allocation failed, aborting process. [Mon Sep 21 14:56:31.510055 2015] [core:notice] [pid 681] AH00052: child pid 4751 exit signal Aborted (6) [Mon Sep 21 14:56:31.510131 2015] [core:notice] [pid 681] AH00052: child pid 4759 exit signal Aborted (6) [Mon Sep 21 14:56:31.510158 2015] [core:notice] [pid 681] AH00052: child pid 4768 exit signal Aborted (6) mojastronka.pl-error.log [Mon Sep 21 14:21:45.000038 2015] [:error] [pid 3573] [client 109.95.151.209:61423] PHP Fatal error: Out of memory (allocated 3670016) (tried to allocate 3$ [Mon Sep 21 14:25:17.205289 2015] [:error] [pid 3664] [client 46.171.11.194:50674] PHP Fatal error: Out of memory (allocated 16252928) (tried to allocate 3$ [Mon Sep 21 14:25:17.402190 2015] [:error] [pid 3658] [client 46.171.11.194:50676] PHP Fatal error: Out of memory (allocated 3145728) (tried to allocate 72$ [Mon Sep 21 14:25:22.461310 2015] [:error] [pid 3698] [client 94.232.32.128:60231] PHP Fatal error: Out of memory (allocated 3145728) (tried to allocate 72$ [Mon Sep 21 14:25:24.950000 2015] [:error] [pid 3666] [client 83.7.251.42:53701] PHP Fatal error: Out of memory (allocated 2621440) (tried to allocate 673 $ [Mon Sep 21 14:25:29.448623 2015] [:error] [pid 3673] [client 83.7.251.42:53702] PHP Fatal error: Out of memory (allocated 4718592) (tried to allocate 72 b$ [Mon Sep 21 14:25:29.676655 2015] [:error] [pid 3681] [client 83.7.251.42:53703] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 32 by$ [Mon Sep 21 14:25:29.771831 2015] [:error] [pid 3672] [client 83.7.251.42:53704] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 72 by$ [Mon Sep 21 14:25:32.852603 2015] [:error] [pid 3632] [client 92.65.146.142:47700] PHP Fatal error: Out of memory (allocated 2359296) (tried to allocate 24$ [Mon Sep 21 14:37:11.985576 2015] [:error] [pid 4176] [client 83.30.165.73:43699] PHP Fatal error: Out of memory (allocated 7602176) (tried to allocate 72 $ [Mon Sep 21 14:37:18.509804 2015] [:error] [pid 4199] [client 46.149.223.17:54627] PHP Fatal error: Out of memory (allocated 8126464) (tried to allocate 12$ [Mon Sep 21 14:37:18.646717 2015] [:error] [pid 4193] [client 207.46.13.147:19487] PHP Fatal error: Out of memory (allocated 7077888) (tried to allocate 24$ [Mon Sep 21 14:37:20.314391 2015] [:error] [pid 4199] [client 83.30.165.73:43709] PHP Fatal error: Out of memory (allocated 7602176) (tried to allocate 72 $ [Mon Sep 21 14:37:21.618851 2015] [:error] [pid 4173] [client 66.102.9.34:55447] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72 by$ [Mon Sep 21 14:37:21.787314 2015] [:error] [pid 4195] [client 188.146.3.143:25084] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 32 $ [Mon Sep 21 14:37:22.072895 2015] [:error] [pid 4165] [client 66.102.9.45:47776] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72 by$ [Mon Sep 21 14:37:22.208998 2015] [:error] [pid 4210] [client 188.146.3.143:24983] PHP Fatal error: Out of memory (allocated 262144) (tried to allocate 72 $ [Mon Sep 21 14:37:22.446904 2015] [:error] [pid 4186] [client 185.55.65.173:53094] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72 $ [Mon Sep 21 14:37:33.194584 2015] [:error] [pid 4177] [client 37.248.123.247:40334] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72$ [Mon Sep 21 14:37:33.325213 2015] [:error] [pid 4169] [client 37.248.123.247:40335] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72$ [Mon Sep 21 14:37:37.995280 2015] [:error] [pid 4197] [client 66.102.9.34:36983] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 72 by$ [Mon Sep 21 14:37:40.906597 2015] [:error] [pid 4178] [client 37.248.123.247:40338] PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 24$ [Mon Sep 21 14:37:46.496250 2015] [:error] [pid 4172] [client 178.37.0.217:47220] PHP Fatal error: Out of memory (allocated 15990784) (tried to allocate 14$ [Mon Sep 21 14:37:53.066442 2015] [:error] [pid 4177] [client 185.55.65.173:53107] PHP Fatal error: Out of memory (allocated 15466496) (tried to allocate 6$ [Mon Sep 21 14:37:53.326218 2015] [:error] [pid 4176] [client 185.55.65.173:53109] PHP Fatal error: Out of memory (allocated 4456448) (tried to allocate 16$ [Mon Sep 21 14:37:53.916092 2015] [:error] [pid 4194] [client 37.248.123.247:40348] PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 24$ [Mon Sep 21 14:38:16.207696 2015] [:error] [pid 4162] [client 178.37.0.217:47222] PHP Fatal error: Out of memory (allocated 10223616) (tried to allocate 80$ [Mon Sep 21 14:38:45.540483 2015] [:error] [pid 4209] [client 37.248.123.247:40373] PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate 7$ [Mon Sep 21 14:39:03.208531 2015] [:error] [pid 4176] [client 37.248.123.247:40375] PHP Fatal error: Out of memory (allocated 9961472) (tried to allocate 7$ [Mon Sep 21 14:39:04.934877 2015] [:error] [pid 4173] [client 37.248.123.247:40376] PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 32$ [Mon Sep 21 14:39:28.693838 2015] [:error] [pid 4175] [client 83.7.251.42:54012] PHP Fatal error: Out of memory (allocated 1048576) (tried to allocate 72 b$ [Mon Sep 21 14:39:29.532267 2015] [:error] [pid 4164] [client 109.241.229.205:62244] PHP Fatal error: Out of memory (allocated 1048576) (tried to allocate $ [Mon Sep 21 14:39:29.776026 2015] [:error] [pid 4172] [client 109.241.229.205:62245] PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 2$ [Mon Sep 21 14:39:41.653006 2015] [:error] [pid 4192] [client 83.7.251.42:54013] PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 248 b$ [Mon Sep 21 14:40:07.220329 2015] [:error] [pid 4169] [client 50.97.37.202:40475] PHP Fatal error: Out of memory (allocated 786432) (tried to allocate 248 $ [Mon Sep 21 14:40:20.390731 2015] [:error] [pid 4144] [client 83.7.251.42:54031] PHP Fatal error: Out of memory (allocated 7602176) (tried to allocate 72 b$ [Mon Sep 21 14:40:25.059362 2015] [:error] [pid 4166] [client 83.7.251.42:54032] PHP Fatal error: Out of memory (allocated 7864320) (tried to allocate 133 $ [Mon Sep 21 14:40:33.135813 2015] [:error] [pid 4223] [client 109.95.151.209:61587] PHP Fatal error: Out of memory (allocated 4980736) (tried to allocate 1$
  9. Witam Napotkałem problem coś się dzieje z pamięcią (serwer ma 3BG), lecz nie dzieje się to non-stop czasami, przy probie restartu apache2 wyskoczył błąd: wiec wpisałem: journalctl -xn -- Logs begin at Mon 2015-09-07 23:19:36 CEST, end at Mon 2015-09-14 12:44:16 CEST. -- Sep 14 12:44:06 serwer sshd[18962]: Failed password for root from 43.229.53.54 port 56268 ssh2 Sep 14 12:44:08 serwer sshd[18962]: Failed password for root from 43.229.53.54 port 56268 ssh2 Sep 14 12:44:08 serwer sshd[18962]: Received disconnect from 43.229.53.54: 11: [preauth] Sep 14 12:44:08 serwer sshd[18962]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.54 user=root Sep 14 12:44:10 serwer sshd[18964]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.54 user=root Sep 14 12:44:12 serwer sshd[18964]: Failed password for root from 43.229.53.54 port 17928 ssh2 Sep 14 12:44:14 serwer sshd[18964]: Failed password for root from 43.229.53.54 port 17928 ssh2 Sep 14 12:44:16 serwer sshd[18964]: Failed password for root from 43.229.53.54 port 17928 ssh2 Sep 14 12:44:16 serwer sshd[18964]: Received disconnect from 43.229.53.54: 11: [preauth] Sep 14 12:44:16 serwer sshd[18964]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.54 user=root a wiec wszedłem do logów logowania się i jest dużo logowań nie udanych z Sep 21 13:58:07 server sshd[2764]: Failed password for root from 43.229.53.16 port 42197 ssh2 Sep 21 13:58:10 server sshd[2764]: Failed password for root from 43.229.53.16 port 42197 ssh2 Sep 21 13:58:13 server sshd[2764]: Failed password for root from 43.229.53.16 port 42197 ssh2 Sep 21 13:58:13 server sshd[2764]: Received disconnect from 43.229.53.16: 11: [preauth] Sep 21 13:58:13 server sshd[2764]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root Sep 21 13:58:15 server sshd[2789]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root Sep 21 13:58:17 server sshd[2789]: Failed password for root from 43.229.53.16 port 10800 ssh2 Sep 21 13:58:19 server sshd[2789]: Failed password for root from 43.229.53.16 port 10800 ssh2 Sep 21 13:58:21 server sshd[2789]: Failed password for root from 43.229.53.16 port 10800 ssh2 Sep 21 06:42:00 ottanta sshd[19142]: Failed password for root from 43.229.53.16 port 51543 ssh2 Sep 21 06:42:01 ottanta sshd[19145]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.93.218.108 user=root Sep 21 06:42:02 server sshd[19142]: Failed password for root from 43.229.53.16 port 51543 ssh2 Sep 21 06:42:03 server sshd[19145]: Failed password for root from 218.93.218.108 port 43217 ssh2 Sep 21 06:42:03 server sshd[19142]: Received disconnect from 43.229.53.16: 11: [preauth] Sep 21 06:42:03 server sshd[19142]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root Sep 21 06:42:05 ottanta sshd[19147]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root Sep 21 06:42:08 server sshd[19147]: Failed password for root from 43.229.53.16 port 16492 ssh2 Sep 21 06:42:10 server sshd[19147]: Failed password for root from 43.229.53.16 port 16492 ssh2 Sep 21 06:42:12 server sshd[19147]: Failed password for root from 43.229.53.16 port 16492 ssh2 Sep 21 06:42:13 server sshd[19147]: Received disconnect from 43.229.53.16: 11: [preauth] Sep 21 06:42:13 server sshd[19147]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root Sep 21 06:42:15 server sshd[19152]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=43.229.53.16 user=root zablokowanie tego ip pomoże w związku z pamięcią? jak ustawić fail2ban aby takie coś się już nie powtórzyło aktualnie mam standardowe 10min bana jak zwiększę to znacząco to pomoże? Chyba ze jest to inna przyczyna, wiec proszę o rade, uczę się wiec szukam rad innych.
  10. Witam Mam pytanie bo już nie mogę nigdzie znaleźć odpowiedzi, zainstalowałem iRedMail na VPS wszystko ok, mam 3 komputery dwa z win7 i jeden z win8.1, próbuję się zalogować na pocztę poprzez outlook na win7 jest 2007 i 2013 na oby działa beż problemu na win8.1 był 2007 potem 2013 i po prostu nie da się co bym nie zrobił wyskakuje błąd podczas testowania: "Log onto incoming mail server(POP3) / Send test e-mail message: your server does not support the connection encryption type you have specified. Try changing the encryption method. Can...." wszystko już próbowałem także możliwej opcji zmiany konfiguracji... na win7 działa pod 995 i 587 TLS... a na win8.1 nie działa. Co może być przyczyną serwer? windows? jakiś sugestie? podaje iptables ale raczej nie powinno to być problem z tym ponieważ tak jak mówiłem na dwóch komputerach co są obok działa root@:~# iptables -L -vn Chain INPUT (policy DROP 754 packets, 46383 bytes) pkts bytes target prot opt in out source destination 1834K 285M fail2ban-postfix tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 1834K 285M fail2ban-dovecot tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 1834K 285M fail2ban-roundcube tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 2525K 371M fail2ban-default tcp -- * * 0.0.0.0/0 0.0.0.0/0 2525K 371M fail2ban-default tcp -- * * 0.0.0.0/0 0.0.0.0/0 2447K 367M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 28314 1699K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 16 602 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 8 115 6144 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 46014 2534K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 707 38941 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 52 2872 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 17 884 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 4 208 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 150 7768 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 3 140 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 49 2552 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:3050 Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 351K packets, 386M bytes) pkts bytes target prot opt in out source destination Chain fail2ban-default (2 references) pkts bytes target prot opt in out source destination 19 1780 REJECT all -- * * 222.186.3.112 0.0.0.0/0 reject-with icmp-port-unreachable 42 2852 REJECT all -- * * 43.229.53.51 0.0.0.0/0 reject-with icmp-port-unreachable 35 2464 REJECT all -- * * 43.229.53.17 0.0.0.0/0 reject-with icmp-port-unreachable 5049K 742M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-dovecot (1 references) pkts bytes target prot opt in out source destination 1834K 285M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-postfix (1 references) pkts bytes target prot opt in out source destination 13 580 REJECT all -- * * 46.20.33.72 0.0.0.0/0 reject-with icmp-port-unreachable 87 5220 REJECT all -- * * 195.187.141.70 0.0.0.0/0 reject-with icmp-port-unreachable 1834K 285M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
  11. dzięki za odpowiedź restart pomógł oraz "iptables -P INPUT ACCEPT" z konsoli przez serial
  12. dzięki to dlatego to mi znikało bo robiłem restart, dzięki wielkie, z tym już sobie poradzę
  13. root@:~# iptables -L -vn Chain INPUT (policy DROP 138 packets, 8765 bytes) pkts bytes target prot opt in out source destination 37108 4782K fail2ban-postfix tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 37108 4782K fail2ban-dovecot tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 37108 4782K fail2ban-roundcube tcp -- * * 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4190 46630 6344K fail2ban-default tcp -- * * 0.0.0.0/0 0.0.0.0/0 46631 6344K fail2ban-default tcp -- * * 0.0.0.0/0 0.0.0.0/0 45312 6284K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 642 38520 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 8 3 140 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 685 36408 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 59 3132 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 4 240 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 3 156 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 Chain FORWARD (policy DROP 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain OUTPUT (policy ACCEPT 59276 packets, 65M bytes) pkts bytes target prot opt in out source destination Chain fail2ban-default (2 references) pkts bytes target prot opt in out source destination 93261 13M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 0 0 RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-dovecot (1 references) pkts bytes target prot opt in out source destination 37108 4782K RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-postfix (1 references) pkts bytes target prot opt in out source destination 37108 4782K RETURN all -- * * 0.0.0.0/0 0.0.0.0/0 Chain fail2ban-roundcube (1 references) pkts bytes target prot opt in out source destination 37108 4782K RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
  14. Witam na vps chyba zablokowałem wszystkie ip wpisałem komendę: iptables -P INPUT DROP i wywaliło mnie ze wszystkiego i nie da się połaczyć, jak mogę to przywrócić? nie mogę się nawet połączyć przez ssh mam chyba dostęp do konsoli przez serial ale co mam wpisać żeby to przywrócić? jaki plik ewentualnie mogę poprosić o przywrócenie z backupu żeby było tak jak przedtem?
  15. Witam ponownie Niby zrobiło się tak jak chciałem ale to nie pomogło w sensie nie całkiem... jest: ale dalej tego portu mi nie widzi jako dostępnego... sprawdzam na http://www.t1shopper.com/tools/port-scan/ Scanning ports on (TEN GŁÓWNE SERWER DEBIAN 8) (TEN GŁÓWNE SERWER DEBIAN 8) isn't responding on port 3050 (gds_db). Scanning ports on (TEN DRUGI DEBIAN 7) (TEN DRUGI DEBIAN 7) is responding on port 3050 (gds_db). w czym tkwi jeszcze problem oprócz konfigu fbserver'a ? bo są identyczne już: /var/porownanie# diff firebird37.conf firebird.conf 214,216c214,216 < # allocate more pages to the cache for every database. By default, the < # SuperServer allocates 2048 pages for each database and the classic < # allocates 75 pages per client connection per database. --- > # allocate more pages to the cache for every database. By default > # SuperServer allocates 2048 pages for each database whilst Classic > # and SuperClassic allocate 75 pages per client connection per database.
×