If you're creating a bug/problem report, please include the followings:
System.DllNotFoundException at LdapForNet.Native.NativeMethodsLinux.ldap_initialize Unable to load shared library 'ldap.so.2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libldap.so.2: cannot open shared object file: No such file or directory
Our docker file: FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443
RUN apt-get update && apt-get install -y --no-install-recommends libldap-2.4-2 && apt-get install -y --no-install-recommends libldap-common && apt-get install -y --no-install-recommends gss-ntlmssp && rm -rf /var/lib/apt/lists/*
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src
COPY ./*.sln ./NuGet.Config ./
COPY core//.csproj ./ RUN for file in $(ls .csproj); do mkdir -p core/${file%.}/ && mv $file core/${file%.*}/; done
COPY src//.csproj ./ RUN for file in $(ls .csproj); do mkdir -p src/${file%.}/ && mv $file src/${file%.*}/; done
COPY test//.csproj ./ RUN for file in $(ls .csproj); do mkdir -p test/${file%.}/ && mv $file test/${file%.*}/; done
COPY tools//.csproj ./ RUN for file in $(ls .csproj); do mkdir -p tools/${file%.}/ && mv $file tools/${file%.*}/; done
RUN dotnet restore "Neuca.OrderManagementSystem.sln" --configfile "NuGet.Config" COPY . .
RUN dotnet build -c Release -nowarn:msb3202,msb3277,nu1503 -o /app/build --no-restore
FROM build AS test LABEL test=oms_test RUN dotnet test -c Release -nowarn:msb3202,msb3277,nu1503 --no-restore --results-directory /testresults --logger:trx;LogFileName=test-results.trx
FROM build AS publish WORKDIR "/src/src/Neuca.OrderManagementSystem.HttpApi.Host" RUN dotnet publish "Neuca.OrderManagementSystem.HttpApi.Host.csproj" -c Release -o /app/publish -nowarn:msb3202,msb3277,nu1503 --no-restore
FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Neuca.OrderManagementSystem.HttpApi.Host.dll"]
Is anything changed? Should we install any additional lib in our docker file. I've been looking for a solution to this problem, but without success. Do you have any tips? With ABP 5.2.2 this Docker file has worked well.
If I create in a mvc controller method with a header parameter, then abp generate-proxy generate that parameter in proxy but won't use it. In my sample problematic parameter is named "expected-version".
Mvc method: [HttpPut("{offerId:guid}/make-ready")] public async Task MakeOfferReady( [FromRoute] Guid offerId, [FromHeader(Name = "expected-version")] int expectedVersion) { ... }
Angular proxy method
makeOfferReadyByOfferIdAndExpectedVersion = (offerId: string, expectedVersion: number) =>
this.restService.request<any, NoContentResult>({
method: 'PUT',
url: /api/offers/${offerId}/make-ready
,
},
{ apiName: this.apiName });
ABP Framework version: v4.3.2 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): yes Exception message and stack trace: When I try generate new crud entity i got error in suite log:
2021-06-10 21:54:43.815 +02:00 [INF] 8/8 - AngularUiGenerateWithSchematicsCommand started...
2021-06-10 21:54:43.820 +02:00 [INF] Running the Angular Schematics command:
npx "C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro Neuca.OrderManagementSystem "C:/Workspace/OrderManagementSystem/src/aspnet-core/.suite/entities/Sample.json"
2021-06-10 21:54:49.365 +02:00 [INF] Angular Schematics command failed.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:/Workspace/OrderManagementSystem/src/angular/.suite/schematics/node_modules/.bin/ng/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Workspace\OrderManagementSystem\src\angular\.suite\schematics\node_modules\.bin\ng\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\tomlewandowski\AppData\Local\npm-cache\_logs\2021-06-10T19_54_49_326Z-debug.log
2021-06-10 21:54:49.377 +02:00 [INF] 8/8 - AngularUiGenerateWithSchematicsCommand completed. | Duration: 5561 ms.
Hey, I have a problem with docker. When I run docker container with backend and try open hangfire UI I have got 500 error. It looks like I have two problems. First with unauthorize access (401) to the hangfire UI. And second with Leptone css files in docker. Everything other works fine and it's look like a problem with LeptonTheme (I have imported LeptoneTheme to my solution). I don't know why docker don't see lepton files. When I publish app normaly to the folder and host it on iis server I don't have this problem. Do you have any ideas?