Fastlane : [altool] Error: Unable to upload archive. Failed to get authorization for username and password - flutter

I try to upload my flutter ipa to the AppStore with fastlane using pilot with the following command:
bundle exec fastlane pilot upload --ipa ../build/ios/ipa/project.ipa
When I run this command I face the following error
I have a .p8 in the private_keys folder
It seems that pilot can log me with my apple ID but just after it throws me that it failed to get authorization.
After it failed, when I go to TestFlight I can see my new version available but with the old version name (e.g. 1.0.0 instead of 1.0.1)
[monsieur_x | ~/project/ios ]$ bundle exec fastlane pilot upload --ipa ../build/ios/ipa/project.ipa
[βœ”] πŸš€
[17:54:31]: Login to App Store Connect (apple_id#gmail.com)
[17:54:33]: Login successful
[17:54:35]: Ready to upload new build to TestFlight (App: 1544671867)...
[17:54:39]: Going to upload updated app to App Store Connect
[17:54:39]: This might take a few minutes. Please don't interrupt the script.
[17:54:41]: [altool] 2022-10-26 17:54:41.294 *** Error: Unable to upload archive. Failed to get authorization for username 'apple_id#gmail.com' and password. (
[17:54:41]: [altool] "Error Domain=NSCocoaErrorDomain Code=0 \"Status code: 0\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}"
[17:54:41]: [altool] ) (-1011)
[17:54:41]: [altool] {
[17:54:41]: [altool] NSLocalizedDescription = "Unable to upload archive.";
[17:54:41]: [altool] NSLocalizedFailureReason = "Failed to get authorization for username 'apple_id#gmail.com' and password. (\n \"Error Domain=NSCocoaErrorDomain Code=0 \\\"Status code: 0\\\" UserInfo={NSLocalizedDescription=Status code: 0, NSLocalizedFailureReason=The auth server returned a bad status code.}\"\n)";
[17:54:41]: [altool] }
[17:54:41]: Application Loader output above ^
[17:54:41]: Error uploading '/var/folders/gr/z1j06nhs2sd38gwv4_l51rj40000gn/T/7d36fd34-357d-4c08-aa9d-7db6ed3a8b82.ipa'.
[17:54:41]: Unable to upload archive. Failed to get authorization for username 'apple_id#gmail.com' and password. (
[17:54:41]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
[17:54:41]: Could not download/upload from App Store Connect!
[!] Error uploading ipa file:
[Application Loader Error Output]: Error uploading '/var/folders/gr/z1j06nhs2sd38gwv4_l51rj40000gn/T/7d36fd34-357d-4c08-aa9d-7db6ed3a8b82.ipa'.
[Application Loader Error Output]: Unable to upload archive. Failed to get authorization for username 'apple_id#gmail.com' and password. (
[Application Loader Error Output]: The call to the altool completed with a non-zero exit status: 1. This indicates a failure.
Here is my fastlane env if you need:
<details><summary>🚫 fastlane environment 🚫</summary>
### Stack
| Key | Value |
| --------------------------- | -------------------------------------------------------------- |
| OS | 12.6 |
| Ruby | 2.6.8 |
| Bundler? | false |
| Git | git version 2.38.0 |
| Installation Source | /usr/local/bin/fastlane |
| Host | macOS 12.6 (21G115) |
| Ruby Lib Dir | /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib |
| OpenSSL Version | LibreSSL 2.8.3 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 14.0.1 |
| Swift Version | 5.7 |
### System Locale
| Error |
| --------------------------- |
| No Locale with UTF8 found 🚫 |
### fastlane files:
<details><summary>`./fastlane/Fastfile`</summary>
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:ios)
platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
increment_build_number(xcodeproj: "Runner.xcodeproj")
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
upload_to_testflight
end
end
`./fastlane/Appfile`
app_identifier("com.balanz") # The bundle identifier of your app
apple_id("contact#balanz.fr") # Your Apple Developer Portal username
itc_team_id("122453945") # App Store Connect Team ID
team_id("T3P8853DAC") # Developer Portal Team ID
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
fastlane gems
Gem
Version
Update-Status
fastlane
2.210.1
βœ… Up-To-Date
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
Gem
Version
did_you_mean
1.3.0
atomos
0.1.3
colored2
3.1.2
nanaimo
0.3.0
rexml
3.2.5
xcodeproj
1.21.0
rouge
2.0.7
xcpretty
0.3.0
terminal-notifier
2.0.0
unicode-display_width
1.8.0
terminal-table
1.8.0
plist
3.6.0
public_suffix
4.0.6
addressable
2.8.0
multipart-post
2.0.0
word_wrap
1.0.0
optparse
0.1.1
tty-screen
0.8.1
tty-cursor
0.7.1
tty-spinner
0.9.3
artifactory
3.0.15
babosa
1.0.4
colored
1.2
highline
2.0.3
commander
4.6.0
excon
0.92.2
faraday-em_http
1.0.0
faraday-em_synchrony
1.0.0
faraday-excon
1.1.0
faraday-httpclient
1.0.1
faraday-multipart
1.0.3
faraday-net_http
1.0.1
faraday-net_http_persistent
1.2.0
faraday-patron
1.0.0
faraday-rack
1.0.0
faraday-retry
1.0.3
ruby2_keywords
0.0.5
faraday
1.10.0
unf_ext
0.0.8.1
unf
0.1.4
domain_name
0.5.20190701
http-cookie
1.0.4
faraday-cookie_jar
0.0.7
faraday_middleware
1.2.0
fastimage
2.2.6
gh_inspector
1.1.3
mini_magick
4.11.0
naturally
2.2.1
rubyzip
2.3.2
security
0.1.3
xcpretty-travis-formatter
1.0.1
dotenv
2.7.6
bundler
2.3.10
simctl
1.6.8
jwt
2.3.0
uber
0.1.0
declarative
0.0.20
trailblazer-option
0.1.2
representable
3.1.1
retriable
3.1.2
mini_mime
1.1.2
memoist
0.16.2
multi_json
1.15.0
os
1.1.4
signet
0.16.1
googleauth
1.1.2
httpclient
2.8.3
google-apis-core
0.4.2
google-apis-playcustomapp_v1
0.7.0
google-apis-androidpublisher_v3
0.17.0
google-cloud-env
1.6.0
google-cloud-errors
1.2.0
google-cloud-core
1.6.0
google-apis-iamcredentials_v1
0.10.0
google-apis-storage_v1
0.11.0
digest-crc
0.6.4
google-cloud-storage
1.36.1
emoji_regex
3.2.3
jmespath
1.6.1
aws-partitions
1.572.0
aws-eventstream
1.2.0
aws-sigv4
1.4.0
aws-sdk-core
3.130.0
aws-sdk-kms
1.55.0
aws-sdk-s3
1.113.0
CFPropertyList
3.0.5
claide
1.1.0
json
2.6.1
webrick
1.7.0
rake
13.0.6
forwardable
1.2.0
logger
1.3.0
date
2.0.0
stringio
0.0.2
ipaddr
1.2.2
openssl
2.1.2
zlib
1.0.0
mutex_m
0.1.0
ostruct
0.1.0
strscan
1.0.0
io-console
0.4.7
fileutils
1.1.0
etc
1.0.1
libxml-ruby
3.2.1
psych
3.1.0
generated on: 2022-10-27
Does someone have an idea ?
Thank you !

Hello I was struggling with this issue for many days.
Solution
Step 1
Go to https://appleid.apple.com/account/manage login in and go to App-Specific Passwords, after generate a new App Specific Password copy it.
Step2
Inside fastlane folder create a new file .env.default and add the two properties .
FASTLANE_USER=<Apple USER ID>
FASTLANE_PASSWORD=<Apple Password>
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=<App-Specific Password>
Use an app-specific password to sign in to an app or service not provided by Apple ass a fastlane.
------------------------------Other options--------------------------------
You have different options not only using .env file.
1- In your Fastfile
FASTLANE_USER=<Apple USER ID>
FASTLANE_PASSWORD=<Apple Password>
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=<App-Specific Password>
lane :beta do
crashlytics
end
2- Bash Profile
nano ~/.bash_profile
insert your properties
FASTLANE_USER=<Apple USER ID>
FASTLANE_PASSWORD=<Apple Password>
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD=<App-SpecificPassword>
CTRL + X - save changes.
reopen your terminal
Please in check the link for more details about.
https://docs.fastlane.tools/best-practices/keys/

Related

Checkov upgrade notice causing CI to fail

Beginning around 11:30am ET on 11/21/2022, our CI pipelines started failing due to a Checkov update/upgrade notice with an input prompt (see output below).
Is there command line option to skip this check from bridgecrew?
$ checkov
_ _
___| |__ ___ ___| | _______ __
/ __| '_ \ / _ \/ __| |/ / _ \ \ / /
| (__| | | | __/ (__| < (_) \ V /
\___|_| |_|\___|\___|_|\_\___/ \_/
By bridgecrew.io | version: 2.1.244
Update available 2.1.244 -> 2.2.80
Run pip3 install -U checkov to update
Would you like to β€œlevel up” your Checkov powers for free? The upgrade includes:
β€’ Command line docker Image scanning
β€’ Software Composition Analysis
β€’ Centralized policy management
β€’ Free bridgecrew.cloud account with API access
β€’ Auto-fix remediation suggestions
β€’ Enabling of VS Code Plugin
β€’ Dashboard visualisation of Checkov scans
β€’ Integration with GitHub for:
β—¦ Automated Pull Request scanning
β—¦ Auto remediation PR generation
β€’ Integration with up to 100 cloud resources for:
β—¦ Automated cloud resource checks
β—¦ Resource drift detection
and much more...
It's easy and only takes 2 minutes. We can do it right now!
To Level-up, press 'y'...
Level up? (y/n): Traceback (most recent call last):
File "/usr/bin/checkov", line 9, in <module>
sys.exit(run())
File "/usr/lib/python3.10/site-packages/checkov/main.py", line 368, in run
bc_integration.onboarding()
File "/usr/lib/python3.10/site-packages/checkov/common/bridgecrew/platform_integration.py", line 696, in onboarding
reply = self._input_levelup_results()
File "/usr/lib/python3.10/site-packages/checkov/common/bridgecrew/platform_integration.py", line 860, in _input_levelup_results
result = str(input('Level up? (y/n): ')).lower().strip() # nosec
EOFError: EOF when reading a line
Uploading artifacts for failed job
00:01
Uploading artifacts...
WARNING: plan.json: no matching files
ERROR: No files to upload
I did try to update the version using pip but the old version is still being used. This is a separate issue, and at this point my focus is on avoiding the update check entirely.
bash-5.1# checkov --version
2.1.244
bash-5.1# pip3 install -U checkov
... (Lots of output)
bash-5.1# checkov --version
2.1.244
This is my .checkov.yaml file:
compact: true
quiet: true
skip-download: false
download-external-modules: true
directory:
- ./
skip-check:
- CKV_AWS_18
- CKV_AWS_50
- CKV_AWS_115
- CKV_AWS_116
- CKV_AWS_117
- CKV_AWS_158
- CKV_AWS_173
- CKV_OPENAPI_4 # some APIs are public
- CKV_OPENAPI_5 # some APIs are public
- LOW
You're only getting this output because you're calling checkov without any command line parameters. It's been like this for about a year maybe even more.
If anyone else runs into this, I fixed it by explicitly passing the config-file flag on the command line:
checkov --config-file .checkov.yaml
It's still unclear to me why the pipelines started failing when we were using a pre-build Docker image to run our jobs.
I did try to update the version using pip but the old version is still being used
Version 2.1.244 was released on Oct 2nd, so it isn't from today. I join James' suggestion to use parameters - it will avoid this prompt altogether. And also to check what is missing in your machine's deps as it seems the latest checkov cannot be installed. Highly recommend using checkov's docker directly if you're not in the mood to debug this, too!

Bitbake Add Third Party GitHub Repo

I am attempting to add a new layer to my bitbake build. There is a GitHub repo that provides code that can read a CAN frame and parse it using a DBC file. I am having trouble getting bitbake to approve of this. The repo is here and it relies on three submodules.
My bb file so far contains:
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRCREV_FORMAT = "linux"
SRC_URI = "git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \
"
PV = "1.0+git${SRCPV}"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
When adding the third gitsm line gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \ I start getting errors.
ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: oe_runmake failed
ERROR: dbcppp-1.0+gitAUTOINC+linux-r0 do_configure: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
ERROR: Logfile of failure stored in: /home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/log.do_configure.39779
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/gcc/gcc-cross_10.2.bb:do_populate_sysroot', 'virtual:native:/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/michael/Documents/MAIN_Application/sources/poky/meta/recipes-core/glibc/glibc_2.33.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'pseudo-native', 'quilt-native', 'gcc-cross-arm', 'patch-native', 'glibc', 'linux-libc-headers', 'libgcc', 'xz-native', 'libmpc-native', 'autoconf-native', 'automake-native', 'mpfr-native', 'binutils-cross-arm', 'zlib-native', 'gmp-native', 'libtool-native', 'flex-native', 'texinfo-dummy-native', 'gnu-config-native', 'attr-native', 'gettext-minimal-native', 'm4-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| NOTE: make clean
| Makefile:4: *** config.mk not built. Run configure script.. Stop.
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/michael/Documents/MAIN_Application/build-fb/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/dbcppp/1.0+gitAUTOINC+linux-r0/temp/run.do_configure.39779' failed with exit code 1
ERROR: Task (/home/michael/Documents/MAIN_Application/MAIN_layers/meta-MAINapplication/recipes-core/dbcppp/dbcppp_0.0.bb:do_configure) failed with exit code '1'
This is an oe_runmake error. This confuses me as I have not attempted to add a do_install or do_install_append step.
Note that my goal is to build this code and include it as a library for my application to use.
Edit 1: I updated the bb file (below). The resulting error leads to me to believe that I have to build this, set some rules for oe_runmake to follow.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRCREV_FORMAT = "xR3b0rn"
SRC_URI = "git://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master \
gitsm://github.com/jarro2783/cxxopts.git;protocol=https;branch=master \
gitsm://github.com/GNOME/libxml2.git;protocol=https;branch=master \
gitsm://github.com/xR3b0rn/libxmlmm.git;protocol=https;branch=master \
"
PV = "0.0+gitr${SRCPV}"
SRCREV = "${AUTOREV}"
SRCREV_xR3b0rn = "${AUTOREV}"
S = "${WORKDIR}/git"
Edit 2: Using the solution from ensc I am able to build, but I get an odd error.
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-src went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dbg went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-staticdev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-dev went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-doc went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp-locale went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
ERROR: dbcppp-1.0+gitAUTOINC+917c925638-r0 do_packagedata: QA Issue: Package version for package dbcppp went backwards which would break package feeds (from 0:1.0+git0+linux-r0 to 0:1.0+git0+917c925638-r0) [version-going-backwards]
write directly
SRC_URI = "gitsm://github.com/xR3b0rn/dbcppp.git;protocol=https;branch=master"
The gitsm fetcher is for downloading repositories with submodules but not for downloading the submodules itself.
As ensc said, gitsm will download submodules too.
Regarding Edit 2, Package version for package dbcppp-src went backwards means that you downgraded package version (you have already built higher version of package then you are trying to build currently).
You should do cleansstate of your package and rerun the build to solve it.
bitbake dbcppp -c cleansstate

gcloud update components - permission denied on file ...\kuberun_licenses\LICENSES.txt

Start udating gcloud:
Your current Cloud SDK version is: 321.0.0
You will be upgraded to version: 322.0.0
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ These components will be updated. β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Name β”‚ Version β”‚ Size β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Cloud SDK Core Libraries β”‚ 2021.01.05 β”‚ 16.1 MiB β”‚
β”‚ Kuberun β”‚ 0.0.1 β”‚ 20.6 MiB β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
I get error:
╠═ Uninstalling: Cloud SDK Core Libraries ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Kuberun ═╣
ERROR: (gcloud.components.update) ΠžΡ‚ΠΊΠ°Π·Π°Π½ΠΎ Π² доступС: [C:\Users\USER_NAME\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk.staging\platform\kuberun_licenses\LICENSES.txt]
Ensure you have the permissions to access the file and that the file is not in use.
Env: Win10
i try from IDEA appEngine Plugin.
try from CMD with admin privilegies.
with some error
How to update this ?
Maybe you can disable Kuberun ? I use only appengine
I solved this issue by removing the folder kuberun_licenses from google-cloud-sdk\platform path. Not the one with .staging.
It looks like this is a known issue: https://status.cloud.google.com/incident/support/21001
Here is the workaround provided at that link:
Please run the following commands in a PowerShell window:
$gcloudDir = Get-Command gcloud | Select -ExpandProperty "Source" | Split-Path | Split-Path
attrib -r "$gcloudDir\platform\kuberun_licenses*.*" /s
attrib -r "$gcloudDir\lib\kuberun*.*" /s
attrib -r "$gcloudDir..\google-cloud-sdk.staging\platform\kuberun_licenses*.*" /s
attrib -r "$gcloudDir..\google-cloud-sdk.staging\lib\kuberun*.*" /s
Remove-Item "$gcloudDir..\google-cloud-sdk.staging" -Recurse
If any of the commands fail, proceed with running the remaining
commands.
After running the PowerShell script, run the following in a regular
Command Prompt (not PowerShell):
gcloud components update --version 320.0.0
Please note, after applying this workaround, do not run 'gcloud
components update' as this will re-trigger the issue. Please wait
until the fix is released before updating components.
I find only with full reinstall solution:
exit idea
rename folder C:\Users\Step\AppData\Local\Google\ct4j-cloud-sdk -> _ct4j-cloud-sdk
run idea
start gradle -> downloadCloudSDK
delete folder _ct4j-cloud-sdk
profit
Here is what I did,
On Win10, I went to
C:\Users{your user name}\AppData\Local\Google
removed dir ct4j-cloud-sdk
And ran:
mvn appengine:deploy
This solved the issue for me
For Eclipse,
Exit the Eclipse.
Remove the ct4j-cloud-sdk folder from gCloud installed dir.
Open the Eclipse and Deploy.
In a windows file browser, watch file
C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk.staging\platform\kuberun_licenses\LICENSES.txt
during the gcloud components update process. It will disappear then re-appear. When it does, right click on properties and uncheck Read Only then select Ok, then confirm the administrator pop-up. You must do this quickly or have some way of slowing the update script.
Nothing else worked. This does. Good luck.
New Date. New version. New Google Cloud trouble ... crap...
Your current Cloud SDK version is: 322.0.0
You will be upgraded to version: 323.0.0
| These components will be updated. |
+--------------------------+------------+----------+
| Name | Version | Size |
+--------------------------+------------+----------+
| Cloud SDK Core Libraries | 2021.01.08 | 16.1 MiB |
| Kuberun | 0.0.1 | 20.6 MiB |
| gcloud cli dependencies | 2021.01.08 | 10.7 MiB |
+--------------------------+------------+----------+
gcloud crashed (Error): [('C:\\Users\\USER_NAME\\AppData\\Local\\Google\\ct4j-cloud-sdk\\LATEST\\google-cloud-sdk\\platform\\gsutil\\third_party\\funcsigs\\docs\\index.rst', 'C:\\Users\\USER_NAME\\AppData\\Local\\Google\\ct4j-cloud-sdk\\LATEST\\google-cloud-sdk.staging\\platform\\gsutil\\third_party\\funcsigs\\docs\\index.rst', 'symbolic link privilege not held'), ('C:\\Users\\USER_NAME\\AppData\\Local\\Google\\ct4j-cloud-sdk\\LATEST\\google-cloud-sdk\\platform\\gsutil\\third_party\\mock\\docs\\changelog.txt', 'C:\\Users\\USER_NAME\\AppData\\Local\\Google\\ct4j-cloud-sdk\\LATEST\\google-cloud-sdk.staging\\platform\\gsutil\\third_party\\mock\\docs\\changelog.txt', 'symbolic link privilege not held')]
damn the updates, what to do with it, I lose one day a week with them ...

Cannot run VSCode source code because its unable to find electron app in directory

Overview:
When I attempt to run VSCode with the instructions given in the contributions page to download all the packages, build the source code, and then run it all on the terminal, an error message pops up saying that I don't have the electron app in the vscode directory. Shouldn't have the electron app been installed when I ran the yarn command to install and build all the dependencies?
Steps to reproduce the bug:
$ yarn //building and installing all dependencies
$ yarn watchd //building vscode
$ ./scripts/code.sh //running vscode
Error Message:
Error launching app
Unable to find Electron app at /home/juan/Desktop/Projects/vscode
Cannot find module '/home/juan/Desktop/Projects/vscode/out/main'. Please verify that the package.json has a valid "main" entry
System Details:
CPUs | Intel(R) Core(TM) i7-6600U CPU # 2.60GHz (4 x 3200)
-- | --
GPU Status | 2d_canvas: unavailable_softwareflash_3d: disabled_softwareflash_stage3d: disabled_softwareflash_stage3d_baseline: disabled_softwaregpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: disabled_offrasterization: disabled_softwareskia_renderer: disabled_off_okvideo_decode: disabled_softwareviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: unavailable_softwarewebgl2: unavailable_software
Load (avg) | 1, 1, 1
Memory (System) | 7.63GB (0.12GB free)
Process Argv | . --no-sandbox
Screen Reader | no
VM | 0%
OS|Ubuntu 18.04 LTS
Extensions:
Extension | Author (truncated) | Version
-- | -- | --
Bookmarks | ale | 11.2.0
vscode-sqlite | ale | 0.8.2
code-gnu-global | aus | 0.2.2
npm-intellisense | chr | 1.3.0
vscode-svgviewer | css | 2.0.0
vscode-markdownlint | Dav | 0.36.0
jshint | dba | 0.10.21
vscode-eslint | dba | 2.1.5
vscode-html-css | ecm | 0.2.3
EditorConfig | Edi | 0.15.1
vscode-npm-script | eg2 | 0.3.12
vscode-firefox-debug | fir | 2.8.0
beautify | Hoo | 1.5.0
vscode-emacs-friendly | lfs | 0.9.0
rainbow-csv | mec | 1.7.0
python | ms- | 2020.5.80290
cpptools | ms- | 0.28.2
debugger-for-chrome | msj | 4.12.8
sqltools | mtx | 0.22.5
material-icon-theme | PKi | 4.1.0
rust | rus | 0.7.8
lc2k | vio | 1.1.1
Here is the bug report I filled in the vscode github page: https://github.com/microsoft/vscode/issues/99537
I got this same error myself when the code did not build correctly.
In your second step you do:
yarn watchd
I tried this command myself, but ran into the same issue that you have stated here. Although the official wiki suggests this as a tip, I would just ignore it.
Instead, do either of these instead (this is what the official wiki originally suggest to do):
Type: Ctrl + Shift + B
Or alternatively use the Command Palette:
Type: Ctrl + Shift + P
Search for the option called: Tasks: Run Build Task and select it.
Once you start the build task you'll see a couple of things:
Firstly, at the bottom of VS Code (on your status line), VS Code will let you know the code is building.
Secondly, The build command will open two terminals:
Task - Build VS Code
Task - Build VS Code Extensions
Watch the output for both of terminals, make sure:
Task - Build VS Code terminal outputs: [some time] Finished compilation ...
and
Task - Build VS Code Extensions terminal outputs: [some time] Finished compilation extensions ...
If not and the build fails, you'll probably get a notification from VS code saying so (You'll probably get the error twice, one for each task):
yarn ... exited with code [some non-zero integer]
A common error that may occur is the ENOSPC error from inotify (also documented well in a medium blog). You'll want to issue this command:
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Arch users would issue:
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system
After fixing this, trying to build again should work. Start the build task again and make sure both tasks succeed. (You'll notice that the tasks do not end after they succeed. This is because they will watch for changes you make in the code while developing and automatically recompile for you).
If successful you may finally issue:
./scripts/code.sh
A new instance of VS Code should open called: Code - OSS dev. This is the version of VS Code you just built.

Trying to install meteor on centos 5

OS: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Trying to run this command to install meteor:
curl install.meteor.com | /bin/sh
============= Output Error ===============
Installing /tmp/meteor-install-Nv47529/meteor-0.3.6-1.x86_64.rpm
error: Failed dependencies:
libc.so.6(GLIBC_2.6)(64bit) is needed by meteor-0.3.6-1.x86_64
libc.so.6(GLIBC_2.7)(64bit) is needed by meteor-0.3.6-1.x86_64
libc.so.6(GLIBC_2.9)(64bit) is needed by meteor-0.3.6-1.x86_64
libstdc++.so.6(GLIBCXX_3.4.9)(64bit) is needed by meteor-0.3.6-1.x86_64
Installation failed.
============= Output Error ===============
glib is missing showing but check glib using
rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}\n" | grep glibc | sort
showing me
compat-glibc-2.3.4-2.26.i386
compat-glibc-2.3.4-2.26.x86_64
compat-glibc-headers-2.3.4-2.26.x86_64
glibc-2.5-49.el5_5.7.i686
glibc-2.5-49.el5_5.7.x86_64
glibc-common-2.5-49.el5_5.7.x86_64
glibc-devel-2.5-49.el5_5.7.i386
glibc-devel-2.5-49.el5_5.7.x86_64
glibc-headers-2.5-49.el5_5.7.x86_64
glibc-utils-2.5-49.el5_5.7.x86_64
so any idea what is the issue?
GLIBC_2.6 is required by the RPM, you only have GLIBC_2.5 so you need to upgrade.
Alternatively, this dependency may be more strict than it needs to be; try packing Meteor yourself.