Fixed
Status Update
Comments
da...@google.com <da...@google.com>
da...@google.com <da...@google.com> #2
using the below does resolve the issue and allow the app to be deployed.
gcloud config set app/use_gsutil true
gcloud config set app/use_gsutil true
tn...@gmail.com <tn...@gmail.com> #3
Thanks for the update! We think we have a handle on this issue, and there should be a patch in the Cloud SDK 106 release due out next week that will work with the 'use_gsutil false' setting (which will eventually become the new default).
[Deleted User] <[Deleted User]> #4
I upgraded gcloud sdk version to the latest 215.0.0 but the error still persists on Windows 10 Pro (10.0.17134 Build 17134)
c:\> gcloud --version
Google Cloud SDK 215.0.0
beta 2018.07.16
bq 2.0.34
core 2018.09.04
gsutil 4.33
c:\>gcloud deployment-manager deployments create kube6 --config gke.yaml
ERROR: gcloud crashed (error): bad character range
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
Log attached.
c:\> gcloud --version
Google Cloud SDK 215.0.0
beta 2018.07.16
bq 2.0.34
core 2018.09.04
gsutil 4.33
c:\>gcloud deployment-manager deployments create kube6 --config gke.yaml
ERROR: gcloud crashed (error): bad character range
If you would like to report this issue, please run the following command:
gcloud feedback
To check gcloud for common problems, please run the following command:
gcloud info --run-diagnostics
Log attached.
al...@google.com <al...@google.com> #5
Looks like this was caused by an issue in the yaml parser used by gcloud as part of app engine deploy command.
https://bitbucket.org/ruamel/yaml/issues/204
We are working on publishing a new version of gcloud this week that will fix this issue.
We are working on publishing a new version of gcloud this week that will fix this issue.
pi...@google.com <pi...@google.com> #6
I reproduced the setting and the behaviour is not present anymore, in the current version of gcloud.
ap...@google.com <ap...@google.com> #7
🤖 This is an automatic update. The status of the related internal issue(s) listed in "Blocked By" has changed, so we've done the following:
* Moved this issue to a locked sub-component, because the issue has been closed. Please open a new issue if you need Google to re-visit this topic.
You can read more about what these statuses mean athttps://developers.google.com/issue-tracker/concepts/issues#fields
* Moved this issue to a locked sub-component, because the issue has been closed. Please open a new issue if you need Google to re-visit this topic.
You can read more about what these statuses mean at
Description
information in the report you file. In order to help diagnose the issue,
we've included some installation information in this report. Please look
through and redact any information you consider personal or sensitive
before submitting this issue.
Issue running command [gcloud app deploy].
What steps will reproduce the problem?
1.Right-click the Visual Studio project and click "Publish to Google Cloud ..."
2."Choose a product to publish to:" Click "App Engine Flex" in the dialog window.
3.Select the target GCP project in "Google C loud Project ID:" dialog window and click "Publish"
What is the expected output? What do you see instead?
The error will be output from "ERROR: gcloud crashed (error): bad character range" and "Google Cloud Tools" and the deployment will stop.
Please provide any additional information below.
It also occurred in Google Cloud SDK version 213.
The deployed source code is "CloudStorage" project of "dotnet-docs-samples" in GitHub.
I do not remember the version, but it was successfully deployed in GoogleCloudSDK 203.
Please let me know if there is a solution to the problem.
Trace:
gcloud_main.py:133
gcloud_cli.Execute()
calliope\cli.py:865
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
calliope\cli.py:898
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
calliope\exceptions.py:523
core_exceptions.reraise(exc)
core\exceptions.py:139
six.reraise(type(exc_value), exc_value, tb)
calliope\cli.py:839
resources = calliope_command.Run(cli=self, args=args)
calliope\backend.py:770
resources = command_instance.Run(args)
surface\app\deploy.py:90
parallel_build=False)
command_lib\app\deploy_util.py:536
args.deployables, stager, deployables.GetPathMatchers())
command_lib\app\deployables.py:334
service = Service.FromPath(path, stager, path_matchers)
command_lib\app\deployables.py:102
service = matcher(path, stager)
command_lib\app\deployables.py:138
service_info = yaml_parsing.ServiceYamlInfo.FromFile(descriptor)
api_lib\app\yaml_parsing.py:291
parsed = _YamlInfo._ParseYaml(file_path, appinfo_includes.Parse)
api_lib\app\yaml_parsing.py:155
return parser(fp)
third_party\appengine\api\appinfo_includes.py:53
appyaml, _ = ParseAndReturnIncludePaths(appinfo_file, open_fn)
third_party\appengine\api\appinfo_includes.py:78
appyaml = appinfo.LoadSingleAppInfo(appinfo_file)
third_party\appengine\api\appinfo.py:2639
listener.Parse(app_info)
third_party\appengine\api\yaml_listener.py:237
stream, loader_class, version=version, **loader_args))
third_party\appengine\api\yaml_listener.py:170
for event in events:
third_party\appengine\api\yaml_listener.py:210
loader = loader_class(stream, **loader_args)
ruamel\yaml\loader.py:35
Reader.__init__(self, stream, loader=self)
ruamel\yaml\reader.py:81
self.stream = stream # type: Any # as .read is called
ruamel\yaml\reader.py:126
self.determine_encoding()
ruamel\yaml\reader.py:181
self.update(1)
ruamel\yaml\reader.py:272
self.check_printable(data)
ruamel\yaml\reader.py:234
non_printable_match = self._get_non_printable(data)
ruamel\yaml\reader.py:230
return cls._get_non_printable_regex(data)
ruamel\yaml\reader.py:219
match = cls.NON_PRINTABLE.search(data)
ruamel\yaml\util.py:40
return getattr(lazy_self(), name)
ruamel\yaml\util.py:31
return_value = func(*args, **kwargs)
re.py:194
return _compile(pattern, flags)
re.py:251
raise error, v # invalid expression
error: bad character range
Installation information:
Google Cloud SDK [214.0.0]
Platform: [Windows, x86_64] ('Windows', 'SYS-Dev', '10', '10.0.17134', 'AMD64', 'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel')
Python Version: [2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]]
Python Location: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python.exe]
Site Packages: [Disabled]
Installation Root: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk]
Installed Components:
core: [2018.08.24]
beta: [2018.07.16]
gsutil: [4.33]
bq: [2.0.34]
System PATH: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\sdk;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio 2010\OEM\AudioCore\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\sox-14-4-2\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files\Microsoft VS Code\bin;${HOME}\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin;${HOME}\.dotnet\tools;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;]
Python PATH: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\third_party;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\python27.zip;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\DLLs;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\plat-win;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython\lib\lib-tk;${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython]
Cloud SDK on PATH: [False]
Kubectl on PATH: [False]
Installation Properties: [${HOME}\AppData\Local\Google\Cloud SDK\google-cloud-sdk\properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}\configurations\config_default]
Account: [t..m@g..m]
Project: [c..t]
Current Properties:
[core]
project: [c..t]
account: [t..m@g..m]
disable_usage_reporting: [False]
[compute]
region: [asia-northeast1]
zone: [asia-northeast1-a]
Logs Directory: [${CLOUDSDK_CONFIG}\logs]
Last Log File: [${CLOUDSDK_CONFIG}\logs\2018.08.29\09.31.37.932000.log]
git: [git version 2.17.1.windows.2]
ssh: [OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4
]