Skip to content

Ubuntu snap env unable to open database file #759

@Tdarnell

Description

@Tdarnell

After pulling the latest 43 commits on Ubuntu and running pipeline I am getting an sqlalchemy error on the latest version of the main branch that I have not been getting previously.

airsenal==1.14.1

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file
(Background on this error at: https://sqlalche.me/e/20/e3q8)

I have found that deleting the AIRSENAL_DB_FILE out of /home/user/snap/code/208/.local/share/airsenal/ was needed to resolve this. Somehow it seems the snap folder path had moved for my AIrsenal install. Likely to just be a one off issue with my particular environment, but sharing in-case others experience the same. I added a print statement for my AIRSENAL_HOME and checked the contents of that folder to work out what was causing my DB file path to now point to an invalid folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions