[MCOL-404] non-root install fails on centos7 Created: 2016-11-11 Updated: 2023-10-26 Resolved: 2016-11-29 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | 1.0.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | David Hill (Inactive) | Assignee: | David Thompson (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
amazon ec2 centos 7 |
||
| Sprint: | 2016-22, 2016-23 |
| Description |
|
Was planning on setting up out Amazon AMI to be a non-root install and continued to get errors when I tried to launch. Then tried to run on regular centos7 VM, and get the same error. The same binary package works as root user install Will test to see of problem happens on other OSs The issue is postConfigure fails at starting up the system, single serve install Log files point to an messaging error were a procmon thread isnt servicing the API request to get/set status. And this procmon and provmgr reports failures cauings the system not to start Starting MariaDB Columnstore Database Platform MariaDB Columnstore Database Platform Starting, please wait ... FAILED ERROR: MariaDB Columnstore Process failed to start, check log files in /var/log/mariadb/columnstore Nov 11 14:16:46 centos7 oamcpp[729]: 46.839496 |0|0|0| E 08 CAL0000: getSystemStatus: final exception: API Failure return in getSystemStatus write API Nov 8 03:31:27 centos7 messagequeue[4076]: 27.538974 |0|0|0| W 31 CAL0071: InetStreamSocket::read: timeout during readToMagic: socket read error: Success; InetStreamSocket: sd: |
| Comments |
| Comment by David Hill (Inactive) [ 2016-11-16 ] | ||||||||
|
fixed, the main issue was /var/log wasnt setup to allow the alarmmanager to write active-alarm log file and it was causing procmon to exit when it couldn't lock the file 1. change post-install to run chmod on the /var/log to fix initial issue how to test: perform a non-root install | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-16 ] | ||||||||
|
please review, especial the post-install changes.. that is where the change was made to setup /var/log and other directories where our apps can write to that as a non-root user. commit a74b03fdad9443f8e95c1f44d166a10d23d90e21 mcol-404, non-root install fixes oam/install_scripts/columnstore | 20 +++++++++++--------- | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-11-17 ] | ||||||||
|
Doing this poses a potential security risk for the system. You may well find some of the Linux subsystems will revert this very quickly:
The second part would be simpler if you did the following and will also cover the intention of the first part:
Or switch that last line to the following, this would be more in-line with what other daemons do upon installation:
| ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-11-17 ] | ||||||||
|
Assigned back for either further work or discussion. Good work though. Glad we got to the bottom of the problem. | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-17 ] | ||||||||
|
I made the suggested changes and retest. It works, non-root can write to /var/log/mariadb/columnstore and the system does start up successfully. commit 75fc2d9ae020353d84555ec4af6592d27854a6d2 mcol-404 - change the way that the log dir is setup test -d /var/log/mariadb || sudo mkdir /var/log/mariadb >/dev/null 2>&1 | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-17 ] | ||||||||
|
made your suggested changes and all went well... thank you sir.... Please re-review.. | ||||||||
| Comment by Andrew Hutchings (Inactive) [ 2016-11-17 ] | ||||||||
|
Excellent! Assigned to David T for testing as he is probably most familiar with the problem. | ||||||||
| Comment by David Thompson (Inactive) [ 2016-11-17 ] | ||||||||
|
I was able to perform a single server install following the instructions and the install /system works ok. Will now do a multi server and also leave it up over night to check that log rotation works and doesn't mess anything up. | ||||||||
| Comment by David Thompson (Inactive) [ 2016-11-17 ] | ||||||||
|
Tried a 2 node combined install, local disk on centos 7. Everything goes well until starting up the cluster. The script fails because the rsync command is using the root user rather than my test user mcs: 3:33] MariaDB Columnstore successfully started MariaDB Columnstore Database Platform Starting, please wait ....... DONE Run MariaDB Columnstore Replication Setup.. ERROR: Error return in running the MariaDB Columnstore Master DB Distribute, check /tmp/master-dist.logs on pm1 MariaDB Columnstore Install Failed [3:33] [3:33] [3:33] | ||||||||
| Comment by David Thompson (Inactive) [ 2016-11-17 ] | ||||||||
|
also pre-uninstall fails with errors because it assumes /usr/local install. Changing the prefix variable fixes that. | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-18 ] | ||||||||
|
The pre-uninstall works just like the post-install, you have to pass it the install dir path ./mariadb/columnstore/bin/pre-uninstall --installdir=$HOME/mariadb/columnstore | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-18 ] | ||||||||
|
fixed the mysql-rep setup issue.... Fix is in the mcol-61 repo, which is for the amazona AMI feature... So the there But did competed a non-root multi-node combo install, but still more testing will be done before passing on to review and test MariaDB Columnstore Database Platform Starting, please wait ....... DONE Run MariaDB Columnstore Replication Setup.. DONE MariaDB Columnstore Install Successfully Completed, System is Active Enter the following command to define MariaDB Columnstore Alias Commands . /home/centos/mariadb/columnstore/bin/columnstoreAlias Enter 'mcsmysql' to access the MariaDB Columnstore SQL console | ||||||||
| Comment by David Hill (Inactive) [ 2016-11-20 ] | ||||||||
|
development branch has been updated with fixes for the non-root multi-node install. commit 9ce117f521cf8335ebcbc17ddd1b2445b42f8c2a oam/oamcpp/liboamcpp.cpp | 24 ++++- commit 591ff9326fecada2f9e299ef5fa013a875749592 mcol-404 oamapps/postConfigure/postConfigure.cpp | 37 +++++++++++++++------------------- commit 02a5624cb34674d1fc1f526f574c191187438c36 oam/install_scripts/master-rep-columnstore.sh | 7 ++- commit 90706f1c93cb86604ecd6c1d5a3e8ef917d99ed5 Merge branch 'mcol-61' into develop |