Skip to content

self hosted runner broken update to 2.327.0 #3955

@terickson

Description

@terickson

Describe the bug
Self Hosted runner breaking upgrading to 2.327.0 of runner with error running _update.sh file. Here is the error:
/runner/_work/_update.sh: line 220: syntax error: unexpected end of file

It looks like not all the if conditionals in the shell script are getting closed. After line 148 you should have a fi to close the if conditional.

To Reproduce
Steps to reproduce the behavior:

  1. setup a self hosted runner that is not on 2.327.0. We are using summerwind/actions-runner-dind as our base docker image for our runners.
  2. Let it start up and you will see the runner try to upgrade to 2.327.0 and it will break with the error during the upgrade.
  3. See error: /runner/_work/_update.sh: line 220: syntax error: unexpected end of file

Expected behavior
We expect it to upgrade with no error.

Runner Version and Platform

Version of your runner? Trying to upgrade to: 2.327.0.

OS of the machine running the runner? docker container: summerwind/actions-runner-dind

What's not working?

Current runner version: '2.316.1'
2025-07-25 13:55:27Z: Listening for Jobs
Runner update in progress, do not shutdown runner.
Downloading 2.327.0 runner
Waiting for current job finish running.
Generate and execute update script.
Runner will exit shortly for update, should be back online within 10 seconds.
Runner update process finished.
Runner listener exit because of updating, re-launch runner after successful update
/runner/_work/_update.sh: line 220: syntax error: unexpected end of file

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions