Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Cannot access to the web app locally #96

@StephaneConq

Description

@StephaneConq

Expected Behaviour

Being able to run the web app locally and log to it

Actual Behaviour

Python error when trying to log into the app :

Traceback (most recent call last): File "/home/stephane/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/home/stephane/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 311, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/home/stephane/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 96, in LoadObject __import__(cumulative_path) File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/loaner/web_app/main.py", line 23, in <module> from loaner.web_app import constants File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/loaner/web_app/constants.py", line 23, in <module> import endpoints File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/endpoints_archive/endpoints/__init__.py", line 27, in <module> from .apiserving import * File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/endpoints_archive/endpoints/apiserving.py", line 75, in <module> from endpoints_management.control import client as control_client File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/google_endpoints_api_management_archive/endpoints_management/__init__.py", line 17, in <module> from . import auth, config, control, gen File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/google_endpoints_api_management_archive/endpoints_management/control/__init__.py", line 19, in <module> from ..gen import servicecontrol_v1_messages as sc_messages File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/google_endpoints_api_management_archive/endpoints_management/gen/servicecontrol_v1_messages.py", line 23, in <module> from apitools.base.py import encoding File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/google_apitools_archive/apitools/base/py/__init__.py", line 23, in <module> from apitools.base.py.credentials_lib import * File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/google_apitools_archive/apitools/base/py/credentials_lib.py", line 44, in <module> import fasteners File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/fasteners_archive/fasteners/__init__.py", line 23, in <module> from fasteners.lock import locked # noqa File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/fasteners_archive/fasteners/lock.py", line 24, in <module> from fasteners import _utils File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/fasteners_archive/fasteners/_utils.py", line 22, in <module> from monotonic import monotonic as now # noqa File "/home/stephane/.cache/bazel/_bazel_stephane/3c93c3d361a9b5691374ace7399fd91f/execroot/gng/bazel-out/k8-fastbuild/bin/loaner/web_app/runfiles.runfiles/gng/external/monotonic_archive/monotonic.py", line 169, in <module> raise RuntimeError('no suitable implementation for this system: ' + repr(e)) RuntimeError: no suitable implementation for this system: IOError(13, 'file not accessible')

Server starts correctly, I can go to http://localhost:8080, but this error occurs when trying to log to this page :
image

Steps to Reproduce

I did all the steps until part 2 step 6.
By the way, the app works normally on AppEngine.

AppEngine config

Google Cloud SDK 280.0.0
app-engine-python 1.9.88
app-engine-python-extras 1.9.87
bq 2.0.53
cloud-datastore-emulator 2.1.0
core 2020.02.07
gsutil 4.47

Bazel config

Build label: 2.1.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Feb 7 13:01:04 2020 (1581080464)
Build timestamp: 1581080464
Build timestamp as int: 1581080464

My config

Distributor ID: Ubuntu
Description: Ubuntu 19.10
Release: 19.10
Codename: eoan

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions