View Issue Details

IDProjectCategoryView StatusLast Update
0019590MMW 5Install/Configpublic2023-09-28 20:13
Reporterpeke Assigned To 
PriorityurgentSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version5.0.5Fixed in Version5.1 
Summary0019590: Service install fail with "error 1069: service fail to start due to login failure"
DescriptionService install fail with "error 1069: service fail to start due to login failure"

Looks like Windows changed policy to prevent users use local service to get illegal access to system files so Users are often by default revoked of that permission policy.

to resolve this make sure that user is added in Local Security Policy (secpol.msc) -> Security Settings -> Local Polices ->User Rights Assignment -> In right side panel, double click to open policy "Log on as a service" and add Your user name to list of allowed.

After that MM service will start to work normally even after Windows restart.

Help page https://learn.microsoft.com/en-US/troubleshoot/windows-server/system-management-components/service-startup-permissions from (below dialog) do not help resolve the issue.

Dialog needs to be changed to better explain where the problem is and point to our Help page.

Suggested Dialog text would be: "Service fail to start due to a logon failure or User is not allowed to register Service."
Steps To ReproduceSteps to reproduce/trigger:
1. Use Local Security Policy (secpol.msc) -> Security Settings -> Local Polices ->User Rights Assignment -> In right side panel, double click to open policy "Log on as a service" and add delete your username from allowed list.
2. After applying settings MM Service can not be started Using YOUR user credentials and Error 1069 will trigger.
Additional Informationhttps://www.roelvanlisdonk.nl/2010/03/24/how-to-grant-log-on-as-a-service-rights-to-an-user-account-using-powershell/
https://stackoverflow.com/questions/313831/using-powershell-how-do-i-grant-log-on-as-service-to-an-account
https://stackoverflow.com/questions/25619112/how-do-i-fix-the-error1069-the-service-did-not-start-due-to-logon-failure
Tagstodoc-help
Fixed in build2800

Relationships

related to 0014219 closedLudek MMW 5 [Install as service] not possible in MM5 
related to 0014218 closedLudek MMW v4 Some users cannot install/start MM as service until they edit Local Policy settings 

Activities

peke

2022-11-29 00:06

developer   ~0070452

image.png (4,014 bytes)   
image.png (4,014 bytes)   

rusty

2022-11-29 16:00

administrator   ~0070457

Aside from messaging the user when the service fails on restart, MM should probably also try to prevent the issue from occurring by either:
a) Greying out the option if the user doesn't have appropriate rights
b) Messaging the user on attempting to make the change if they don't have appropriate rights
Media Server (xx)
---------------------------
Install as service: insufficient rights!
[Help]

As to the message that appears on restart, we can probably use common strings:
Media Server (xx)
---------------------------
Start service: failed (insufficient rights)!
[Help]

Suggested redirect link: https://www.mediamonkey.com/mmw/upnp-service-failure

Ludek

2022-11-29 18:29

developer   ~0070459

Last edited: 2022-11-29 18:33

Note that in my case (Windows 11 Home) the log-on failure haven't been caused by my account missing in "Log on as a service"
but I realized that I need to use password for my Microsoft Account (as I forgot that my account is connected via MS account alhough I have just PIN set to log on into my account when starting computer).

So it was another issue than the Peke's.

With that in mind I guess we should really create our own KB article/wiki page (Rusty suggested link https://www.mediamonkey.com/mmw/upnp-service-failure )
where we will summarize possible reasons for the "Log on" failure.

Ludek

2022-11-29 20:39

developer   ~0070461

Last edited: 2022-11-29 21:05

OK, so I redirected the [Help] button on the error dialog after the installing the service (0019590:0070452)
from https://support.microsoft.com/en-gb/kb/327545 to
https://www.mediamonkey.com/mmw/upnp-service-failure

As for the wording changes suggested by Rusty: The log on failure isn't generally about unsifficient rights, once the user accepts UAC prompt to install the service then it has sufficient rights.

I changed target to 5.0.5 so that the redirection to https://www.mediamonkey.com/mmw/upnp-service-failure gets active ASAP

Assigned to create the corresponding KB and make the redirection from https://www.mediamonkey.com/mmw/upnp-service-failure to the KB article.

The article example:


When you install MediaMonkey as service (Options > MediaSharing > [Install as service]) and an error is occuring when starting the service then it is typically due to Log On failure.

To resolve this:

1) Press WinKey and type 'Services', press Enter, locate 'MediaMonkey' service, double-click it and go to 'Log On' screen.
Then ensure that the account and the password is correct.
Note that if you previously connected your account to Microsoft Account then you will need to enter the password of the Microsoft Account.

2) In certain environments you will need to Enable service log on through a local group policy : https://learn.microsoft.com/en-us/system-center/scsm/enable-service-log-on-sm?view=sc-sm-2022#enable-service-log-on-through-a-local-group-policy

3) If you have still trouble to Log on to your current account then you can Log on with Local System account, but this will fail to connect database file from your current account. In that case you might need to change the default location of your MediaMonkey database:
https://www.mediamonkey.com/support/knowledge-base/mediamonkey-install-config/modifying-the-mediamonkey-db-and-ini-files/

lowlander

2023-08-17 19:54

developer   ~0072642

Added as: https://www.mediamonkey.com/support/knowledge-base/uncategorized/service-install-fail-with-error-1069-service-fail-to-start-due-to-login-failure/

rusty

2023-08-21 14:28

administrator   ~0072674

Redirect has been updated (note: url changed to https://www.mediamonkey.com/support/knowledge-base/mma-install-config/upnp-service-install-fails/ )

peke

2023-09-28 20:13

developer   ~0072943

Verified 2816