Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - filz51

Pages: [1]
1
The Server worked stable for more than one day. Looks like some of the changed settings were needed. But I was facing a run out of memory again one hour ago. This time it process "clamd" was killed.

Code: [Select]
Out of memory: Kill process 25856 (clamd) score 189 or sacrifice child.
Killed process 25856 (clamd), UID 989, total-vm 910636 kB, anon-rss: 786100 kB, file-rss: 0kB, shame: 0kB

Code: [Select]
Output from vmstat:
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
  r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 16  3 1407748 156600      0 270352   69   56  2134   825  193  113 13  4 82  0  0

I don't understand what the logs are telling me and what I have to do now.

2
Hi Sandeep

Thanks, I understand. I added a new line in /etc/redis.conf
Code: [Select]
maxmemory 524288000
but Redis-Server was gone again after some hours. Side effect: php-fpm.log is now 1 GB+ and shows a new warning:
Code: [Select]
server reached max_children setting (4), consider raising it I guess that warning is related to the run out of memory.

Is there a method to calculate reasonable values for the memory limit or shall I try with lower values and see what is happening? And what are reasonable values for max_children?


3
redis-server is filling the swap file (2 GB) up to 100%. The system kills the process (redis-server) then. How can I prevent this? No clue in redis.log but maybe redis.conf needs to be adjusted? Any suggestions?
Cheers, filz51

4
MySQL / Re: Recommendations from MySQLTuner
« on: February 27, 2020, 08:56:32 AM »
Thanks, ejsolutions. It's working with the corrections you suggested. That was not so obvious for me.

5
MySQL / Recommendations from MySQLTuner
« on: February 20, 2020, 12:49:09 PM »
Hi, here is the output from MySQLTuner
General recommendations:
    MySQL started within last 24 hours - recommendations may be inaccurate
    Reduce or eliminate unclosed connections and network issues
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Set thread_cache_size to 4 as a starting value
    Performance should be activated for better diagnostics
    Consider installing Sys schema from https://github.com/mysql/mysql-sys
    Read this before changing innodb_log_file_size and/or innodb_log_files_in_group: http://bit.ly/2wgkDvS
Variables to adjust:
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit (> 1M, or use smaller result sets)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    thread_cache_size (start at 4)
    performance_schema = ON enable PFS
    innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
    innodb_buffer_pool_instances (=1)

How do I deal with that? I added the recommendations to adjust variables to /etc/my.cnf just below the line
!includedir /etc/my.cnf.d
Code: [Select]
[mysqld]
    query_cache_size = 0
    query_cache_type = 0
    query_cache_limit = 3M
    tmp_table_size = 32M
    max_heap_table_size = 32M
    thread_cache_size = 4
    performance_schema = ON enable PFS
    innodb_log_file_size should be =16M
    innodb_buffer_pool_instances =1

Restarting MySQL mariadb.service resulted in database connection errors. is a server reboot necessary or is the syntax not correct?

6
Updates / Re: Postfix Mailserver not starting
« on: February 19, 2020, 03:49:13 PM »
Thanks for the answers.
The the server is running again.  :D

7
Updates / Postfix Mailserver not starting
« on: February 19, 2020, 02:36:18 PM »
I made latest updates by yum and rebooted the server. after reboot Postfix Mailserver can't start.
--> postfix.service failed

Logs:
 postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mit 2020-02-19 15:22:09 CET; 14s ago
  Process: 10641 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)
  Process: 10635 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 10632 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)



Feb 19 15:22:07  postfix[10641]: Postfix is running with backwards-compatible default settings
Feb 19 15:22:07  postfix[10641]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Feb 19 15:22:07  postfix[10641]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Feb 19 15:22:07  postfix[10641]: /usr/libexec/postfix/post-install: Error: /etc/postfix/postfix-files is not a file.
Feb 19 15:22:07  postfix/postfix-script[10659]: fatal: unable to create missing queue directories
Feb 19 15:22:08  postfix/postfix-script[10660]: fatal: Postfix integrity check failed!
Feb 19 15:22:09  systemd[1]: postfix.service: control process exited, code=exited status=1
Feb 19 15:22:09  systemd[1]: Failed to start Postfix Mail Transport Agent.
Feb 19 15:22:09  systemd[1]: Unit postfix.service entered failed state.
Feb 19 15:22:09  systemd[1]: postfix.service failed.

How can I solve this?

8
How to / change LOCALE
« on: February 09, 2020, 02:34:14 PM »
Hi

# localectl returns the value I want: de_CH.utf-8.
But #locale does not, it's all en_US.utf-8. How can I change that?
Output #locale:
LANG=en_US.utf-8
LC_CTYPE="en_US.utf-8"
LC_NUMERIC="en_US.utf-8"
LC_TIME="en_US.utf-8"
LC_COLLATE="en_US.utf-8"
LC_MONETARY="en_US.utf-8"
LC_MESSAGES="en_US.utf-8"
LC_PAPER="en_US.utf-8"
LC_NAME="en_US.utf-8"
LC_ADDRESS="en_US.utf-8"
LC_TELEPHONE="en_US.utf-8"
LC_MEASUREMENT="en_US.utf-8"
LC_IDENTIFICATION="en_US.utf-8"
LC_ALL=en_US.utf-8

Thanks for help
filz51



9
Backup / User-Backup: initialized by cronjob?
« on: May 16, 2019, 06:53:43 AM »
Hi
Is the creation of user backups a cronjob and if so, WHAT TIME does it initialize?
Or does CWP mention changes and is backing them up in real time?
Please help me to understand it.
Blue skies, Filz51

10
CentOS-WebPanel Bugs / Re: AutoSSL Does not Install Correct Domain
« on: May 15, 2019, 11:31:13 AM »
Now all certificates are valid. I guess rebuilding all vHosts worked but I can't reproduce it. Thanks anyway.

11
CentOS-WebPanel Bugs / Re: AutoSSL Does not Install Correct Domain
« on: May 09, 2019, 04:21:05 PM »
I have the same issue. "The hostname (cwp.example.com) does NOT match the Common Name in the certificate (www.example.com). This certificate is currently invalid for this host." The certificates for my domains are valid but not the one for the host.

As I understand, I have to change the Common Name. But how can I do it? I found this solution:
https://community.letsencrypt.org/t/how-can-i-easily-make-the-base-name-and-common-name-the-same/36998 (see Post 2). Does this really work? I don't want to mess it up.

12
High Performance / Re: Wordpress - High-Performance instructions
« on: May 03, 2019, 05:56:30 PM »
I have two image resources that should never be cached. Nice with Apache only but how to apply the caching rules with this setting?
When I switch to this server configuration Varnish and Nginx need a special configuration to bypass caching rules for these resources. What rules and where must they be added in the vHost-Configs for Varnish and Nginx for the resources with URLs https://example.com/webcam/new.jpg and https://example.com/resize/webcam-small.jpg?

13
Apache / Syntax error: #httpd -M
« on: April 10, 2019, 06:36:01 PM »
Hi Guys

I have no clue if I misconfigured something but when I  run #httpd -M
I get: AH00526: Syntax error on line 67 of /etc/httpd/conf.d/mod_expires.conf:
<FilesMatch> directive requires additional arguments
I didn't change that file at all. How can I solve this to run the command?

CWP version: 0.9.8.796 | Apache/2.4.37 | PHP version: 7.2.16

Pages: [1]