Skip to content

error upon server startup: could not cleanup temporary directories from record file [...]: no such file or directory #21856

@tbg

Description

@tbg

I made a data dir on my gceworker and tried to start a server from it on my laptop (where I have a different homedir).

ERROR: could not cleanup temporary directories from record file: could not lock temporary directory /home/tschottdorf/go/src/github.com/cockroachdb/cockroach/cockroach-data/cockroach-temp261203114, may still be in use: IO error: while open a file for lock: /home/tschottdorf/go/src/github.com/cockroachdb/cockroach/cockroach-data/cockroach-temp261203114/TEMP_DIR.LOCK: No such file or directory

This is likely because we're using an absolute path somewhere. This shouldn't happen as this makes it impossible to move the data directories.

PS: something we should have a test for.

Assigning @arjunravinarayan as the resident temp storager.

Jira issue: CRDB-12014

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-server-start-drainPertains to server startup and shutdown sequencesC-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.T-storageStorage TeamX-staleno-issue-activity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions