<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Surfer CLI 5.11.0 fails to upload]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I guess I should more often update my blog as I only now noticed that the current surfer version fails at uploading. Downgrading surfer back to 5.10.4 makes uploads succeed again.</p>
<p dir="auto">The following trace is written:</p>
<pre><code>+ surfer --version
5.11.0
+ surfer put --token $SURFTOKEN --server blog.9wd.eu public/. /
Using server https://blog.9wd.eu
/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:63
        atime: stat.atime.toISOString(),
                          ^

RangeError: Invalid time value
    at Date.toISOString (&lt;anonymous&gt;)
    at collectFiles (/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:63:27)
    at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:277:40
    at Array.forEach (&lt;anonymous&gt;)
    at Command.put (/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:273:15)
    at Command.listener [as _actionHandler] (/usr/local/lib/node_modules/cloudron-surfer/node_modules/commander/index.js:426:31)
    at Command._parseCommand (/usr/local/lib/node_modules/cloudron-surfer/node_modules/commander/index.js:1002:14)
    at Command._dispatchSubcommand (/usr/local/lib/node_modules/cloudron-surfer/node_modules/commander/index.js:953:18)
    at Command._parseCommand (/usr/local/lib/node_modules/cloudron-surfer/node_modules/commander/index.js:970:12)
    at Command.parse (/usr/local/lib/node_modules/cloudron-surfer/node_modules/commander/index.js:801:10)
</code></pre>
<p dir="auto">At both times surfer is run from the following base image: <code>node:lts-alpine3.12</code></p>
]]></description><link>https://forum.cloudron.io/topic/3907/surfer-cli-5-11-0-fails-to-upload</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 22:54:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3907.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Dec 2020 15:39:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 19:40:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> thanks! Indeed the upload now succeeds with the new version. For the wrong timestamp i'll just touch the folder once before calling surfer. Maybe it eventually gets fixed in hugo itself.</p>
]]></description><link>https://forum.cloudron.io/post/21300</link><guid isPermaLink="true">https://forum.cloudron.io/post/21300</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Thu, 10 Dec 2020 19:40:35 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 17:58:16 GMT]]></title><description><![CDATA[<p dir="auto">At least for the <code>undefined</code> bug this should then hopefully be fixed with <code>cloudron-surfer@5.12.2</code> cli.</p>
]]></description><link>https://forum.cloudron.io/post/21285</link><guid isPermaLink="true">https://forum.cloudron.io/post/21285</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 10 Dec 2020 17:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 17:46:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> that must be it! I will prepare a new update for the cli then.</p>
]]></description><link>https://forum.cloudron.io/post/21280</link><guid isPermaLink="true">https://forum.cloudron.io/post/21280</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 10 Dec 2020 17:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 17:39:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Could it be crash is because of <a href="https://git.cloudron.io/cloudron/surfer/-/blob/master/cli/actions.js#L56" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/surfer/-/blob/master/cli/actions.js#L56</a> ? It should be returning <code>tmp</code> ? Because it then gets passed to concat (as undefined) and thus the crash ?</p>
]]></description><link>https://forum.cloudron.io/post/21271</link><guid isPermaLink="true">https://forum.cloudron.io/post/21271</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 10 Dec 2020 17:39:14 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 16:21:34 GMT]]></title><description><![CDATA[<p dir="auto">In my case the surfer container is run as part of a Drone pipeline, so the <code>pwd</code> is <code>/drone/src</code> at the time of execution. Based on <a class="plugin-mentions-user plugin-mentions-a" href="/user/vjvanjungg" aria-label="Profile: vjvanjungg">@<bdi>vjvanjungg</bdi></a> 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).</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> said in <a href="/post/21259">Surfer CLI 5.11.0 fails to upload</a>:</p>
<blockquote>
<p dir="auto">Maybe I am misunderstanding the use-case though, so if I simply run:</p>
</blockquote>
<p dir="auto">yes, almost. except that I am using a <code>*</code> to upload all files in that folder.</p>
<p dir="auto">Hmm. also their example site uploads just fine... <a href="https://github.com/gohugoio/hugoBasicExample" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/gohugoio/hugoBasicExample</a>. So it must be something in relation to the file that get generated for my blog.</p>
]]></description><link>https://forum.cloudron.io/post/21263</link><guid isPermaLink="true">https://forum.cloudron.io/post/21263</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Thu, 10 Dec 2020 16:21:34 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 15:07:07 GMT]]></title><description><![CDATA[<p dir="auto">Hm I can't really reproduce this on my side, neither with using <a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> alpine based image nor otherwise.</p>
<p dir="auto">Maybe I am misunderstanding the use-case though, so if I simply run:</p>
<pre><code>run fbartels/cloudron-surfer:5.12.1 surfer put --server https://files.nebulon.space  --token $TOKEN /var/ /
</code></pre>
<p dir="auto">this works just fine.</p>
]]></description><link>https://forum.cloudron.io/post/21259</link><guid isPermaLink="true">https://forum.cloudron.io/post/21259</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 10 Dec 2020 15:07:07 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 14:49:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> Also experiencing this issue (Surfer CLI 5.12.1). Seems to happen with Hugo. Last I tried with Gridsome it worked.</p>
<pre><code>/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 (&lt;anonymous&gt;)
    at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:323:33
    at Array.filter (&lt;anonymous&gt;)
    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.&lt;anonymous&gt; (/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.&lt;anonymous&gt; (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/unzip.js:53:12)
</code></pre>
<pre><code></code></pre>
]]></description><link>https://forum.cloudron.io/post/21257</link><guid isPermaLink="true">https://forum.cloudron.io/post/21257</guid><dc:creator><![CDATA[vjvanjungg]]></dc:creator><pubDate>Thu, 10 Dec 2020 14:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Thu, 10 Dec 2020 14:36:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fbartels" aria-label="Profile: fbartels">@<bdi>fbartels</bdi></a> who do you run surfer within that image in your case? Is there a volume mounted into the container which you then run the <code>surfer put</code> against?</p>
]]></description><link>https://forum.cloudron.io/post/21256</link><guid isPermaLink="true">https://forum.cloudron.io/post/21256</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 10 Dec 2020 14:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 15:15:02 GMT]]></title><description><![CDATA[<p dir="auto">The timestamp issue seems to be already known for Hugo (which is what I am using for my blog): <a href="https://github.com/gohugoio/hugo/issues/6161" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/gohugoio/hugo/issues/6161</a></p>
<p dir="auto">You could pull my image from <a href="https://hub.docker.com/r/fbartels/cloudron-surfer" target="_blank" rel="noopener noreferrer nofollow ugc">https://hub.docker.com/r/fbartels/cloudron-surfer</a>.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.cloudron.io/post/21137</link><guid isPermaLink="true">https://forum.cloudron.io/post/21137</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Wed, 09 Dec 2020 15:15:02 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 13:53:36 GMT]]></title><description><![CDATA[<p dir="auto">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?<br />
Given the other <code>atime</code> 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.</p>
<p dir="auto">I guess I have to spin up a <code>node:lts-alpine3.12</code> container and see if I can reproduce this, or do you have your exact setup as a public image I could just docker pull?</p>
]]></description><link>https://forum.cloudron.io/post/21128</link><guid isPermaLink="true">https://forum.cloudron.io/post/21128</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 09 Dec 2020 13:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 13:42:36 GMT]]></title><description><![CDATA[<p dir="auto">Updating is easy.</p>
<pre><code>+ surfer --version
5.12.1
+ stat public/.
  File: public/.
  Size: 242       	Blocks: 0          IO Block: 4096   directory
Device: 21h/33d	Inode: 4999809     Links: 1
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1754-08-30 22:43:41.000000000
Modify: 2020-12-09 13:41:18.000000000
Change: 2020-12-09 13:41:18.000000000

+ touch public/
+ surfer put --token $SURFTOKEN --server blog.9wd.eu public/* /
Using server https://blog.9wd.eu
/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 (&lt;anonymous&gt;)
    at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:323:33
    at Array.filter (&lt;anonymous&gt;)
    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.&lt;anonymous&gt; (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/parsers/json.js:22:7)
    at Stream.emit (events.js:326:22)
    at Unzip.&lt;anonymous&gt; (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/unzip.js:53:12)
</code></pre>
]]></description><link>https://forum.cloudron.io/post/21126</link><guid isPermaLink="true">https://forum.cloudron.io/post/21126</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Wed, 09 Dec 2020 13:42:36 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 13:24:46 GMT]]></title><description><![CDATA[<p dir="auto">Interesting behavior. For a start I've published the latest cli version to npm (so cloudron-surfer@5.12.1 )<br />
This version has the syncing/uploading parts rewritten to avoid re-uploading unchanged files.<br />
Could you update this and see where it breaks then? <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=21ee5037fec" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/21125</link><guid isPermaLink="true">https://forum.cloudron.io/post/21125</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 09 Dec 2020 13:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 13:08:31 GMT]]></title><description><![CDATA[<p dir="auto">Since this is a docker image in a ci pipeline I opted to just run the stat command manually and indeed the timestamp is way off:</p>
<pre><code>+ surfer --version
5.11.0
+ stat public/.
  File: public/.
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 811h/2065d	Inode: 6471947     Links: 14
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1754-08-30 22:43:41.000000000
Modify: 2020-12-09 12:33:55.000000000
Change: 2020-12-09 12:33:55.000000000

+ surfer put --token $SURFTOKEN --server blog.9wd.eu public/. /
Using server https://blog.9wd.eu
/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:63
        atime: stat.atime.toISOString(),
                          ^
...
</code></pre>
<p dir="auto">Afterwards I did <code>touch</code> that directory, but then I get a different error message afterwards from surfer:</p>
<pre><code>+ surfer --version
5.11.0
+ stat public/.
  File: public/.
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 811h/2065d	Inode: 6471994     Links: 14
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 1754-08-30 22:43:41.000000000
Modify: 2020-12-09 13:05:22.000000000
Change: 2020-12-09 13:05:22.000000000

+ touch public/
+ surfer put --token $SURFTOKEN --server blog.9wd.eu public/* /
Using server https://blog.9wd.eu
/usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:315
                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:315:75
    at Array.find (&lt;anonymous&gt;)
    at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:314:33
    at Array.filter (&lt;anonymous&gt;)
    at /usr/local/lib/node_modules/cloudron-surfer/cli/actions.js:313: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.&lt;anonymous&gt; (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/parsers/json.js:22:7)
    at Stream.emit (events.js:314:20)
    at Unzip.&lt;anonymous&gt; (/usr/local/lib/node_modules/cloudron-surfer/node_modules/superagent/lib/node/unzip.js:53:12)
</code></pre>
]]></description><link>https://forum.cloudron.io/post/21121</link><guid isPermaLink="true">https://forum.cloudron.io/post/21121</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Wed, 09 Dec 2020 13:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Wed, 09 Dec 2020 12:13:08 GMT]]></title><description><![CDATA[<p dir="auto">Hm in this case it actually is only local to the cli. Strange, it looks like the Stats object returned by nodejs has some invalid Date set on atime. I didn't know that can even happen.</p>
<p dir="auto">Can you maybe put a <code>console.log(stat, stat.atime, typeof stat.atime)</code> or so in that code path?</p>
]]></description><link>https://forum.cloudron.io/post/21113</link><guid isPermaLink="true">https://forum.cloudron.io/post/21113</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 09 Dec 2020 12:13:08 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Tue, 08 Dec 2020 21:57:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> it says:</p>
<blockquote>
<p dir="auto">Package v5.12.1<br />
App v5.12.0</p>
</blockquote>
]]></description><link>https://forum.cloudron.io/post/21082</link><guid isPermaLink="true">https://forum.cloudron.io/post/21082</guid><dc:creator><![CDATA[fbartels]]></dc:creator><pubDate>Tue, 08 Dec 2020 21:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to Surfer CLI 5.11.0 fails to upload on Tue, 08 Dec 2020 16:23:07 GMT]]></title><description><![CDATA[<p dir="auto">What is the surfer server version?</p>
]]></description><link>https://forum.cloudron.io/post/21038</link><guid isPermaLink="true">https://forum.cloudron.io/post/21038</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Tue, 08 Dec 2020 16:23:07 GMT</pubDate></item></channel></rss>