Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csharp database creation fails #56

Open
KIC opened this issue May 22, 2023 · 0 comments
Open

csharp database creation fails #56

KIC opened this issue May 22, 2023 · 0 comments

Comments

@KIC
Copy link

KIC commented May 22, 2023

Note due to #53 the image name is different:

creating a database fails

docker run --rm --name codeql-container -v `pwd`/backend/App:/opt/src -v `pwd`/tmp/:/opt/results -e CODEQL_CLI_ARGS="database create /opt/results/source_db -s /opt/src --language=csharp --overwrite" codeql

prints:

Initializing database at /opt/results/source_db.
Running build command: [/usr/local/codeql-home/codeql/csharp/tools/autobuild.sh]
A fatal error occurred: Exit status 1 from command: [/usr/local/codeql-home/codeql/csharp/tools/autobuild.sh]
Error 2 executing from command.
Exiting...
Command Output: 
[2023-05-22 06:50:12] [build-stdout] CodeQL C# autobuilder
[2023-05-22 06:50:12] [build-stdout] Working directory: /opt/src
[2023-05-22 06:50:12] [build-stdout] Attempting to build using .NET Core
[2023-05-22 06:50:12] [build-stdout] Running dotnet --info
[2023-05-22 06:50:12] [build-stderr] A fatal error occurred. The folder [/usr/share/dotnet/host/fxr] does not exist
[2023-05-22 06:50:12] [build-stdout] Exit code 131
[2023-05-22 06:50:12] [build-stdout] Attempting to build using MSBuild
[2023-05-22 06:50:12] [build-stdout] Running nuget restore /opt/src/App.csproj -DisableParallelProcessing
[2023-05-22 06:50:12] [build-stdout] Exit code 1: An error occurred trying to start process 'nuget' with working directory '/opt/src'. No such file or directory
[2023-05-22 06:50:12] [build-stdout] Attempting to download nuget.exe
[2023-05-22 06:50:33] [build-stdout] Successfully downloaded /opt/src/.nuget/nuget.exe
[2023-05-22 06:50:33] [build-stdout] Running mono /opt/src/.nuget/nuget.exe restore /opt/src/App.csproj -DisableParallelProcessing
[2023-05-22 06:50:33] [build-stdout] Exit code 1: An error occurred trying to start process 'mono' with working directory '/opt/src'. No such file or directory
[2023-05-22 06:50:33] [build-stdout] Running msbuild /t:restore /opt/src/App.csproj
[2023-05-22 06:50:33] [build-stdout] Exit code 1: An error occurred trying to start process 'msbuild' with working directory '/opt/src'. No such file or directory
[2023-05-22 06:50:33] [build-stdout] Running msbuild /opt/src/App.csproj /t:rebuild
[2023-05-22 06:50:33] [build-stdout] Exit code 1: An error occurred trying to start process 'msbuild' with working directory '/opt/src'. No such file or directory
[2023-05-22 06:50:33] [build-stdout] Attempting to locate build script
[2023-05-22 06:50:33] [build-stderr] Error: Could not auto-detect a suitable build method
[2023-05-22 06:50:33] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/usr/local/codeql-home/codeql/tools/linux64/preload_tracer, /usr/local/codeql-home/codeql/csharp/tools/autobuild.sh])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant