Project

General

Profile

Actions

Bug #7193

closed

centos7 autoinstaller does not run correctly

Added by Anchi Cheng over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Sargis Dallakyan
Category:
-
Start date:
04/11/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.4
Show in known bugs:
No
Workaround:

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.
Actions #1

Updated by Anchi Cheng over 5 years ago

  • Description updated (diff)
  • Status changed from New to Assigned
Actions #2

Updated by Sargis Dallakyan over 5 years ago

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

Actions #3

Updated by Anchi Cheng over 5 years ago

  • 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.

Actions #4

Updated by Anchi Cheng over 5 years ago

I have fixed all the bugs in the original bug description with my last commit for CentOS 7.6.

Actions #5

Updated by Sargis Dallakyan over 5 years ago

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.

Actions #6

Updated by Sargis Dallakyan over 5 years ago

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"').

Actions #7

Updated by Anchi Cheng over 5 years ago

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.

Actions #8

Updated by Sargis Dallakyan over 5 years ago

Ok, got it. Removed that line and it worked. Just needed to wait a bit for it to set mysql root password.

Actions #9

Updated by Anchi Cheng over 5 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF