Protobuf permission issue when install grpc - cmake

I am following the instructions from https://grpc.io/docs/languages/cpp/quickstart/
in order to install grpc using cmake, but I run into a permission issue.
Running gRPC C++ protocol buffer compiler on src/proto/grpc/reflection/v1alpha/reflection.proto
/bin/sh: 1: /home/user/external/grpc/cmake/build/third_party/protobuf/protoc-3.19.4.0: Permission denied
What could cause this and how to fix it?

I resolved this issue upgrading grpc's code from v1.46.3 to v1.48.0.

Related

Azure pipeline fails node-gyp error at yarn install task

I am running wdio test on azurepipelines on windows agent while upgrading from Node12 to Node14 getting error in yarn install any help is appreciated
you need to fix python libraries and install python in ur system i faced the same error a while ago , fixed it with re-installing python
We had to fix two things to resolve this as the above answer suggest I need to install python for all users in the azure agent
secondly I need to update the visual studio build tools to include the C++ development options

Unable to install Dotnet Stryker

I have tried the below commands to install dotnet stryker to my project to improve the mutation testing but getting below error message and it does not allow me to install the tool.
Could you please help on this.
Thanks in advance
PS C:\Users> dotnet tool install -g dotnet-stryker
C:\Program Files\dotnet\sdk\6.0.101\NuGet.targets(130,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Users\AppData\Local\Temp\evv2az1v.kwa\restore.csproj]
C:\Program Files\dotnet\sdk\6.0.101\NuGet.targets(130,5): error : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (api.nuget.org:443) [C:\Users\AppData\Local\Temp\evv2az1v.kwa\restore.csproj]
C:\Program Files\dotnet\sdk\6.0.101\NuGet.targets(130,5): error : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [C:\Users\AppData\Local\Temp\evv2az1v.kwa\restore.csproj]
The tool package could not be restored.
Tool 'dotnet-stryker' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
Below commands are also getting the same error message
PS C:\Users> dotnet tool install -g dotnet-stryker dotnet tool install --global dotnet-stryker --version 1.0.0
This is most probably not related to Stryker but to some weird NuGet situation. You can check it by installing some common tool, e.g dotnet-reportgenerator-globaltool. I think I have seen this kind of error when setting up local feeds for dev purposes.
So try this:
dotnet nuget list source - list feeds
dotnet nuget remove source <feed_name> - remove everything you don't need or understand
And then try installing Stryker once again.

Cloudflare Pages Deployment: Yarn install fails with 401 Unauthorized for fontawesome dependency

Deployments worked fine before I installed FontAwesome. Locally it works fine even with FontAwesome. But with FontAwesome dependency installed Cloudflare fails.
Console log from Cloudflare Pages:
23:32:59.378 Installing NPM modules using Yarn version 1.22.4
23:32:59.751 yarn install v1.22.4
23:32:59.851 [1/4] Resolving packages...
23:33:00.491 [2/4] Fetching packages...
23:33:00.802 error An unexpected error occurred: "https://npm.fontawesome.com/#fortawesome/free-solid-svg-icons/-/5.15.3/free-solid-svg-icons-5.15.3.tgz: Request failed \"401 Unauthorized\"".
23:33:00.802 info If you think this is a bug, please open a bug report with the information provided in "/opt/buildhome/repo/yarn-error.log".
23:33:00.802 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
23:33:23.195 Error during Yarn install
23:33:23.195 Failed: build command exited with code: 1
I just had this issue when trying build a Strapi app on DigitalOcean. I was able to fix it using this guide from the FontAwesome website.
Unfortunately, this workaround requires a valid auth token. Luckily for me, I was already an FA Pro subscriber.
Create an .npmrc file in the root of your project and add the below code, replacing "TOKEN" with your auth token. The auth token can be found on the guide linked above once logged into the FA website.
#fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=TOKEN
I'm not well versed enough in npm authentication to know why the free version would require this, but I'm sure there must be another workaround for free users of FA.

Azure Functions func host start Error: "The gRPC binary module was not installed."

yesterday the VS Code informed me to update azure-functions-core-tools and after updating it, this error was displayed to me after I ran "func host start" :
Couldn't require bundle, falling back to Worker.js. Error: The gRPC binary module was not installed.This may be fixed by running "npm rebuild"
any idea on how to fix this?I tried npm rebuild and it does not worked.
This error often indicates that the grpc library was installed for a platform that is different from the one it is running on. The solution is to run npm install with extra arguments that describe the platform the library will run on. These options are described in the node-pre-gyp README.
For example, to install grpc for use on Node 10.0.0 on a 64-bit Linux that is not Alpine Linux, you can use the following command:
npm install --target=10.0.0 --target_arch=x64 --target_platform=linux --target_libc=glibc
Note: the target_libc option should be omitted for platforms other than Linux.
after 2 hours, installing x86 version of azure-functions-core-tools resolved the error. but this may not be the best solution.

why i got an error script after enable rabbitmq_management

i was try to install and running rabbitmq in my windows and following the tutorial from the official web.
but i got an error script after run
rabbitmq-plugins enable rabbitmq_management
in my command prompt
this is an error i have
error script in rabbitmq_management
i was run rabbitmq service but it's no effect
and i cannot run http://localhost:15672
i think it's because management plugin error, how to fix the error script. ?
The error undef crypto module means that you don't have the erlang crypo module installed.
The Management UI requires this module.
You are maybe running an old erlang version.
Try to remove the the current version and download this version:
http://erlang.org/download/otp_win64_18.3.exe