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.


Topics - bentsea

Pages: [1]
1
CentOS 7 Problems / Yum Manager "no such file or directory"
« on: August 28, 2020, 03:16:05 PM »
Hello,

I'm trying to keep my server up to date and in my Yum Manager I have a recommendation to update selinux-policy-minimum.noarch. When running the update and after confirming the update, the CWP panel says that the software is updated successfully, I suppose because the installer itself did not fail, even though the updates are not installed and continue to remain in the section.

The output to the console is as follows:

Code: [Select]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.raystedman.org
 * centos-sclo-rh: mirror.wdc1.us.leaseweb.net
 * centos-sclo-sclo: ftp.ussg.iu.edu
 * epel: mirror.dal.nexril.net
 * extras: centos-distro.cavecreek.net
 * remi-safe: repo1.dal.innoscale.net
 * updates: repo1.dal.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package selinux-policy-minimum.noarch 0:3.13.1-252.el7.1 will be updated
---> Package selinux-policy-minimum.noarch 0:3.13.1-266.el7_8.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch       Version                Repository   Size
================================================================================
Updating:
 selinux-policy-minimum     noarch     3.13.1-266.el7_8.1     updates     7.0 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total download size: 7.0 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
/var/tmp/rpm-tmp.94uBvf: line 19: /usr/share/selinux/minimum/instmodules.lst: No such file or directory
error: %pre(selinux-policy-minimum-3.13.1-266.el7_8.1.noarch) scriptlet failed, exit status 1
  Verifying  : selinux-policy-minimum-3.13.1-252.el7.1.noarch               1/2
  Verifying  : selinux-policy-minimum-3.13.1-266.el7_8.1.noarch             2/2

Failed:
  selinux-policy-minimum.noarch 0:3.13.1-252.el7.1                             
  selinux-policy-minimum.noarch 0:3.13.1-266.el7_8.1                           

Complete!

Can anyone help resolve this "no such file or directory" issue so that I can install the update? Do I need to install this update? If I don't, can this be excluded from future update prompts? Will this create dependency chains in the future for other updates I need?

Code: [Select]
[root@server3 ~]# curl http://dl1.centos-webpanel.com/files/s_scripts/sinfo.sh|sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   899  100   899    0     0   1721      0 --:--:-- --:--:-- --:--:--  1718
===============================================
Kernel:
Linux server3.bentsea.net 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

CPU info:
model name      : Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40GHz

Release:
CentOS Linux release 7.8.2003 (Core)

Arch:
x86_64

Virtualization Type:
kvm

Memory:
              total        used        free      shared  buff/cache   available
Mem:          15885        2873       12694          31         316       12711
Swap:             0           0           0

MySQL info:
mysql  Ver 15.1 Distrib 10.1.46-MariaDB, for Linux (x86_64) using readline 5.1

Disk Info:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.8G     0  7.8G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G  1.2M  7.8G   1% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda1       160G   20G  141G  13% /
tmpfs           1.6G     0  1.6G   0% /run/user/1000
tmpfs           1.6G     0  1.6G   0% /run/user/0


#
# /etc/fstab
# Created by anaconda on Mon Jan 28 20:51:49 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=f41e390f-835b-4223-a9bb-9b45984ddf8d /                       xfs     defaults        0 0

Apache PHP info:
Failed loading /usr/local/ioncube/ioncube_loader_lin_7.0.so:  /usr/local/ioncube/ioncube_loader_lin_7.0.so: cannot open shared object file: No such file or directory
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/imagick.so' - libMagickWand.so.5: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.0.33 (cli) (built: Jul 23 2019 19:34:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies

Apache start script check:
grep: /etc/init.d/httpd: No such file or directory

CWP Admin check:
/usr/local/cwpsrv/htdocs/admin

CWP version:
0.9.8.1003
===============================================

2
How to / Cron job works from command line but not in cron
« on: July 22, 2019, 04:11:45 PM »
Hello,

The following works for me from the command line:

/usr/local/bin/php /home/tetra/help/public_html/api/cron.php

However, I've tried the following cron jobs and none of them have produced any results:

* * * * * tetra /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * nobody /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * /usr/local/bin/php /home/tetra/help/public_html/api/cron.php
* * * * * /opt/alt/php-fpm70/usr/bin/php /home/tetra/help/public_html/api/cron.php

The permissions for that file are 755. I've checked my cron logs, and I'm not 100% sure it is being run at all, but honestly I do not know how to identify for sure. This is for the past hour and I've had 1 minute crons in this queue for over an hour and this is the only output from tail (I wasn't able to do this as the user, I had to do it as root):

Code: [Select]
Jul 22 14:10:01 server3 CROND[24716]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:20:01 server3 CROND[25605]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:30:01 server3 CROND[28042]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:40:01 server3 CROND[21551]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 14:50:01 server3 CROND[7167]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:00:01 server3 CROND[4888]: (root) CMD (/usr/share/clamav/freshclam-sleep)
Jul 22 15:00:01 server3 CROND[4889]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:01:01 server3 CROND[4969]: (root) CMD (run-parts /etc/cron.hourly)
Jul 22 15:01:01 server3 run-parts(/etc/cron.hourly)[4969]: starting 0anacron
Jul 22 15:01:01 server3 run-parts(/etc/cron.hourly)[4978]: finished 0anacron
Jul 22 15:10:01 server3 CROND[6247]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:20:01 server3 CROND[6985]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:30:01 server3 CROND[7756]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:40:01 server3 CROND[10443]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 15:50:02 server3 CROND[14263]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 16:00:01 server3 CROND[15617]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 22 16:01:01 server3 CROND[15689]: (root) CMD (run-parts /etc/cron.hourly)
Jul 22 16:01:01 server3 run-parts(/etc/cron.hourly)[15689]: starting 0anacron
Jul 22 16:01:01 server3 run-parts(/etc/cron.hourly)[15698]: finished 0anacron
Jul 22 16:10:01 server3 CROND[16183]: (root) CMD (/usr/lib64/sa/sa1 1 1)

3
CentOS 7 Problems / Changing Hostname Inserts Junk into Hostname
« on: April 01, 2019, 12:19:23 AM »
From the change hostname menu (Server Settings -> Change Hostname) I am experiencing an error when clicking the change hostname button. No matter what I set my hostname to, the server appends "127.0.0.1" to the hostname when it moves to the next screen.

Example, if I try to set my hostname to server5.bentsea.net the server sets it to server5.bentsea.net127.0.0.1.

THis obviously causes SSL generation to fail and causes the "You do not have a valid hostname set" error.

Can anyone recommend any kind of troubleshooting for this?

4
CentOS 7 Problems / AutoSSL Hangs and Fails
« on: March 30, 2019, 10:44:32 AM »
I just reinstalled CWP from scratch and AutoSSL is not issuing an SSL for the hostname, in addition to this when attempting to enable autossl for any domains installed on the server causes the install process to hang and not complete. I'm not sure where to troubleshoot this because no error is generated, any use of Autossl just hangs for forever. Any recommendations for how to troubleshoot?

5
DNS / BIND DNS / Nameservers are unreachable
« on: December 29, 2018, 11:41:46 PM »
Hello,

While trying to rollback an update using yum history undo, I accidentally rolled back the wrong update and it broke bind. I'm not sure which one. It would not start, but I was able to fix it by reinstalling BIND with
Code: [Select]
yum install bind bind-utils. At this time BIND will start and run normally, however, none of the domains using my custom name servers will resolve. Leaf DNS returns the following error:

"FAIL: Nameserver is unreachable."

http://leafdns.com/index.cgi?testid=F7EE7A65

Here are zone files for the two domains that will not load:

Code: [Select]
; Generated by CWP
; Zone file for gaiabithia.org
$TTL 14400
@    86400        IN      SOA     s3ns1.bentsea.net. brokenmind.gmail.com. (
2018071600      ; serial, todays date+todays
3600            ; refresh, seconds
7200            ; retry, seconds
1209600         ; expire, seconds
86400 )         ; minimum, seconds

@ 86400 IN NS s3ns1.bentsea.net.
@ 86400 IN NS s3ns2.bentsea.net.
@ IN A 172.93.54.122
localhost.gaiabithia.org. IN A 127.0.0.1
@ IN MX 0 gaiabithia.org.
mail 14400 IN CNAME gaiabithia.org.
smtp 14400 IN CNAME gaiabithia.org.
pop  14400 IN CNAME gaiabithia.org.
pop3 14400 IN CNAME gaiabithia.org.
imap 14400 IN CNAME gaiabithia.org.
webmail 14400 IN A 172.93.54.122
cpanel 14400 IN A 172.93.54.122
cwp 14400 IN A 172.93.54.122
www 14400 IN CNAME gaiabithia.org.
ftp 14400 IN CNAME gaiabithia.org.
_dmarc 14400 IN TXT "v=DMARC1; p=none"
@ 14400 IN TXT "v=spf1 +a +mx +ip4:172.93.54.122 ~all"

default._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeyZLcuYMlLXr2kN0C6q/aSK8WltaHIzoGgGed1yrc2BlQmpmvb6fU5PtPtHxDXhVRK5xNH8xe6gJSeVqoUDcMZGICY5VMjrS0b4RCZ7NlPl1MWY9hCoke09iDe7khzNE8UEQyf+Yu+5lKCgRyRUNZGdABrFE3h7N0ALtO95tkywIDAQAB"

Code: [Select]
; Generated by CWP
; Zone file for oaknutbrewing.com
$TTL 14400
oaknutbrewing.com.      86400        IN      SOA     s3ns1.bentsea.net. matthew.e.newman.gmail.com. (
2013071600      ; serial, todays date+todays
86400           ; refresh, seconds
7200            ; retry, seconds
3600000         ; expire, seconds
86400 )         ; minimum, seconds

oaknutbrewing.com. 86400 IN NS s3ns1.bentsea.net.
oaknutbrewing.com. 86400 IN NS s3ns2.bentsea.net.

oaknutbrewing.com. IN A 172.93.54.122

localhost.oaknutbrewing.com. IN A 127.0.0.1

oaknutbrewing.com. IN MX 0 oaknutbrewing.com.

mail IN CNAME oaknutbrewing.com.
www IN CNAME oaknutbrewing.com.
ftp IN CNAME oaknutbrewing.com.
; Add additional settings below this line
_dmarc 14400 IN TXT "v=DMARC1; p=none"

I've tried recreating the name servers, removing and re-adding the domains. All the records appear to be correct to me. BIND service is running... I'm at a complete loss for why the name servers are not responding and for what can resolve this.

6
CentOS 6 Problems / Blank White Screen
« on: January 28, 2017, 05:19:41 AM »
My CWP control panel has suddenly started to display a blank white screen, both on the secure and unsecure ports. Nothing was changed on the server (Manually) since the last time I accessed it, which was some months ago. I'm not even sure where to start troubleshooting this one. This looks like a PHP error that I've seen with other scripts but I have no idea, really. The control panel URL:

http://server2.louisianimellc.com:2030/

Any ideas how to resolve this? I'm using CentOS 6

Apache appears to still be resolving: http://server2.louisianimellc.com


7
SSL / Error Restarting cwpsrv Service for Servername SSL
« on: January 21, 2017, 05:40:40 PM »
Hello, I am attempting to install an SSL for my server name using the Tutorial available here: http://wiki.centos-webpanel.com/hostname-ssl-with-letsencrypt

I am using CentOS 7 with the default apache only configuration.

I am successful through step one and two, and my host name can be reached via HTTPS: https://server3.bentsea.net/

When I perform step 3 to enable HTTPS access via port 2031,  there is no cwp-ssl.conf file. So I have created one with the following code:

Code: [Select]
Listen 2031

<VirtualHost 172.93.54.122:2031>
        ServerName 172.93.54.122
        SSLEngine on
 SSLCertificateFile /etc/letsencrypt/live/server3.bentsea.net/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/server3.bentsea.net/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/server3.bentsea.net/fullchain.pem
 SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

When restarting the cwpsrv, I get the following error:

Code: [Select]
Redirecting to /bin/systemctl restart  cwpsrv.service
Job for cwpsrv.service failed because the control process exited with error code. See "systemctl status cwpsrv.service" and "journalctl -xe" for details.

The ouput for "journalctl -xe" yields the following error:
Code: [Select]
Jan 21 11:31:46 server3 systemd[1]: Starting CentOS Web Panel service (daemon)...
-- Subject: Unit cwpsrv.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwpsrv.service has begun starting up.
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: [emerg] unexpected end of file, expecting ";" or "}" in /usr/local/cwpsrv/conf.d/cwp-ssl.conf:10
Jan 21 11:31:46 server3 cwpsrv[30103]: nginx: configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed


I have been unable to locate any alternative cwp-ssl.conf code given that the error appears to be potentially with syntax or alternative directions for configuring correct use of an SSL for service over port 2031 with the letsencrypt issues SSL. Any help resolving this issue or with alternative directions for configuring for use on port 2031 would be greatly appreciated.

Pages: [1]