Surfer CLI 5.11.0 fails to upload
-
Hm looking at the code I can't seem to figure out how that could ever be undefined, I need to debug this and thus be able to reproduce it. Do you have any idea how we could do that?
Given the otheratime
issue, I am a bit worried about either the node version in your image or some other stripped down dependency causing this. I don't want to put code guards in to just not make it crash without understanding the root cause.I guess I have to spin up a
node:lts-alpine3.12
container and see if I can reproduce this, or do you have your exact setup as a public image I could just docker pull? -
The timestamp issue seems to be already known for Hugo (which is what I am using for my blog): https://github.com/gohugoio/hugo/issues/6161
You could pull my image from https://hub.docker.com/r/fbartels/cloudron-surfer.
If you think this could have something to do with the alpine image I am also open to converting it into a Debian based one.
-
@nebulon Also experiencing this issue (Surfer CLI 5.12.1). Seems to happen with Hugo. Last I tried with Gridsome it worked.
/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:324 if (remote.filePath !== path.join(absoluteDestPath, local.filePath)) return false; ^ TypeError: Cannot read property 'filePath' of undefined at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:324:75 at Array.find (<anonymous>) at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:323:33 at Array.filter (<anonymous>) at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:322:36 at Request.callback (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/index.js:894:12) at /usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/index.js:1127:20 at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/parsers/json.js:22:7) at Stream.emit (events.js:315:20) at Unzip.<anonymous> (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/unzip.js:53:12)
-
Hm I can't really reproduce this on my side, neither with using @fbartels alpine based image nor otherwise.
Maybe I am misunderstanding the use-case though, so if I simply run:
run fbartels/cloudron-surfer:5.12.1 surfer put --server https://files.nebulon.space --token $TOKEN /var/ /
this works just fine.
-
In my case the surfer container is run as part of a Drone pipeline, so the
pwd
is/drone/src
at the time of execution. Based on @vjvanjungg comment I also tried it now directly on my system and while an almost blank Hugo blog succeeds in uploading with the server cli, a build of my blog shows the exact same error (maybe that makes it easier to debug, since I can then easily modify files).@nebulon said in Surfer CLI 5.11.0 fails to upload:
Maybe I am misunderstanding the use-case though, so if I simply run:
yes, almost. except that I am using a
*
to upload all files in that folder.Hmm. also their example site uploads just fine... https://github.com/gohugoio/hugoBasicExample. So it must be something in relation to the file that get generated for my blog.