Skip to content

dvc add no longer working #10692

Description

@wappler99

Bug Report

Issue name

dvc add causes an unexpected error:

Description

I've had DVC running on a Linux server for the past 3 months. Yesterday I set up a new conda environment with DVC 3.59.1 and now when I add data with "dvc add xxx" I get the following error:

"Adding... ERROR: unexpected error - no such column: "size" - should this be a string literal in single-quotes?".

Let me add that I have tried to reset DVC ("dvc init") and I have also deleted the .dvc directory and started from scratch, but the error persists. Maybe I made a mistake deleting the .dvc directory. Is there something else I need to do for a complete dvc reset?

Reproduce

  1. conda install dvc==3.57.0
  2. git init
  3. dvc init
  4. dvc add data/testfile.txt

Expected

Dvc adds file and does not show an error.

Environment information

Ubuntu 20.04
DVC 3.57.0

Output of dvc doctor:

$ dvc doctor

DVC version: 3.57.0 (conda)

Platform: Python 3.9.21 on Linux-6.8.0-52-generic-x86_64-with-glibc2.35
Subprojects:
dvc_data = 3.16.9
dvc_objects = 5.1.0
dvc_render = 1.0.2
dvc_task = 0.40.2
scmrepo = 3.3.10
Supports:
http (aiohttp = 3.11.12, aiohttp-retry = 2.8.3),
https (aiohttp = 3.11.12, aiohttp-retry = 2.8.3)
Config:
Global: /home/uli/.config/dvc
System: /etc/xdg/dvc
Cache types: https://error.dvc.org/no-dvc-cache
Caches: local
Remotes: None
Workspace directory: ext4 on /dev/nvme0n1
Repo: dvc, git
Repo.site_cache_dir: /var/tmp/dvc/repo/1efc5571a372d9b6285ce7e59990bbae

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?upstreamIssues which need to be resolved in an upstream dependency

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions