Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gitlab-runner
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Seipel
gitlab-runner
Commits
13a559fb
Commit
13a559fb
authored
8 years ago
by
Ben Bodenmiller
Browse files
Options
Downloads
Patches
Plain Diff
clean FAQ for question 13
parent
02b11061
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/faq/README.md
+17
-19
17 additions, 19 deletions
docs/faq/README.md
with
17 additions
and
19 deletions
docs/faq/README.md
+
17
−
19
View file @
13a559fb
...
@@ -196,49 +196,47 @@ When installing and starting the GitLab Runner service on Windows you can
...
@@ -196,49 +196,47 @@ When installing and starting the GitLab Runner service on Windows you can
meet with such error:
meet with such error:
```
```
$ gitlab-
ci-multi-
runner
.exe
install --password WINDOWS_MACHINE_PASSWORD
$ gitlab-runner install --password WINDOWS_MACHINE_PASSWORD
$ gitlab-
ci-multi-
runner
.exe
start
$ gitlab-runner start
$ FATA[0000] Failed to start GitLab Runner: The service did not start due to a logon failure.
$ FATA[0000] Failed to start GitLab Runner: The service did not start due to a logon failure.
```
```
This error can occur when the user used to execut the service doesn't have
This error can occur when the user used to execut
e
the service doesn't have
the
`SeServiceLogonRight`
permission. In such case you need to add this
the
`SeServiceLogonRight`
permission. In such case you need to add this
permission for the chosen user and then try to start the service again.
permission for the chosen user and then try to start the service again.
You can add
`SeServiceLogonRight`
in two ways:
You can add
`SeServiceLogonRight`
in two ways:
1.
Manually using Administrative Tools:
1.
Manually using Administrative Tools:
-
Go to _Control Panel > System and Security > Administrative Tools_,
-
Go to _Control Panel > System and Security > Administrative Tools_,
-
open the _Local Security Policy_ tool,
-
open the _Local Security Policy_ tool,
-
chose the _Security Settings > Local Policies > User R
I
ghts Assigment_ on the
-
chose the _Security Settings > Local Policies > User R
i
ghts Assig
n
ment_ on the
list on the left,
list on the left,
-
open the _Log on as a service_ on the list on the right,
-
open the _Log on as a service_ on the list on the right,
-
click on the _Add User or Group..._ button,
-
click on the _Add User or Group..._ button,
-
add the user ("by hand" or using _Advanced..._ button) and apply the settings.
-
add the user ("by hand" or using _Advanced..._ button) and apply the settings.
> **Notice:** According to [Microsoft's documentation][microsoft-manually-set-seservicelogonright]
> **Notice:** According to [Microsoft's documentation][microsoft-manually-set-seservicelogonright]
> this should work for: Windows Vista, Windows Server 2008, Windows 7, Windows 8.1,
> this should work for: Windows Vista, Windows Server 2008, Windows 7, Windows 8.1,
> Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8
> Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8
> **Notice:** The _Local Security Policy_ tool may be not available in some
> Windows versions - for example in "Home Edition" variant of each version.
2.
From command line, using the
`Ntrights.exe`
tool:
> **Notice:** The _Local Security Policy_ tool may be not available in some
> Windows versions - for example in "Home Edition" variant of each version.
1.
From command line, using the
`Ntrights.exe`
tool:
-
Download tools from
[
Microsoft's download site
][
microsoft-ntrights-download
]
,
-
Download tools from
[
Microsoft's download site
][
microsoft-ntrights-download
]
,
-
execute
`ntrights.exe ntrights +r SeServiceLogonRight -u USER_NAME_HERE`
(remember,
-
execute
`ntrights.exe ntrights +r SeServiceLogonRight -u USER_NAME_HERE`
(remember,
that you should provide a full path for
`ntrights.exe`
executable
**or**
add that
that you should provide a full path for
`ntrights.exe`
executable
**or**
add that
path to system's
`
$Path
`
environment variable).
path to system's
`
PATH
`
environment variable).
> **Notice:** The tool was created in 2003 and was initially designed to use
> **Notice:** The tool was created in 2003 and was initially designed to use
> with Windows XP and Windows Server 2003. On [Microsoft sites][microsoft-ntrights-usage-on-win7]
> with Windows XP and Windows Server 2003. On [Microsoft sites][microsoft-ntrights-usage-on-win7]
> you can find an example of usage `Ntrights.exe` that applies to Windows 7 and Windows Server 2008 R2.
> you can find an example of usage `Ntrights.exe` that applies to Windows 7 and Windows Server 2008 R2.
> This solution is not tested and because of the age of the software **it may not work
> This solution is not tested and because of the age of the software **it may not work
> on newest Windows versions**.
> on newest Windows versions**.
After adding the
`SeServiceLogonRight`
for the user used in service configuration,
After adding the
`SeServiceLogonRight`
for the user used in service configuration,
the command
`gitlab-
ci-multi-
runner
.exe
start`
should finish without failures
the command
`gitlab-runner start`
should finish without failures
and the service should be started properly.
and the service should be started properly.
[
microsoft-manually-set-seservicelogonright
]:
https://technet.microsoft.com/en-us/library/dn221981
[
microsoft-manually-set-seservicelogonright
]:
https://technet.microsoft.com/en-us/library/dn221981
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment