Code Monkey home page Code Monkey logo

Comments (13)

grafnu avatar grafnu commented on August 14, 2024

from daq.

pisuke avatar pisuke commented on August 14, 2024

from daq.

grafnu avatar grafnu commented on August 14, 2024

from daq.

pisuke avatar pisuke commented on August 14, 2024

Sorry to open this again. Just did a git pull and rebuilt.

cmd/run -s

runs well and manages to show the test status on the firebase app, but

cmd/run local -s

stops with the following error

...
INFO:daq:pid is 4291
INFO:gcp:Loading gcp credentials from local/bos-daq-testing-cf03a659eff0.json
INFO:gcp:Initialized gcp pub/sub bos-daq-testing:daq-arup
INFO:gcp:Initialized gcp firestore bos-daq-testing:daq-arup
Traceback (most recent call last):
File "daq/daq.py", line 118, in
sys.exit(_execute())
File "daq/daq.py", line 103, in _execute
daq_runner = runner.DAQRunner(config)
File "/home/francesco/Code/daq/daq/runner.py", line 33, in init
self.gcp = gcp.GcpManager(self.config)
File "/home/francesco/Code/daq/daq/gcp.py", line 38, in init
self._ensure_report_bucket()
File "/home/francesco/Code/daq/daq/gcp.py", line 77, in _ensure_report_bucket
if self._storage.lookup_bucket(bucket_name):
File "/home/francesco/Code/daq/venv/lib/python3.5/site-packages/google/cloud/storage/client.py", line 245, in lookup_bucket
return self.get_bucket(bucket_name)
File "/home/francesco/Code/daq/venv/lib/python3.5/site-packages/google/cloud/storage/client.py", line 225, in get_bucket
bucket.reload(client=self)
File "/home/francesco/Code/daq/venv/lib/python3.5/site-packages/google/cloud/storage/_helpers.py", line 108, in reload
_target_object=self)
File "/home/francesco/Code/daq/venv/lib/python3.5/site-packages/google/cloud/_http.py", line 293, in api_request
raise exceptions.from_http_response(response)
google.api_core.exceptions.Forbidden: 403 GET https://www.googleapis.com/storage/v1/b/bos-daq-testing.appspot.com?projection=noAcl: [email protected] does not have storage.buckets.get access to bos-daq-testing.appspot.com.
Done with run, exit 1

from daq.

grafnu avatar grafnu commented on August 14, 2024

from daq.

pisuke avatar pisuke commented on August 14, 2024

Thanks, I've spent some time trying to figure this out. On the bos-daq-testing project I don't have permission to add the storage admin and pub/sub publisher roles, can you please add them for me?
I also took the opportunity to follow the steps to deploy the firebase app in my personal account. I think I've managed to follow all the steps, but the app only shows "System initialized."
cmd/run local -s runs now.

from daq.

pisuke avatar pisuke commented on August 14, 2024

https://arup-daq-testing.firebaseapp.com/ is the URL for the app deployed in my personal GCP account in case you'd like to have a look. Thanks for the help!

from daq.

grafnu avatar grafnu commented on August 14, 2024

from daq.

grafnu avatar grafnu commented on August 14, 2024

from daq.

pisuke avatar pisuke commented on August 14, 2024

Yes, I've a separate path set up with both GCP and Firebase

from daq.

grafnu avatar grafnu commented on August 14, 2024

from daq.

grafnu avatar grafnu commented on August 14, 2024

Is this resolved now?

from daq.

pisuke avatar pisuke commented on August 14, 2024

Yes, all sorted now, and the documentation is very useful to get the app installed and configured.
Thank you!

from daq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.