• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

hostname and upgrade troubles.

abdicar

New Pleskian
hello there...

well... today i'm upgrading our server to the last plesk... but i have a problem with one.

I get in the plesk url:

Table 'psa.ControlVisibility' doesn't exist

--------------------------------------------------------------------------------

0: /usr/local/psa/admin/plib/visibility.php:148 psaerror(string "Table 'psa.ControlVisibility' doesn't exist")
1: /usr/local/psa/admin/plib/visibility.php:291 getvisibilitycustomizations(string "/login_up.php3")
2: /usr/local/psa/admin/plib/visibility.php:300 getvisibility(string "login", boolean true, NULL "")
3: /usr/local/psa/admin/plib/elements.php3:180 iscontrolvisible(string "login", boolean true)
4: /usr/local/psa/admin/plib/elements.php3:106 fetch_hideable_button(string "commonButton", string "login", string "", string "", boolean false, string "", string "return login_oC(document.forms[0], document.forms[1])", boolean true, integer "3", boolean false, boolean false)
5: /usr/local/psa/admin/htdocs/login_up.php3:765 comm_button(string "login", string "", string "return login_oC(document.forms[0], document.forms[1])", boolean true, integer "3")

So... I tried the reinstall... but i get the next error:

[root@ds01 base]# rpm -Uhv psa-7.5.3-fc2.build75050506.13.i586.rpm --force
Preparing... ########################################### [100%]
===> Updating /etc/psa/psa.conf...

Trying to define super-server internet daemon type... xinetd
Trying to check if xinetd daemon is running... done


Unable to resolve hostname or establish network access to
local host: xxxxxx.com. You should fix this problem prior to installing
Plesk. After you are done, run the installation again.

error: %pre(psa-7.5.3-fc2.build75050506.13) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping psa-7.5.3-fc2.build75050506.13
[root@ds01 base]# nano /var/qmail/control/me
[root@ds01 base]# nano /var/qmail/control/locals
[root@ds01 base]# service psa start
/usr/local/psa/admin/bin/httpsdctl start: httpd (pid 7365) already running
Starting Plesk: [ OK ]
[root@ds01 base]#

I checked all other threads about this... but, i set the hosts file, the hostname, the dns zone... and anything... not work.

I verify with:

[root@ds01 base]# hostname
xxxxxx.com
[root@ds01 base]# host ds01.abdicar.com
xxxxxx.com has address 205.xxx.138.xxx
[root@ds01 base]#

All looks ok!

Someone have any idea to fix it?

Thank you in advanced!
 
Mine shot the hostname error at me too... I shut off the firewall, and whammo, install worked out great.
 
/etc/hosts file
add line
127.0.0.1 localhost.localdomain localhost
hostname fix
reinstall
rpm -ihv psa-7.5.3-fc2.build75050506.13.i586.rpm --force
 
Originally posted by chatbiz
/etc/hosts file
add line
127.0.0.1 localhost.localdomain localhost
hostname fix
reinstall
rpm -ihv psa-7.5.3-fc2.build75050506.13.i586.rpm --force

I tried that and got

===> Preparing upgrade
Trying to start MySQL server... done
Trying to establish test connection... connected
Trying to backup MySQL database... done
MySQL databases are dumped to /var/lib/psa/dumps/mysql.preupgrade.dump.gz
===> Installing psa database
Trying to check psa database... Trying to find psa database...

ERROR while trying to mysql datadir not found
Check the error reason(see log file: /tmp/psa_7.5.3_FedoraCore_2_build75050506.13_upgrade.log), fix and try again

Aborting...

error: %post(psa-7.5.3-fc2.build75050506.13) scriptlet failed, exit status 1

the upgrade log has

===> Installing psa database
Trying to check psa database... Trying to find psa database...

ERROR while trying to mysql datadir not found

Aborting...

so immediately before the error where it can't find the psa db it had just made a dump of it

I'm confused
 
yum install mysql mysql-server or reinstall psa.

mysql dir not found error message
 
Originally posted by chatbiz
/etc/hosts file
add line
127.0.0.1 localhost.localdomain localhost
hostname fix
reinstall
rpm -ihv psa-7.5.3-fc2.build75050506.13.i586.rpm --force

The line is already on hosts' file.

[root@ds01 base]# rpm -ihv psa-7.5.3-fc2.build75050506.13.i586.rpm --force
Preparing... ########################################### [100%]
===> Updating /etc/psa/psa.conf...

Trying to define super-server internet daemon type... xinetd
Trying to check if xinetd daemon is running... done


Unable to resolve hostname or establish network access to
local host: xxxxxx.com. You should fix this problem prior to installing
Plesk. After you are done, run the installation again.

error: %pre(psa-7.5.3-fc2.build75050506.13) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping psa-7.5.3-fc2.build75050506.13
[root@ds01 base]#

what i can do?
 
/etc/hosts file
add line
127.0.0.1 localhost.localdomain localhost
hostname fix and reboot or >>

reinstall
rpm -ihv psa-7.5.3-fc2.build75050506.13.i586.rpm --force
 
I did... but now work:

[root@ds01 base]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
205.209.138.210 ds01.abdicar.com ds01
[root@ds01 base]#

[root@ds01 base]# hostname
ds01.abdicar.com
[root@ds01 base]#

Any other suggestion?
 
Back
Top