You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First time user here. I ran through the steps outlined in the Docker installation steps, but was unable to get BaGet running.
To Reproduce
A full bash log follows:
[jbarreto@fedora baget]$ ls
baget-data baget.env
[jbarreto@fedora baget]$ cat baget.env
# The following config is the API Key used to publish packages.
# You should change this to a secret value to secure your server.
ApiKey=NUGET-SERVER-API-KEY
Storage__Type=FileSystem
Storage__Path=/var/baget/packages
Database__Type=Sqlite
Database__ConnectionString=Data Source=/var/baget/baget.db
Search__Type=Database
[jbarreto@fedora baget]$ docker pull loicsharma/baget
Using default tag: latest
latest: Pulling from loicsharma/baget
Digest: sha256:7ed7bdc3d29bb5145d69d1ca73b7c5fd4a34f72dd8b2810c907a6703b172b8ba
Status: Image is up to date for loicsharma/baget:latest
docker.io/loicsharma/baget:latest
[jbarreto@fedora baget]$ docker run --rm --name nuget-server -p 5555:80 --env-file baget.env -v "$(pwd)/baget-data:/var/baget" loicsharma/baget:latest
fail: Microsoft.EntityFrameworkCore.Database.Connection[20004]
An error occurred using the connection to database 'main' on server '/var/baget/baget.db'.
Unhandled exception. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteConnection.Open()
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteDatabaseCreator.Create()
at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.CreateAsync(CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at BaGet.Core.AbstractContext`1.RunMigrationsAsync(CancellationToken cancellationToken) in /src/BaGet.Core/Entities/AbstractContext.cs:line 36
at BaGet.Web.IHostExtensions.RunMigrationsAsync(IHost host, CancellationToken cancellationToken) in /src/BaGet.Web/Extensions/IHostExtensions.cs:line 35
at BaGet.Program.<>c__DisplayClass0_0.<<Main>b__1>d.MoveNext() in /src/BaGet/Program.cs:line 52
--- End of stack trace from previous location where exception was thrown ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplicationExtensions.<>c__DisplayClass9_0.<<OnExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at BaGet.Program.Main(String[] args) in /src/BaGet/Program.cs:line 55
at BaGet.Program.<Main>(String[] args)
Seems like I ran into the same problem (but on Rocky Linux).
You probably installed docker with dnf install docker as I previously did.
Removing it with dnf rm docker (beware, I had no images I wanted to keep at the time, I have no idea if they will get permanently deleted) then installing it from the docker repository solved all my problems.
Doing so solved our problems and other random ones that I had with other images. I guess a lot of errors could pop in our initial configuration with no clue leading to this “bad” installation, making this problem quite hard to troubleshoot…
This is strange because I use Docker on a day-to-day basis w/out any other sort of issue. I will attempt the quoted instructions soon, but just want to note that these are the packages which dnf bids me to remove (plus dependencies):
It makes me wonder if there is a bug in the moby-engine package, which I thought was the upstream to Docker's official repos. I do notice, eg, that moby-engine is still on 20.10.12-1, whereas the official repo is up to 20.10.14.
Describe the bug
First time user here. I ran through the steps outlined in the Docker installation steps, but was unable to get BaGet running.
To Reproduce
A full bash log follows:
Expected behavior
I expected BaGet to run :)
Additional context
Please let me know if there are any other details I can include.
The text was updated successfully, but these errors were encountered: