podspec source and source_files is not taking the local path - frameworks

[!] Failed to load 'MyFramework' podspec:
[!] Invalid MyFramework.podspec file: undefined method `scource_files=' for #<Pod::Specification name="MyFramework">
Did you mean? source_files=.
from /Users/sunil/workspace/karTesting/MyFramework/MyFramework.podspec:12
-------------------------------------------
s.source = {:path => "Users/sunil/workspace/karTesting/MyFramework"}
s.scource_files = "Users/sunil/workspace/karTesting/**/*.swift"
end
--
is it compulsory to host the framework in github cant we host locally .

Related

list running services inside an Alpine Container

I am working with an Alpine container and I would like to list all running services inside this container (something like service --status-all). The container is based on the Mosquitto-Image from Dockerhub.
With a little search, I have found that the openrc package must be installed. I tried to install it using apk
apk add openrc
then it returns:
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
140449180932936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/main: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/main: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
140449180932936:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1919:
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.16/community: Permission denied
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.16/community: No such file or directory
ERROR: unable to select packages:
openrc (no such package):
required by: world[openrc]
could anyone help?! Thanks in Advance :)

Kubernetes pod running via MicrosK8s on Ubuntu OS on a GCE VM on google cloud

I am trying to run google cloud python sdk from inside a k8 pod, running on google compute engine. There is a service account attached to the VM, which is giving it access to the secrets manager. I am able to access secrets manager from the host, however running the python sdk from k8 pod complains of not able to access the metadata service
>>> secret_id = 'unskript_test'
>>> name = client.secret_path(project_id, secret_id)
>>> response = client.get_secret(request={"name": name})
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/google/api_core/grpc_helpers.py", line 67, in error_remapped_callable
return callable_(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/grpc/_channel.py", line 946, in __call__
return _end_unary_response_blocking(state, call, False, None)
File "/opt/conda/lib/python3.7/site-packages/grpc/_channel.py", line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = "Getting metadata from plugin failed with error: Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Enginemetadata service. Compute Engine Metadata server unavailable"
debug_error_string = "{"created":"#1630634901.103779641","description":"Getting metadata from plugin failed with error: Failed to retrieve http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true from the Google Compute Enginemetadata service. Compute Engine Metadata server unavailable","file":"src/core/lib/security/credentials/plugin/plugin_credentials.cc","file_line":90,"grpc_status":14}"
>
metadata.google.internal doesnt get resolved from the k8 pod
jovyan#jovyan-25ca6c8c-157d-49e5-9366-f9d57fcb7a9f:~$ wget http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true
--2021-09-03 02:11:19-- http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true
Resolving metadata.google.internal (metadata.google.internal)... failed: Name or service not known.
wget: unable to resolve host address ‘metadata.google.internal’
However, host is able to resolve it
ubuntu#gcp-test-proxy:~$ wget http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true
--2021-09-03 02:11:27-- http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true
Resolving metadata.google.internal (metadata.google.internal)... 169.254.169.254
Connecting to metadata.google.internal (metadata.google.internal)|169.254.169.254|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2021-09-03 02:11:27 ERROR 403: Forbidden.
How can i make the pod resolve metadata.google.internal?

Unable to fetch a patch on github (openembedded repository: unnecessary-to-check-libpcap.patch)

Setup
On Yocto environment, I have a bitbake recipe which fetch a patch on github:
SRC_URI = " \
[...]
https://raw.githubusercontent.com/openembedded/meta-oe/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch;name=patch \
"
When fetching this patch I have the error: ERROR 404: Not Found (since a few days).
Issue
WARNING: Failed to fetch URL https://raw.githubusercontent.com/openembedded/meta-oe/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch;name=patch, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 8, output:
https://raw.githubusercontent.com/openembedded/meta-oe/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch:
2020-08-19 12:21:44 ERROR 404: Not Found.
ERROR: Function failed: Fetcher failure for URL: 'https://raw.githubusercontent.com/openembedded/meta-oe/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch;name=patch'. Unable to fetch URL from any source.
Tests
I tried to access the link directly on internet, it doesn't work.
Also tried with the following link, doesn't work (without raw.githubusercontent.com option):
https://github.com/openembedded/meta-oe/blob/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch
I tried to find this patch on github with no success:
Find in openembedded/meta-openembeded not openembedded/meta-oe (https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch) not the same patch
Find in http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/tree/meta-intel-edison-distro/recipes-support/tcpdump/tcpdump-4.6.1/unnecessary-to-check-libpcap.patch?h=master not the same project
Thanks
please find the new link below:
https://raw.githubusercontent.com/openembedded/meta-openembedded/master/meta-networking/recipes-support/tcpdump/tcpdump/unnecessary-to-check-libpcap.patch
Seems like the url changed.

Deployed IBM cloud function (nodejs) using manifest yaml with dependencies execution fails

I've deployed nodejs based IBM cloud function using manifest file. I'll have few other functions which may share some common codes. Here is the folder structure
manifest.yml
actions/
- myFunction1/
-- index.js
-- package.json
- myFunction2/
-- index.js
-- package.json
- common/
-- utils.js
Here is my manifest.yml -
packages:
myfunctions:
version: 1.0
license: Apache-2.0
actions:
myFunction1:
function: actions/myFunction1
runtime: nodejs:10
include:
- ["actions/common/*.js", "./common/"]
myFunction2:
function: actions/myFunction2/index.js
runtime: nodejs:10
I deployed the functions using following command from cmd-
ibmcloud fn deploy --manifest manifest.yml
The deployment went successful, both functions are created. Second function(myFunction2) executes properly but the first function throws error when try to execute. Here is the error message -
{
"error": "Initialization has failed due to: There was an error uncompressing the action archive."
}
I even tried with the inclusion of the dependencies in manifest and codes but throws same error. I was following this article -
https://medium.com/openwhisk/whisk-deploy-zip-actions-with-include-exclude-30ba6d96ad8b
Still struggling, appreciate any help.
Thanks
Musa

CRXDE doesn't allow me to upload/download bundles

Version AEM 6.3, this is my local instance.
Everytime I go into AEM to install a bundle on my local it says exec.json is missing, I found a manual override for the issue, but it's doubled my time to integrate bundles.
Error
Creating Package
Failed to load resource: the server responded with a status of 404 (Not Found)
service/exec.json?cmd=create:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Dialog.js:191 Uncaught TypeError: Cannot read property 'msg' of undefined
at constructor.CRX.ide.Dialog.DEFAULT_ERROR_HANDLER (Dialog.js:191)
at Object.callback (ext-base-debug.js:1443)
at Ext.form.BasicForm.afterAction (ext-all-debug.js:56465)
at Ext.form.Action.Submit.failure (ext-all-debug.js:58865)
at Ext.data.Connection.handleFailure (ext-all-debug.js:8564)
at handleTransactionResponse (ext-base-debug.js:2517)
at ext-base-debug.js:2552
Installing Package
ext-all-debug.js:8665 POST http://localhost:4502/crx/packmgr/service/exec.json?cmd=upload&jsonInTextarea=true 404 (Not Found)
doFormUpload # ext-all-debug.js:8665
request # ext-all-debug.js:8853
(anonymous) # ext-base-debug.js:751
run # ext-all-debug.js:59008
(anonymous) # ext-base-debug.js:831
setTimeout (async)
defer # ext-base-debug.js:864
doAction # ext-all-debug.js:56328
submit # ext-all-debug.js:56384
doSubmit # UploadPackageDialog.js:56
submit # Dialog.js:128
onClick # ext-all-debug.js:41008
h # ext-all-debug.js:2463
VM420:2 Uncaught SyntaxError: Unexpected token <
at doDecode (ext-all-debug.js:11527)
at Object.decode (ext-all-debug.js:11649)
at Ext.form.Action.Submit.handleResponse (ext-all-debug.js:59055)
at Ext.form.Action.Submit.processResponse (ext-all-debug.js:58876)
at Ext.form.Action.Submit.success (ext-all-debug.js:59024)
at runCallback (ext-all-debug.js:8652)
at Ext.data.Connection.cb (ext-all-debug.js:8656)
at HTMLIFrameElement.h (ext-all-debug.js:2463)
I solved this issue, by finding an old blog: https://aemgeeks.wordpress.com/2017/08/25/install-crx-packages-bundles-automatically-on-server-startup/
Steps
Create an install folder at the root of crx-quickstart folder.
Place package you're trying to install in the install folder.
Restart AEM local.
Upvote my answer.
Can you try installing it from console/bundles?