main
  • About
  • Civil Engineering
    • Interview questions
    • Bridge design
  • Google Cloud
    • Code samples
    • kafka
    • Cloud Run
    • persistent disks
    • Spinnaker
    • Assessment questions
    • IAM
    • Cloud Storage
    • VPC
    • Cost optimization
    • Compute Engine
    • App Engine
    • Cloud Vision
    • Spanner
    • Cloud SQL
    • Solutions
      • Static IP - WIP
      • Network performance
      • Building a VPN
      • Build a streaming app
      • ML train with taxi data
    • Dataproc
    • Dataprep
    • BigTable
    • Cloud Fusion
    • Data flow
    • CloudFront
    • APIGEE
    • BigQuery
    • Cloud logging
    • Pubsub
    • Identity Aware Proxy
    • Data center migration
    • Deployment Manager
    • Kubeflow
    • Kubernetes Engine
    • Istio
    • Read the following
    • Storage for cloud shell
    • kms
    • kpt
    • Hybrid cloud with Anthos
    • helm
    • Architecture
    • terraform
    • Network
    • Data studio
    • Actions
    • Jenkins
  • Data Processing
    • Data Lake
    • Data ingestion
    • Data Cleaning - Deduplication
    • Data Cleaning - Transformation
    • Data cleaning - rule definition
    • ETL
  • Machine Learning
    • Tensorflow
    • Tensorflow tips
    • Keras
    • Scikit-learn
    • Machine learning uses
    • Working with Pytorch
    • Federated learning
  • AWS cloud
    • Billing
    • Decrease volume size of EC2
    • Run CVE search engine
    • DataSync
    • EC2 spot instances
  • Java
    • Java
    • NIO
    • System Design
      • Zero trust framework
    • Collections
  • Azure
    • Enterprise Scale
    • API
    • Resource group
    • Create an sql database
  • UBUNTU
    • No Release file
    • STRATO blockchain
    • iperf
    • Rsync
    • curl
    • Shell
    • FAQ - git
  • PH test
    • Syllabus
    • Opportunities
    • Aptitude test
  • Development
    • Course creation
    • web.dev
    • docfx template
  • npm
  • Docker Desktop
  • Nginx
  • English rules
  • Confluent
  • sanity theme
  • Java Native Interface tutorial
  • Putty
  • Personal website host
  • Google search SEO
  • Reading a textbook
  • DFCC Progress
  • STORAGE
    • Untitled
  • Services Definition
    • Cloud VPN and routing
  • Microservices design and Architecture
    • Untitled
  • Hybrid network architecture
    • Untitled
  • Deployment
    • Untitled
  • Reliability
    • Untitled
  • Security
    • Untitled
  • Maintenance and Monitoring
    • Peering
  • Archive
    • parse dml to markdown
Powered by GitBook
On this page

Was this helpful?

  1. Google Cloud

Storage for cloud shell

PreviousRead the followingNextkms

Last updated 4 years ago

Was this helpful?

.

gsutil mb gs://ai-experiments-001
mkdir /home/janardhan_pulivarthi/gcs
chmod 777 /home/janardhan_pulivarthi/gcs

janardhan_pulivarthi@cloudshell:~ (ai-experiments-001)$ gcsfuse -o nonempty -file-mode=777 -dir-mode=777 ai-experiments-001 /home/janardhan_pulivarthi/gcs

Error 1

Git clone gave the untracked, deleted files.

.

Error 2 message

janardhan_pulivarthi@cloudshell:~/gcs (ai-experiments-001)$ git status fatal: not a git repository (or any parent up to mount point /home/janardhan_pulivarthi) 
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

The above error is due to, I have not cd into amp.dev git repository.

so answer:

Error 3 message

janardhan_pulivarthi@cloudshell:~ (ai-experiments-001)$ gcsfuse -o nonempty -file-mode=777 -dir-mode=777 ai-experiments-001 /home/janardhan_pulivarthi/gcs
Using mount point: /home/janardhan_pulivarthi/gcs
2021/03/15 07:16:34.333628 Opening GCS connection...
2021/03/15 07:16:34.695112 Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running fusermount: exit status 1

stderr:
/bin/fusermount: failed to access mountpoint /home/janardhan_pulivarthi/gcs: Permission denied

Error 4 message

$ git clone https://github.com/<user>/<repo>
remote: Enumerating objects: 143, done.
remote: Counting objects: 100% (143/143), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 6124 (delta 74), reused 83 (delta 43), pack-reused 5981
Receiving objects: 100% (6124/6124), 6.08 MiB | 1.83 MiB/s, done.
Resolving deltas: 100% (4181/4181), done.
error: packfile /home/janardhan/gcs/cloudshell/repo/openmined/.git/objects/pack/pack-05f3b2881c2041e4fa5187a554a269b00ac043b9.pack does not match index
error: packfile /home/janardhan/gcs/cloudshell/repo/openmined/.git/objects/pack/pack-05f3b2881c2041e4fa5187a554a269b00ac043b9.pack does not match index

Error 5 message

fatal: update_ref failed for ref 'HEAD': cannot update ref 'refs/heads/dev': trying to write ref 'refs/heads/dev' with nonexistent object

History:

.

https://cloud.google.com/storage/quotas
https://stackoverflow.com/questions/38980293/git-clone-leads-to-deleted-untracked-files
https://stackoverflow.com/questions/4630704/receiving-fatal-not-a-git-repository-when-attempting-to-remote-add-a-git-repo
https://groups.google.com/g/msysgit/c/5J3ELvZND0s?pli=1
https://github.com/libgit2/libgit2/issues/5556