GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — storage upload use /temp/ instead of /home/? · Issue #1235 · googleapis/google-cloud-node

storage upload use /temp/ instead of /home/? #1235

New issue
Copy link
New issue
Copy link
Closed
Closed
storage upload use /temp/ instead of /home/?#1235
Copy link
Assignees
stephenplusplus
Labels
api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Description

@ghost
ghost
opened on Apr 15, 2016

I'm on aws lambda trying to upload a file to gcs.
This line of code to upload a file:

var bucket = gcs.bucket('biweekly.hylight.tv');
bucket.upload(tmpobj.name, {
        destination : uuidName + '.mp4',
        metadata : {
            contentType : 'video/mp4',
            name : uuidName + '.mp4'
        }
    });

Results in:

Error: EROFS: read-only file system, mkdir '/home/sbx_user1053

at Error (native)
    at Object.fs.mkdirSync (fs.js:794:18)
    at sync (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/node_modules/configstore/node_modules/mkdirp/index.js:71:13)
    at sync (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/node_modules/configstore/node_modules/mkdirp/index.js:77:24)
    at Function.sync (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/node_modules/configstore/node_modules/mkdirp/index.js:77:24)
    at Object.create.all.get (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/node_modules/configstore/index.js:38:13)
    at Object.Configstore (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/node_modules/configstore/index.js:27:44)
    at new Upload (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/index.js:48:22)
    at Upload (/var/task/node_modules/gcloud/node_modules/gcs-resumable-upload/index.js:26:41)
    at File.startResumableUpload_ (/var/task/node_modules/gcloud/lib/storage/file.js:1443:22)

So this is solved by setting resumable to false, which is great, but I was wondering if it was possible to change the cache(I assume it's cache) directory to something else like temp?

Activity

  1. stephenplusplus commented on Apr 15, 2016

    @stephenplusplus
    stephenplusplus
    on Apr 15, 2016
    Contributor
    More actions

    You can change the directory with an env var XDG_CONFIG_HOME (see #1051). Please re-open if this doesn't work.

  2. stephenplusplus
    closed this as completedon Apr 15, 2016
  3. stephenplusplus
    added
    type: questionRequest for information or clarification. Not an issue.
    api: storageIssues related to the Cloud Storage API.
    on Apr 15, 2016
  4. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  5. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    feat: Nodejs transaction redesign feature branch (#1235)

    00f2fd7
  6. sofisl
    added a commit that references this issue on Feb 5, 2026

    feat: Nodejs transaction redesign feature branch (#1235)

    5f360fa
  7. sofisl
    added a commit that references this issue on Feb 17, 2026

    feat: Nodejs transaction redesign feature branch (#1235)

    574a972
  8. sofisl
    added a commit that references this issue on Feb 24, 2026

    chore: run synthtool after node10 merge (#1235)

    b2b363e
  9. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    chore(main): release 4.3.0 (#1235)

    fa98da7

    chore(main): release 4.3.0 (#1235)

    c3588a1
  10. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    chore(main): release 4.3.0 (#1235)

    0c1a982
  11. thiyaguk09
    added a commit that references this issue on May 5, 2026

    chore(main): release 4.3.0 (googleapis#1235)

    7f14c58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.