Auto Update Failed: Failed to prepare for update: failed to unpack the new version

Hi there,

TeamCity can download the new version automatically. However it can not do the next step: failed to unpack the new version(拒绝访问。) .

> (拒绝访问。) means permisson denied.

I can see that it has already extract all the files to the folder in the target server.

After I add ```Everyone``` role to the UPDATE folder. It fails also.

Any thoughts? Thanks.

0
7 comments

Hi,

According to the error information, it appears that there is no permission to unpack the new version. If possible, please provide a screenshot of the error message.

Additionally, please gather and provide the teamcity-server.log and teamcity-update.log files for further investigation.

Large files can be uploaded via https://uploads.jetbrains.com/. Please let us know the exact id after the upload.

0

Hi, 

this is the screenshot.

teamcity-server.log:

teamcity-update.log:

 

0

Hi,

Could you please share the complete teamcity-server.log and update.log files, preferably with debug logging enabled? Additionally, remember to revert to the default settings after collecting the necessary logs.

In the web UI, go to Administration | Diagnostics page. On the Troubleshooting tab, choose an active logging preset.

Log files can be uploaded via https://uploads.jetbrains.com/. Please let us know the exact id after the upload.

0

sorry, how to set log with bebug logging enabled?

I have set the log level to ```DEBUG```, but it doesn't work, still can not output the error details…

 

0

Hi,

In the web UI, go to Administration | Diagnostics page. On the Troubleshooting tab, choose an active logging preset.

For more details, please refer to the screenshot.

0

The logs has uploaded. 

Upload id: 2024_05_24_NU4jD3r71YxgBjHymFNEv9 (files: teamcity-update.log, teamcity-server.log)

0

Hi,

Based on the teamcity-upgrade.log, it appears that you upgraded the TeamCity server on 4-21. Have there been any modifications to your TeamCity server since then?

According to the teamcity-server.log , it seems that the access denied error occurred because the target directory is not empty.

[2024-05-16 08:17:21,648]   INFO -   jetbrains.buildServer.UPDATE - TeamCity 2024.03.1 (build 156270) distribution has already been downloaded, verifying the checksum
[2024-05-16 08:17:29,456]   INFO -   jetbrains.buildServer.UPDATE - Checksum of the downloaded TeamCity 2024.03.1 (build 156270) distribution is correct
[2024-05-16 08:17:29,459]   INFO -   jetbrains.buildServer.UPDATE - Extracting TeamCity 2024.03.1 (build 156270) distribution to D:\TeamCity\updates\156270\TeamCity-2024.03.1 (target directory is not empty, cleanup)
[2024-05-16 08:18:38,245]   WARN -   jetbrains.buildServer.UPDATE - Error while preparing for 2024.03.1 (build 156270) update (failed to unpack the new version): java.io.IOException: 拒绝访问。 (enable debug to see stacktrace)

So before upgrading the TeamCity server, please perform the following steps:

- Ensure that you have sufficient permissions to write to the folder.

- Verify that there is ample disk space available for the upgrade.

kindly execute the following actions:

1. Stop the TeamCity server.

2. Empty the D:\TeamCity\updates folder.

3. Start the TeamCity server.

4. Proceed with the TeamCity Server upgrade.

If it still doesn't help you, please collect the teamcity-server.log  again and upload to https://uploads.jetbrains.com/. Please let us know the exact id after the upload.

We also can manually upgrade our TeamCity server, for more details, please refer to https://www.jetbrains.com/help/teamcity/upgrading-teamcity-server-and-agents.html#Manual+Update

0

Please sign in to leave a comment.