Skip to content

[CRASH] dart run fails logging Compilation did not produce any result... and crashes with PathNotFoundException #55639

Open
@HeySreelal

Description

@HeySreelal

I'm getting the following while trying to run my API built with Dart on the Ubuntu server:

root@veyilserver:~/veyilapi# dart run

Building package executable... (17.7s)
Compilation did not produce any result. Expected file at /root/veyilapi/.dart_tool/pub/bin/veyilapi/tmpCNPJMW/veyilapi.dart-3.3.4.snapshot.incremental.temp
Built veyilapi:veyilapi.
Cannot rename file to '/root/veyilapi/.dart_tool/pub/bin/veyilapi/veyilapi.dart-3.3.4.snapshot', path = '/root/veyilapi/.dart_tool/pub/bin/veyilapi/tmpCNPJMW/veyilapi.dart-3.3.4.snapshot.incremental.temp' (OS Error: No such file or directory, errno = 2)
PathNotFoundException: Cannot rename file to '/root/veyilapi/.dart_tool/pub/bin/veyilapi/veyilapi.dart-3.3.4.snapshot', path = '/root/veyilapi/.dart_tool/pub/bin/veyilapi/tmpCNPJMW/veyilapi.dart-3.3.4.snapshot.incremental.temp' (OS Error: No such file or directory, errno = 2)

Everything was functioning perfectly until I restarted the server yesterday. Now, it's completely broken. I tried uninstalling and reinstalling Dart SDK, also tried using a earlier versions (3.3.0 and 3.0.0) , couldn't get over this one.

Can somebody help with a workaround please?

I'm sorry but I'm kind of not sure if this is an issue with the language or Dart VM. Please navigate me to the right place.

Here's more info about the server and Dart versions I'm using:

Dart version and tooling diagnostic info (dart info)

General info

  • Dart 3.3.4 (stable) (None) on "linux_x64"
  • on linux / Linux 6.5.0-28-generic #29-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 28 23:46:48 UTC 2024
  • locale is C.UTF-8

Process info

No Dart processes found.

Operating System

Ubuntu 23.10 x64

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-dart-cliUse area-dart-cli for issues related to the 'dart' command like tool.dart-cli-compileIssues related to the 'dart compile' tooldart-cli-pubIssues related to the 'dart pub' tooldart-cli-runIssues related to 'dart run'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions