[MDEV-13976] Windows msi installer fails at starting service - version 10.1.28 Created: 2017-10-01 Updated: 2017-12-19 Resolved: 2017-12-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Packaging, Platform Windows |
| Affects Version/s: | 10.1.28 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Wilbur Union | Assignee: | Vladislav Vaintroub |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Windows 32 bit |
||
| Attachments: |
|
| Sprint: | 10.1.30 |
| Description |
|
MSI installer fails at starting service and rolls back - says not enough privileges - run as administrator. Manual port creation did not work either. |
| Comments |
| Comment by Elena Stepanova [ 2017-10-01 ] | |||
|
Given that 10.0.28 was released almost a year ago, you must have had it for a while. Has it only started failing now? | |||
| Comment by Wilbur Union [ 2017-10-01 ] | |||
|
My error on the drop down it affects 10.1.28 - the latest msi version | |||
| Comment by Elena Stepanova [ 2017-10-01 ] | |||
|
Was it not the case with previous versions, didn't they require the user to have admin rights? | |||
| Comment by Wilbur Union [ 2017-10-01 ] | |||
|
I have admin rights - ran it both ways from a cmd prompt ran as administrator as well as logged in as administrator It is Windows 7 | |||
| Comment by Vladislav Vaintroub [ 2017-10-01 ] | |||
|
Can you please attach verbose installation logs, as per information here | |||
| Comment by Wilbur Union [ 2017-10-01 ] | |||
|
I moved it to the root directory and ran it from there - no change - HOWEVER - in the logfile.txt I see problems Here is one MSI (c) (60:EC) [16:05:11:331]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'F:\'. The first partition on the hard drive is an ext2 partition which was for MacOSX - and Windows has always seen it as "F:" I see that "F:" reference at several places - I do not know the meaning of the rest of the logfile | |||
| Comment by Vladislav Vaintroub [ 2017-10-02 ] | |||
|
Thanks. According to the MSI log, the error is that the service does not start, up to this point everything (bootstrapping, copying) was fine. So I guess MSI is not to blame, but there is something on the box that prevents running mysqld (whether as service, or not). We can figure out from Windows event log entries for MySQL. Can you please run the below command (in elevated command prompt), and attach the resulting log file? Thank you!
| |||
| Comment by Wilbur Union [ 2017-10-02 ] | |||
|
Here is the output from the command you sent | |||
| Comment by Vladislav Vaintroub [ 2017-10-02 ] | |||
|
thanks! unfortunately thats not much readable output on Win7. On my Windows 2012 , description is a readable text, rather than N/A, which makes reconstruction of error log easy Well, if that does not work, since we do not suspect MSI anymore, you can maybe install without DatabaseInstance (you can deselect this feature from the MSI tree) e.g
mysql_install_db.exe is installed by default into C:\Program Files\MariaDB 10.1\bin and start service with
starting service should fail, but at least we'll have a error log in data directory (if you type command above this would be a file with .err extension on C:\db), which will allow us to at have a better idea of what happened. More into on mysql_install_db.exe https://mariadb.com/kb/en/library/mysql_install_dbexe/ | |||
| Comment by Wilbur Union [ 2017-10-04 ] | |||
|
I reinstalled the msi from an elevated commend program and "unchecked" CREATE SERVICE and NETWORKING radio buttons - it apparently created a port on 3306 for mariadb anyway. So I added the port manually to the firewall TCP - 3306 This is the ini it created in the datadir along with the "test" and "mysql" databases [mysqld] I have attached the msi logfile I then ran the command to create the service D:\Program Files\MariaDB 10.1\bin>mysql_install_db.exe --datadir=D:/Program File So I ran the net start command - as the above created the MySQL service and it shows in the Services admin tools of windows - but it resulted in D:\Program Files\MariaDB 10.1\bin>net start MySQL A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. HOWEVER there is no *.err log in the datadir I have attached mariadb_win_event_log_2.txt I would also point out I need innodb_file_per_table = 1 if this is to be of any use to recovering my data I still cannot see how this will ever work with thr install showing any pointer to the "F:" drive which is ext2 | |||
| Comment by Vladislav Vaintroub [ 2017-10-04 ] | |||
|
Ok, in your case, to analyze the failure, we do not necessarily need .err log in datadir, and you do not need service.
And please attach whatever it writes to the stderr to this bug report. | |||
| Comment by Wilbur Union [ 2017-10-04 ] | |||
|
this is output of trying to run the console . . . it stopped with NO console prompt and I did a ctrl c shut it down I had added innodb_file_per_table = 1 to the my.ini D:\Program Files\MariaDB 10.1\bin>mysqld --console 2017-10-04 11:53:02 8144 [Note] mysqld: Normal shutdown 2017-10-04 11:53:03 8144 [Note] Event Scheduler: Purging the queue. 0 events D:\Program Files\MariaDB 10.1\bin> | |||
| Comment by Vladislav Vaintroub [ 2017-10-04 ] | |||
|
Ok, the server starts if user is you, but does not start if user is NetworkService, which is the usual service use after installation. For a quick workaround, you may want to try changing the service config so under your user credential, or under LocalService, or under LocalSystem credentials. | |||
| Comment by Vladislav Vaintroub [ 2017-10-04 ] | |||
|
Also, you do not need file-per-table=1. It is so by default | |||
| Comment by Wilbur Union [ 2017-10-04 ] | |||
|
Service started when log on change to "Local System" - still no *.err file and "Hide extensions for known file types" is "unchecked" - all other file types show I will see if I can get PhpMyAdmin installed and working now | |||
| Comment by Vladislav Vaintroub [ 2017-10-04 ] | |||
|
ok, but take care as right now mysqld is not using the TCP port but pipe instead. I do not know if PhpAdmin copes with that | |||
| Comment by Vladislav Vaintroub [ 2017-12-18 ] | |||
|
Anything new here? | |||
| Comment by Wilbur Union [ 2017-12-18 ] | |||
|
As i said earlier somewhere - there was a ext2 partition at the beginning of the drive - which the installer appears saw as the root drive - which was drive "F", and that likely caused all the issues. I gave up on the Windows install and worked on the Centos 7 server directly upgrading to 10.2.9 | |||
| Comment by Wilbur Union [ 2017-12-19 ] | |||
|
As I said - the ext2 partition likely caused it and I have since also deleted and then shunk that frees pace of that partition out of existence with eaus partition manager - I once has a triple boot setup for for win 7, xp, and the osx | |||
| Comment by Vladislav Vaintroub [ 2017-12-19 ] | |||
|
Not sure this F: has to do with anything. Looks installation was attempted into usual place C:\Program Files\MariaDB 10.1\data . |