remotestorage / remotestorage-widget

⬡ Connect widget for remoteStorage.js
https://remotestorage.io
28 stars 16 forks source link

problem with remotestorage-widget on netlify #134

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi everyone.

I'm trying to deploy the remotestorage-widget on netfly, but every time it gives an error. I have tried to solve this problem in 3 different ways and I would be happy if anyone can have a solution for this problem that I am reporting here.

input-attempt 1

image

output-attempt 1

image

output-log-attempt 1.2

10:21:12 PM: build-image version: d1d11d11e3111d1ef0a324ed55a0a5b555ad50c5 (focal)
10:21:12 PM: build-image tag: v4.16.3
10:21:12 PM: buildbot version: 222202ce0cc222cc2cc2cddd0a0e7221ee1d111d
10:21:12 PM: Fetching cached dependencies
10:21:12 PM: Failed to fetch cache, continuing with build
10:21:12 PM: Starting to prepare the repo for build
10:21:12 PM: No cached dependencies found. Cloning fresh repo
10:21:12 PM: git clone --filter=blob:none --no-checkout https://github.com/username/remotestorage-widget
10:21:12 PM: Preparing Git Reference refs/heads/feature/no-global
10:21:12 PM: Parsing package.json dependencies
10:21:14 PM: Starting build script
10:21:14 PM: Installing dependencies
10:21:14 PM: Python version set to 2.7
10:21:14 PM: v16.19.0 is already installed.
10:21:14 PM: Now using node v16.19.0 (npm v8.19.3)
10:21:14 PM: Enabling Node.js Corepack
10:21:15 PM: Started restoring cached build plugins
10:21:15 PM: Finished restoring cached build plugins
10:21:15 PM: Attempting Ruby version 2.7.2, read from environment
10:21:15 PM: Using Ruby version 2.7.2
10:21:15 PM: Using PHP version 8.0
10:21:15 PM: Started restoring cached corepack dependencies
10:21:15 PM: mv: cannot move '/opt/build/cache/.node/corepack' to '/opt/buildhome/.node/corepack': No such file or directory
10:21:15 PM: Finished restoring cached corepack dependencies
10:21:15 PM: No npm workspaces detected
10:21:15 PM: Started restoring cached node modules
10:21:15 PM: Finished restoring cached node modules
10:21:15 PM: Bypassing sha validation. Running pre & post install scripts
10:21:16 PM: Installing npm packages using npm version 8.19.3
10:21:35 PM: npm ERR! code 1
10:21:35 PM: npm ERR! The git reference could not be found
10:21:35 PM: npm ERR! command git --no-replace-objects checkout feature/949-noglobal
10:21:35 PM: npm ERR! error: pathspec 'feature/949-noglobal' did not match any file(s) known to git
10:21:35 PM: npm ERR! A complete log of this run can be found in:
10:21:35 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
10:21:35 PM: npm ERR!     /opt/buildhome/.npm/_logs/yyyy-dd-ddTdd_dd_dd_dddA-debug-0.log
10:21:35 PM: Error during npm install
10:21:35 PM: Build was terminated: Build script returned non-zero exit code: 1
10:21:35 PM: Failing build: Failed to build site
10:21:35 PM: Finished processing build request in 23.285s

output-log-attempt 1.3

image

output-log-attempt 1.4

image

input-attempt 2

image

input-attempt 3

image

the deploy errors remain the same as attempt 1, 2 and 3

DougReeder commented 1 year ago

The key errors would appear to be: 10:21:35 PM: npm ERR! The git reference could not be found 10:21:35 PM: npm ERR! command git --no-replace-objects checkout feature/949-noglobal 10:21:35 PM: npm ERR! error: pathspec 'feature/949-noglobal' did not match any file(s) known to git

npm is not inherently part of the the remoteStorage widget, so your problem would appear to be elsewhere. Sorry.

ghost commented 1 year ago

Hi DougReeder.

The key errors would appear to be: 10:21:35 PM: npm ERR! The git reference could not be found 10:21:35 PM: npm ERR! command git --no-replace-objects checkout feature/949-noglobal 10:21:35 PM: npm ERR! error: pathspec 'feature/949-noglobal' did not match any file(s) known to git npm is not inherently part of the the remoteStorage widget, so your problem would appear to be elsewhere. Sorry.

thank you for feedback here.

raucao commented 1 year ago

That's an old feature branch. Not sure where you got it from, but it's certainly not the master branch or any release version.

ghost commented 1 year ago

Hi raucao.

That's an old feature branch. Not sure where you got it from, but it's certainly not the master branch or any release version.

I typed this command: "git clone remotestorage/remotestorage-widget.git"

raucao commented 1 year ago

The log says:

git clone --filter=blob:none --no-checkout https://github.com/username/remotestorage-widget

That's not the correct repo URL.

ghost commented 1 year ago

Hi raucao.

That's not the correct repo URL.

thank you for feedback here.