Yesterday my phone shows me problems downloading mail. I then tried to access the domain from my notebook and got http and https time out. I couldn’t reach the server via SFTP or Putty either. When I contacted support, I was told that the server could be reached via the company’s internal VPS tunnel and via the supporter’s regular internet access. Support was just as confused as I was and offered to assign me a new IP address, which they ultimately did. At that time, changing the IP address didn’t improve things. When I tried it today, nothing changed with http and https, but access was possible via SFTP and Putty. Does changing the IP address affect the accessibility of the domains?
Yes.
Execute this commands and try again:
sudo su -
v-update-sys-ip
thanks, now i have next problem
root@vsxxxxxxx-1:~# sudo su -
root@vsxxxxxxx-1:~# v-update-sys-ip
/usr/local/hestia/func/ip.sh: line 186: 5 - (24
24 / 8): missing `)’ (error token is “24 / 8)”)
/usr/local/hestia/func/ip.sh: line 224: 134 | (255 ^ ): syntax error: operand ex pected (error token is “)”)
Error: ERROR: Restart of apache2 failed.
Error: apache2 restart failed
I would need to view the debug of that command.
sudo su -
bash -x /usr/local/hestia/bin/v-update-sys-ip 2>&1 | tee /tmp/debug_update_ip
The output could be large so you can share it using these commands:
apt install netcat-openbsd
nc p.27a.net 9999 < /tmp/debug_update_ip
+ source /etc/hestiacp/hestia.conf
++ export HESTIA=/usr/local/hestia
++ HESTIA=/usr/local/hestia
++ [[ -f /etc/hestiacp/local.conf ]]
+ source /usr/local/hestia/func/main.sh
++ HOMEDIR=/home
++ BACKUP=/backup
++ BACKUP_GZIP=9
++ BACKUP_DISK_LIMIT=95
+++ grep -c '^processor' /proc/cpuinfo
++ BACKUP_LA_LIMIT=4
++ RRD_STEP=300
++ BIN=/usr/local/hestia/bin
++ HESTIA_INSTALL_DIR=/usr/local/hestia/install/deb
++ HESTIA_COMMON_DIR=/usr/local/hestia/install/common
+++ date +%d%m%Y%H%M
++ HESTIA_BACKUP=/root/hst_backups/221020241255
++ HESTIA_PHP=/usr/local/hestia/php/bin/php
++ USER_DATA=/usr/local/hestia/data/users/
++ WEBTPL=/usr/local/hestia/data/templates/web
++ MAILTPL=/usr/local/hestia/data/templates/mail
++ DNSTPL=/usr/local/hestia/data/templates/dns
++ RRD=/usr/local/hestia/web/rrd
++ SENDMAIL=/usr/local/hestia/web/inc/mail-wrapper.php
++ HESTIA_GIT_REPO=https://raw.githubusercontent.com/hestiacp/hestiacp
++ HESTIA_THEMES=/usr/local/hestia/web/css/themes
++ HESTIA_THEMES_CUSTOM=/usr/local/hestia/web/css/themes/custom
+++ basename /usr/local/hestia/bin/v-update-sys-ip
++ SCRIPT=v-update-sys-ip
++ CHECK_RESULT_CALLBACK=
++ OK=0
++ E_ARGS=1
++ E_INVALID=2
++ E_NOTEXIST=3
++ E_EXISTS=4
++ E_SUSPENDED=5
++ E_UNSUSPENDED=6
++ E_INUSE=7
++ E_LIMIT=8
++ E_PASSWORD=9
++ E_FORBIDEN=10
++ E_DISABLED=11
++ E_PARSING=12
++ E_DISK=13
++ E_LA=14
++ E_CONNECT=15
++ E_FTP=16
++ E_DB=17
++ E_RRD=18
++ E_UPDATE=19
++ E_RESTART=20
++ ARGS=("$@")
++ (( I = 1 ))
++ (( I <= 0 ))
+ source /usr/local/hestia/func/ip.sh
++ REGEX_IPV4='^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\.|$)){4}$'
+ source /usr/local/hestia/func/domain.sh
+ source_conf /usr/local/hestia/conf/hestia.conf
+ IFS='= '
+ read -r lhs rhs
+ [[ ! ANTISPAM_SYSTEM =~ ^ *# ]]
+ [[ -n ANTISPAM_SYSTEM ]]
+ rhs=''\''spamd'\'''
+ rhs=''\''spamd'\'''
+ rhs=''\''spamd'
+ rhs=spamd
+ declare -g ANTISPAM_SYSTEM=spamd
+ IFS='= '
+ read -r lhs rhs
+ [[ ! ANTIVIRUS_SYSTEM =~ ^ *# ]]
+ [[ -n ANTIVIRUS_SYSTEM ]]
+ rhs=''\''clamav-daemon'\'''
+ rhs=''\''clamav-daemon'\'''
+ rhs=''\''clamav-daemon'
+ rhs=clamav-daemon
+ declare -g ANTIVIRUS_SYSTEM=clamav-daemon
+ IFS='= '
+ read -r lhs rhs
+ [[ ! API_ALLOWED_IP =~ ^ *# ]]
+ [[ -n API_ALLOWED_IP ]]
+ rhs=''\''127.0.0.1'\'''
+ rhs=''\''127.0.0.1'\'''
+ rhs=''\''127.0.0.1'
+ rhs=127.0.0.1
+ declare -g API_ALLOWED_IP=127.0.0.1
+ IFS='= '
+ read -r lhs rhs
+ [[ ! API_SYSTEM =~ ^ *# ]]
+ [[ -n API_SYSTEM ]]
+ rhs=''\''1'\'''
+ rhs=''\''1'\'''
+ rhs=''\''1'
+ rhs=1
+ declare -g API_SYSTEM=1
+ IFS='= '
+ read -r lhs rhs
+ [[ ! API =~ ^ *# ]]
+ [[ -n API ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g API=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! APP_NAME =~ ^ *# ]]
+ [[ -n APP_NAME ]]
+ rhs=''\''Control Panel'\'''
+ rhs=''\''Control Panel'\'''
+ rhs=''\''Control Panel'
+ rhs='Control Panel'
+ declare -g 'APP_NAME=Control Panel'
+ IFS='= '
+ read -r lhs rhs
+ [[ ! BACKEND_PORT =~ ^ *# ]]
+ [[ -n BACKEND_PORT ]]
+ rhs=''\''8083'\'''
+ rhs=''\''8083'\'''
+ rhs=''\''8083'
+ rhs=8083
+ declare -g BACKEND_PORT=8083
+ IFS='= '
+ read -r lhs rhs
+ [[ ! BACKUP_GZIP =~ ^ *# ]]
+ [[ -n BACKUP_GZIP ]]
+ rhs=''\''9'\'''
+ rhs=''\''9'\'''
+ rhs=''\''9'
+ rhs=9
+ declare -g BACKUP_GZIP=9
+ IFS='= '
+ read -r lhs rhs
+ [[ ! BACKUP_MODE =~ ^ *# ]]
+ [[ -n BACKUP_MODE ]]
+ rhs=''\''gzip'\'''
+ rhs=''\''gzip'\'''
+ rhs=''\''gzip'
+ rhs=gzip
+ declare -g BACKUP_MODE=gzip
+ IFS='= '
+ read -r lhs rhs
+ [[ ! BACKUP_SYSTEM =~ ^ *# ]]
+ [[ -n BACKUP_SYSTEM ]]
+ rhs=''\''local,ftp'\'''
+ rhs=''\''local,ftp'\'''
+ rhs=''\''local,ftp'
+ rhs=local,ftp
+ declare -g BACKUP_SYSTEM=local,ftp
+ IFS='= '
+ read -r lhs rhs
+ [[ ! CRON_SYSTEM =~ ^ *# ]]
+ [[ -n CRON_SYSTEM ]]
+ rhs=''\''cron'\'''
+ rhs=''\''cron'\'''
+ rhs=''\''cron'
+ rhs=cron
+ declare -g CRON_SYSTEM=cron
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DB_PMA_ALIAS =~ ^ *# ]]
+ [[ -n DB_PMA_ALIAS ]]
+ rhs=''\''phpmyadmin'\'''
+ rhs=''\''phpmyadmin'\'''
+ rhs=''\''phpmyadmin'
+ rhs=phpmyadmin
+ declare -g DB_PMA_ALIAS=phpmyadmin
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DB_SYSTEM =~ ^ *# ]]
+ [[ -n DB_SYSTEM ]]
+ rhs=''\''mysql'\'''
+ rhs=''\''mysql'\'''
+ rhs=''\''mysql'
+ rhs=mysql
+ declare -g DB_SYSTEM=mysql
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DEBUG_MODE =~ ^ *# ]]
+ [[ -n DEBUG_MODE ]]
+ rhs=''\''false'\'''
+ rhs=''\''false'\'''
+ rhs=''\''false'
+ rhs=false
+ declare -g DEBUG_MODE=false
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DISABLE_IP_CHECK =~ ^ *# ]]
+ [[ -n DISABLE_IP_CHECK ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g DISABLE_IP_CHECK=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DISK_QUOTA =~ ^ *# ]]
+ [[ -n DISK_QUOTA ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g DISK_QUOTA=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DNS_CLUSTER_SYSTEM =~ ^ *# ]]
+ [[ -n DNS_CLUSTER_SYSTEM ]]
+ rhs=''\''hestia'\'''
+ rhs=''\''hestia'\'''
+ rhs=''\''hestia'
+ rhs=hestia
+ declare -g DNS_CLUSTER_SYSTEM=hestia
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DNS_SYSTEM =~ ^ *# ]]
+ [[ -n DNS_SYSTEM ]]
+ rhs=''\''bind9'\'''
+ rhs=''\''bind9'\'''
+ rhs=''\''bind9'
+ rhs=bind9
+ declare -g DNS_SYSTEM=bind9
+ IFS='= '
+ read -r lhs rhs
+ [[ ! DOMAINDIR_WRITABLE =~ ^ *# ]]
+ [[ -n DOMAINDIR_WRITABLE ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g DOMAINDIR_WRITABLE=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! ENFORCE_SUBDOMAIN_OWNERSHIP =~ ^ *# ]]
+ [[ -n ENFORCE_SUBDOMAIN_OWNERSHIP ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g ENFORCE_SUBDOMAIN_OWNERSHIP=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FILE_MANAGER =~ ^ *# ]]
+ [[ -n FILE_MANAGER ]]
+ rhs=''\''true'\'''
+ rhs=''\''true'\'''
+ rhs=''\''true'
+ rhs=true
+ declare -g FILE_MANAGER=true
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FIREWALL_EXTENSION =~ ^ *# ]]
+ [[ -n FIREWALL_EXTENSION ]]
+ rhs=''\''fail2ban'\'''
+ rhs=''\''fail2ban'\'''
+ rhs=''\''fail2ban'
+ rhs=fail2ban
+ declare -g FIREWALL_EXTENSION=fail2ban
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FIREWALL_SYSTEM =~ ^ *# ]]
+ [[ -n FIREWALL_SYSTEM ]]
+ rhs=''\''iptables'\'''
+ rhs=''\''iptables'\'''
+ rhs=''\''iptables'
+ rhs=iptables
+ declare -g FIREWALL_SYSTEM=iptables
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FROM_EMAIL =~ ^ *# ]]
+ [[ -n FROM_EMAIL ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g FROM_EMAIL=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FROM_NAME =~ ^ *# ]]
+ [[ -n FROM_NAME ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g FROM_NAME=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! FTP_SYSTEM =~ ^ *# ]]
+ [[ -n FTP_SYSTEM ]]
+ rhs=''\''vsftpd'\'''
+ rhs=''\''vsftpd'\'''
+ rhs=''\''vsftpd'
+ rhs=vsftpd
+ declare -g FTP_SYSTEM=vsftpd
+ IFS='= '
+ read -r lhs rhs
+ [[ ! HIDE_DOCS =~ ^ *# ]]
+ [[ -n HIDE_DOCS ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g HIDE_DOCS=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! IMAP_SYSTEM =~ ^ *# ]]
+ [[ -n IMAP_SYSTEM ]]
+ rhs=''\''dovecot'\'''
+ rhs=''\''dovecot'\'''
+ rhs=''\''dovecot'
+ rhs=dovecot
+ declare -g IMAP_SYSTEM=dovecot
+ IFS='= '
+ read -r lhs rhs
+ [[ ! INACTIVE_SESSION_TIMEOUT =~ ^ *# ]]
+ [[ -n INACTIVE_SESSION_TIMEOUT ]]
+ rhs=''\''60'\'''
+ rhs=''\''60'\'''
+ rhs=''\''60'
+ rhs=60
+ declare -g INACTIVE_SESSION_TIMEOUT=60
+ IFS='= '
+ read -r lhs rhs
+ [[ ! LANGUAGE =~ ^ *# ]]
+ [[ -n LANGUAGE ]]
+ rhs=''\''de'\'''
+ rhs=''\''de'\'''
+ rhs=''\''de'
+ rhs=de
+ declare -g LANGUAGE=de
+ IFS='= '
+ read -r lhs rhs
+ [[ ! LOGIN_STYLE =~ ^ *# ]]
+ [[ -n LOGIN_STYLE ]]
+ rhs=''\''old'\'''
+ rhs=''\''old'\'''
+ rhs=''\''old'
+ rhs=old
+ declare -g LOGIN_STYLE=old
+ IFS='= '
+ read -r lhs rhs
+ [[ ! MAIL_SYSTEM =~ ^ *# ]]
+ [[ -n MAIL_SYSTEM ]]
+ rhs=''\''exim4'\'''
+ rhs=''\''exim4'\'''
+ rhs=''\''exim4'
+ rhs=exim4
+ declare -g MAIL_SYSTEM=exim4
+ IFS='= '
+ read -r lhs rhs
+ [[ ! PHPMYADMIN_KEY =~ ^ *# ]]
+ [[ -n PHPMYADMIN_KEY ]]
+ rhs=''\''Y4Iju1AZjrYflPqT'\'''
+ rhs=''\''Y4Iju1AZjrYflPqT'\'''
+ rhs=''\''Y4Iju1AZjrYflPqT'
+ rhs=Y4Iju1AZjrYflPqT
+ declare -g PHPMYADMIN_KEY=Y4Iju1AZjrYflPqT
+ IFS='= '
+ read -r lhs rhs
+ [[ ! PLUGIN_APP_INSTALLER =~ ^ *# ]]
+ [[ -n PLUGIN_APP_INSTALLER ]]
+ rhs=''\''true'\'''
+ rhs=''\''true'\'''
+ rhs=''\''true'
+ rhs=true
+ declare -g PLUGIN_APP_INSTALLER=true
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_BACKUP_SUSPENDED_USERS =~ ^ *# ]]
+ [[ -n POLICY_BACKUP_SUSPENDED_USERS ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g POLICY_BACKUP_SUSPENDED_USERS=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_CSRF_STRICTNESS =~ ^ *# ]]
+ [[ -n POLICY_CSRF_STRICTNESS ]]
+ rhs=''\''1'\'''
+ rhs=''\''1'\'''
+ rhs=''\''1'
+ rhs=1
+ declare -g POLICY_CSRF_STRICTNESS=1
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYNC_ERROR_DOCUMENTS =~ ^ *# ]]
+ [[ -n POLICY_SYNC_ERROR_DOCUMENTS ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_SYNC_ERROR_DOCUMENTS=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYNC_SKELETON =~ ^ *# ]]
+ [[ -n POLICY_SYNC_SKELETON ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_SYNC_SKELETON=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYSTEM_ENABLE_BACON =~ ^ *# ]]
+ [[ -n POLICY_SYSTEM_ENABLE_BACON ]]
+ rhs=''\''true'\'''
+ rhs=''\''true'\'''
+ rhs=''\''true'
+ rhs=true
+ declare -g POLICY_SYSTEM_ENABLE_BACON=true
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYSTEM_HIDE_ADMIN =~ ^ *# ]]
+ [[ -n POLICY_SYSTEM_HIDE_ADMIN ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g POLICY_SYSTEM_HIDE_ADMIN=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYSTEM_HIDE_SERVICES =~ ^ *# ]]
+ [[ -n POLICY_SYSTEM_HIDE_SERVICES ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g POLICY_SYSTEM_HIDE_SERVICES=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYSTEM_PASSWORD_RESET =~ ^ *# ]]
+ [[ -n POLICY_SYSTEM_PASSWORD_RESET ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g POLICY_SYSTEM_PASSWORD_RESET=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_SYSTEM_PROTECTED_ADMIN =~ ^ *# ]]
+ [[ -n POLICY_SYSTEM_PROTECTED_ADMIN ]]
+ rhs=''\''no'\'''
+ rhs=''\''no'\'''
+ rhs=''\''no'
+ rhs=no
+ declare -g POLICY_SYSTEM_PROTECTED_ADMIN=no
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_CHANGE_THEME =~ ^ *# ]]
+ [[ -n POLICY_USER_CHANGE_THEME ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_CHANGE_THEME=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_DELETE_LOGS =~ ^ *# ]]
+ [[ -n POLICY_USER_DELETE_LOGS ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_DELETE_LOGS=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_EDIT_DETAILS =~ ^ *# ]]
+ [[ -n POLICY_USER_EDIT_DETAILS ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_EDIT_DETAILS=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_EDIT_DNS_TEMPLATES =~ ^ *# ]]
+ [[ -n POLICY_USER_EDIT_DNS_TEMPLATES ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_EDIT_DNS_TEMPLATES=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_EDIT_WEB_TEMPLATES =~ ^ *# ]]
+ [[ -n POLICY_USER_EDIT_WEB_TEMPLATES ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_EDIT_WEB_TEMPLATES=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_VIEW_LOGS =~ ^ *# ]]
+ [[ -n POLICY_USER_VIEW_LOGS ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g POLICY_USER_VIEW_LOGS=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! POLICY_USER_VIEW_SUSPENDED =~ ^ *# ]]
+ [[ -n POLICY_USER_VIEW_SUSPENDED ]]
+ rhs=''\''false'\'''
+ rhs=''\''false'\'''
+ rhs=''\''false'
+ rhs=false
+ declare -g POLICY_USER_VIEW_SUSPENDED=false
+ IFS='= '
+ read -r lhs rhs
+ [[ ! PROXY_PORT =~ ^ *# ]]
+ [[ -n PROXY_PORT ]]
+ rhs=''\''80'\'''
+ rhs=''\''80'\'''
+ rhs=''\''80'
+ rhs=80
+ declare -g PROXY_PORT=80
+ IFS='= '
+ read -r lhs rhs
+ [[ ! PROXY_SSL_PORT =~ ^ *# ]]
+ [[ -n PROXY_SSL_PORT ]]
+ rhs=''\''443'\'''
+ rhs=''\''443'\'''
+ rhs=''\''443'
+ rhs=443
+ declare -g PROXY_SSL_PORT=443
+ IFS='= '
+ read -r lhs rhs
+ [[ ! PROXY_SYSTEM =~ ^ *# ]]
+ [[ -n PROXY_SYSTEM ]]
+ rhs=''\''nginx'\'''
+ rhs=''\''nginx'\'''
+ rhs=''\''nginx'
+ rhs=nginx
+ declare -g PROXY_SYSTEM=nginx
+ IFS='= '
+ read -r lhs rhs
+ [[ ! RELEASE_BRANCH =~ ^ *# ]]
+ [[ -n RELEASE_BRANCH ]]
+ rhs=''\''release'\'''
+ rhs=''\''release'\'''
+ rhs=''\''release'
+ rhs=release
+ declare -g RELEASE_BRANCH=release
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SERVER_SMTP_ADDR =~ ^ *# ]]
+ [[ -n SERVER_SMTP_ADDR ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g SERVER_SMTP_ADDR=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SERVER_SMTP_HOST =~ ^ *# ]]
+ [[ -n SERVER_SMTP_HOST ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g SERVER_SMTP_HOST=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SERVER_SMTP_PASSWD =~ ^ *# ]]
+ [[ -n SERVER_SMTP_PASSWD ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g SERVER_SMTP_PASSWD=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SERVER_SMTP_SECURITY =~ ^ *# ]]
+ [[ -n SERVER_SMTP_SECURITY ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g SERVER_SMTP_SECURITY=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SERVER_SMTP_USER =~ ^ *# ]]
+ [[ -n SERVER_SMTP_USER ]]
+ rhs=''\'''\'''
+ rhs=''\'''\'''
+ rhs=\'
+ rhs=
+ declare -g SERVER_SMTP_USER=
+ IFS='= '
+ read -r lhs rhs
+ [[ ! STATS_SYSTEM =~ ^ *# ]]
+ [[ -n STATS_SYSTEM ]]
+ rhs=''\''awstats'\'''
+ rhs=''\''awstats'\'''
+ rhs=''\''awstats'
+ rhs=awstats
+ declare -g STATS_SYSTEM=awstats
+ IFS='= '
+ read -r lhs rhs
+ [[ ! SUBJECT_EMAIL =~ ^ *# ]]
+ [[ -n SUBJECT_EMAIL ]]
+ rhs=''\''{{subject}}'\'''
+ rhs=''\''{{subject}}'\'''
+ rhs=''\''{{subject}}'
+ rhs='{{subject}}'
+ declare -g 'SUBJECT_EMAIL={{subject}}'
+ IFS='= '
+ read -r lhs rhs
+ [[ ! THEME =~ ^ *# ]]
+ [[ -n THEME ]]
+ rhs=''\''dark'\'''
+ rhs=''\''dark'\'''
+ rhs=''\''dark'
+ rhs=dark
+ declare -g THEME=dark
+ IFS='= '
+ read -r lhs rhs
+ [[ ! TITLE =~ ^ *# ]]
+ [[ -n TITLE ]]
+ rhs=''\''{{page}} - {{hostname}} - {{appname}}'\'''
+ rhs=''\''{{page}} - {{hostname}} - {{appname}}'\'''
+ rhs=''\''{{page}} - {{hostname}} - {{appname}}'
+ rhs='{{page}} - {{hostname}} - {{appname}}'
+ declare -g 'TITLE={{page}} - {{hostname}} - {{appname}}'
+ IFS='= '
+ read -r lhs rhs
+ [[ ! UPDATE_HOSTNAME_SSL =~ ^ *# ]]
+ [[ -n UPDATE_HOSTNAME_SSL ]]
+ rhs=''\''yes'\'''
+ rhs=''\''yes'\'''
+ rhs=''\''yes'
+ rhs=yes
+ declare -g UPDATE_HOSTNAME_SSL=yes
+ IFS='= '
+ read -r lhs rhs
+ [[ ! UPGRADE_SEND_EMAIL_LOG =~ ^ *# ]]
+ [[ -n UPGRADE_SEND_EMAIL_LOG ]]
+ rhs=''\''false'\'''
+ rhs=''\''false'\'''
+ rhs=''\''false'
+ rhs=false
+ declare -g UPGRADE_SEND_EMAIL_LOG=false
+ IFS='= '
+ read -r lhs rhs
+ [[ ! UPGRADE_SEND_EMAIL =~ ^ *# ]]
+ [[ -n UPGRADE_SEND_EMAIL ]]
+ rhs=''\''true'\'''
+ rhs=''\''true'\'''
+ rhs=''\''true'
+ rhs=true
+ declare -g UPGRADE_SEND_EMAIL=true
+ IFS='= '
+ read -r lhs rhs
+ [[ ! USE_SERVER_SMTP =~ ^ *# ]]
+ [[ -n USE_SERVER_SMTP ]]
+ rhs=''\''false'\'''
+ rhs=''\''false'\'''
+ rhs=''\''false'
+ rhs=false
+ declare -g USE_SERVER_SMTP=false
+ IFS='= '
+ read -r lhs rhs
+ [[ ! VERSION =~ ^ *# ]]
+ [[ -n VERSION ]]
+ rhs=''\''1.8.12'\'''
+ rhs=''\''1.8.12'\'''
+ rhs=''\''1.8.12'
+ rhs=1.8.12
+ declare -g VERSION=1.8.12
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_BACKEND =~ ^ *# ]]
+ [[ -n WEB_BACKEND ]]
+ rhs=''\''php-fpm'\'''
+ rhs=''\''php-fpm'\'''
+ rhs=''\''php-fpm'
+ rhs=php-fpm
+ declare -g WEB_BACKEND=php-fpm
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEBMAIL_ALIAS =~ ^ *# ]]
+ [[ -n WEBMAIL_ALIAS ]]
+ rhs=''\''webmail'\'''
+ rhs=''\''webmail'\'''
+ rhs=''\''webmail'
+ rhs=webmail
+ declare -g WEBMAIL_ALIAS=webmail
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEBMAIL_SYSTEM =~ ^ *# ]]
+ [[ -n WEBMAIL_SYSTEM ]]
+ rhs=''\''roundcube'\'''
+ rhs=''\''roundcube'\'''
+ rhs=''\''roundcube'
+ rhs=roundcube
+ declare -g WEBMAIL_SYSTEM=roundcube
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_PORT =~ ^ *# ]]
+ [[ -n WEB_PORT ]]
+ rhs=''\''8080'\'''
+ rhs=''\''8080'\'''
+ rhs=''\''8080'
+ rhs=8080
+ declare -g WEB_PORT=8080
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_RGROUPS =~ ^ *# ]]
+ [[ -n WEB_RGROUPS ]]
+ rhs=''\''www-data'\'''
+ rhs=''\''www-data'\'''
+ rhs=''\''www-data'
+ rhs=www-data
+ declare -g WEB_RGROUPS=www-data
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_SSL =~ ^ *# ]]
+ [[ -n WEB_SSL ]]
+ rhs=''\''mod_ssl'\'''
+ rhs=''\''mod_ssl'\'''
+ rhs=''\''mod_ssl'
+ rhs=mod_ssl
+ declare -g WEB_SSL=mod_ssl
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_SSL_PORT =~ ^ *# ]]
+ [[ -n WEB_SSL_PORT ]]
+ rhs=''\''8443'\'''
+ rhs=''\''8443'\'''
+ rhs=''\''8443'
+ rhs=8443
+ declare -g WEB_SSL_PORT=8443
+ IFS='= '
+ read -r lhs rhs
+ [[ ! WEB_SYSTEM =~ ^ *# ]]
+ [[ -n WEB_SYSTEM ]]
+ rhs=''\''apache2'\'''
+ rhs=''\''apache2'\'''
+ rhs=''\''apache2'
+ rhs=apache2
+ declare -g WEB_SYSTEM=apache2
+ IFS='= '
+ read -r lhs rhs
+ check_hestia_demo_mode
++ grep DEMO_MODE /usr/local/hestia/conf/hestia.conf
++ sed 's|'\''||g'
++ cut -d = -f2
+ demo_mode=
+ '[' -n '' ']'
++ ip -d -j link show
++ jq -r '.[] | if .link_type == "loopback" then empty else .ifname end'
+ nics='eth0
eth1'
+ for nic in $nics
++ ip -d -j link show eth0
++ jq -r '.[].linkinfo.info_kind'
+ nic_type=veth
+ '[' veth = bridge ']'
++ ip -4 -d -j addr show eth0
++ jq -r '.[] | select(length > 0) | .addr_info[] | if .scope == "global" then .local else empty end'
+ nic_ipv4s=134.255.220.166
+ '[' -z '' ']'
+ ips=134.255.220.166
+ for nic in $nics
++ ip -d -j link show eth1
++ jq -r '.[].linkinfo.info_kind'
+ nic_type=veth
+ '[' veth = bridge ']'
++ ip -4 -d -j addr show eth1
++ jq -r '.[] | select(length > 0) | .addr_info[] | if .scope == "global" then .local else empty end'
+ nic_ipv4s=134.255.220.166
+ '[' -z 134.255.220.166 ']'
+ ips='134.255.220.166 134.255.220.166'
++ ls /usr/local/hestia/data/ips/
+ v_ips='134.255.220.166
5.249.164.162'
++ echo '134.255.220.166 134.255.220.166'
++ wc -w
+ ip_num=2
++ wc -w
++ echo '134.255.220.166
5.249.164.162'
+ v_ip_num=2
+ '[' 2 -eq 1 ']'
+ '[' -n '' ']'
+ for ip in $ips
++ ip addr list
++ grep -w 134.255.220.166
+ check_ip=' inet 134.255.220.166/24 brd 134.255.220.255 scope global eth0
inet 134.255.220.166/24 brd 134.255.220.255 scope global eth1'
+ '[' '!' -e /usr/local/hestia/data/ips/134.255.220.166 ']'
+ '[' -e /etc/nginx/conf.d/134.255.220.166.conf ']'
+ process_http2_directive /etc/nginx/conf.d/134.255.220.166.conf
+ '[' -e /etc/nginx/conf.d/http2-directive.conf ']'
+ IFS=
+ read -r old_param
++ grep -E 'listen.*(\bssl\b(\s|.+){1,}\bhttp2\b|\bhttp2\b(\s|.+){1,}\bssl\b).*;' /etc/nginx/conf.d/134.255.220.166.conf
+ for ip in $ips
++ ip addr list
++ grep -w 134.255.220.166
+ check_ip=' inet 134.255.220.166/24 brd 134.255.220.255 scope global eth0
inet 134.255.220.166/24 brd 134.255.220.255 scope global eth1'
+ '[' '!' -e /usr/local/hestia/data/ips/134.255.220.166 ']'
+ '[' -e /etc/nginx/conf.d/134.255.220.166.conf ']'
+ process_http2_directive /etc/nginx/conf.d/134.255.220.166.conf
+ '[' -e /etc/nginx/conf.d/http2-directive.conf ']'
+ IFS=
+ read -r old_param
++ grep -E 'listen.*(\bssl\b(\s|.+){1,}\bhttp2\b|\bhttp2\b(\s|.+){1,}\bssl\b).*;' /etc/nginx/conf.d/134.255.220.166.conf
++ curl -fsLm5 --retry 2 --ipv4 https://ip.hestiacp.com/
+ pub_ipv4=134.255.220.166
+ '[' '!' -e /usr/local/hestia/data/ips/134.255.220.166 ']'
+ /usr/local/hestia/bin/v-update-sys-ip-counters
+ exit
I see no error.
Is 134.255.220.166
the new ip and 5.249.164.162
the old ip?
Show the output of this command:
v-list-sys-ips json | jq
yes
/usr/local/hestia/func/main.sh: line 1582: declare: `eth1’=': not a valid identifier
{
“134.255.220.166”: {
“OWNER”: “admin”,
“STATUS”: “shared”,
“NAME”: “”,
“U_SYS_USERS”: “”,
“U_WEB_DOMAINS”: “0”,
“INTERFACE”: “”,
“NETMASK”: “”,
“NAT”: “”,
“TIME”: “11:18:45”,
“DATE”: “2024-10-22”
},
“5.249.164.162”: {
“OWNER”: “admin”,
“STATUS”: “shared”,
“NAME”: “”,
“U_SYS_USERS”: “admin,user”,
“U_WEB_DOMAINS”: “5”,
“INTERFACE”: “eth0”,
“NETMASK”: “255.255.255.0”,
“NAT”: “”,
“TIME”: “13:58:07”,
“DATE”: “2024-08-26”
}
}
Seems the new ip is not fully added to Hestia.
Please, show the output of these commands:
ip a
ls -l /usr/local/hestia/data/ips/
cat /usr/local/hestia/data/ips/5.249.164.162
cat /usr/local/hestia/data/ips/134.255.220.166
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: eth0@if803: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:5b:3c:63 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 134.255.220.166/24 brd 134.255.220.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:fe5b:3c63/64 scope link
valid_lft forever preferred_lft forever
3: eth1@if804: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether bc:24:11:79:70:67 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 134.255.220.166/24 brd 134.255.220.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:fe79:7067/64 scope link
valid_lft forever preferred_lft forever
ls -l /usr/local/hestia/data/ips/
total 8
-rw-rw---- 1 root root 145 Oct 22 12:55 134.255.220.166
-rw-rw---- 1 root root 164 Oct 22 12:55 5.249.164.162
cat /usr/local/hestia/data/ips/5.249.164.162
OWNER='admin'
STATUS='shared'
NAME=''
U_SYS_USERS='admin,user'
U_WEB_DOMAINS='5'
INTERFACE='eth0'
NETMASK='255.255.255.0'
NAT=''
TIME='13:58:07'
DATE='2024-08-26'
cat /usr/local/hestia/data/ips/134.255.220.166
OWNER='admin'
STATUS='shared'
NAME=''
U_SYS_USERS=''
U_WEB_DOMAINS='0'
INTERFACE='eth0
eth1'
NETMASK=''
NAT=''
TIME='11:18:45'
DATE='2024-10-22'
Do you know why you have two interfaces (eth0
and eth1
) with the same ip 134.255.220.166
? Your hosting provider should remove eth1 and once done, I would remove the file conf for the new ip and would update again.
rm /usr/local/hestia/data/ips/134.255.220.166
v-update-sys-ip
no, I don’t know. it could be that eth1 came from the IP address swap. support was online yesterday from 10pm to 3am. I hope today too and will write to them after 10pm.
I would probably never have found this error and would have reinstalled the server completely annoyed-))
many thanks for the support