Skip to content

[Bug]: Server emits LogStorageError exceptions when requesting logs for runs with no logs #2890

@r4victor

Description

@r4victor

Steps to reproduce

  1. Start the dstack server with file logs
  2. Submit a run
  3. While it's provisioning open run page
  4. Observe dstack._internal.server.services.logs.base.LogStorageError: Failed to read log file in the server logs.

Actual behaviour

This happens if the server haven't yet created a file for run logs. So also relevant for failed to start runs. Seems to be introduced by #2845.

Expected behaviour

The server should return no logs if the logs haven't been written.

dstack version

master

Server logs

Additional information

No response

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