Bug #7193
closed
centos7 autoinstaller does not run correctly
Added by Anchi Cheng over 5 years ago.
Updated over 5 years ago.
Assignee:
Sargis Dallakyan
Affected Version:
Appion/Leginon 3.4
Description
- some of the basic yum packages are not installed. For example, firefox, rsync and tar
- sample data not loaded
- test project not created which let to leginon not open at the end
- applications not uploaded to database
- mariadb got stuck in --skip-grant-tables mode. Could not add usr_object user as a result.
- Description updated (diff)
- Status changed from New to Assigned
Fixed mysql install issue. They have replaced mariadb-server with mysql-community-server which caused the error:
[root@centos7 ~]# yum install mariadb-server
Package mariadb-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.7.25-1.el7.x86_64 instead
I'm also getting Apache httpd failed to start, but that might be happening on this particular centos7 instance -
https://access.redhat.com/solutions/1381343
- Assignee changed from Anchi Cheng to Sargis Dallakyan
Sargis, what CentOS 7 version did you test it on ? Swapnil and I have been testing on fresh CentOS 7.6.1810 from our cluster VM today and yesterday and mariadb-server worked fine.
Also, your commit still does yum install of mariadb-server, and I can not find mysql-community-server by yum info.
I have fixed all the bugs in the original bug description with my last commit for CentOS 7.6.
Anchi, I've tested this on CentOS Linux release 7.6.1810 (Core). I have been using our vmwhere and the name of VM is centos7. It's the latest CentOS 7 since I did you update. yum install of mariadb-server doesn't install mariadb-server but installs mysql-community-server instead.
Tested on a fresh install of CentOS 7. mariadb-server installs properly there so I changed back my revision. The error I saw was Access denied for user 'root'at'localhost' (using password: YES)
. I've added this line back and it worked fine:
os.system('systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"')
.
Sargis,
If you add skip-grant-table, the part after autoinstallation to add a production usr_object user and other hosts to log in does not work.
In my changes, the mysql root user got assigned password the same as the host root, so that it can proceed without activate skip-grant-table. I have not changed the documentation maybe that have caused confusion for you.
Ok, got it. Removed that line and it worked. Just needed to wait a bit for it to set mysql root password.
- Status changed from Assigned to Closed
Also available in: Atom
PDF