One of the queries that Synology makes

One of the queries that Synology makes results in a NextMarker loop - forever
31 Replies
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
kian
kianβ€’16mo ago
Yep R2 returns a Marker of foo and a NextMarker of foo so it keeps following NextMarker I'm going to move the files from my R2 bucket onto S3 & run the same request against S3 Specifically it's <NextMarker>Resilience_1.hbk/</NextMarker> (varies between upload jobs but you get the idea) Previously the job uploaded to a folder called sdk-example and it looped on this
<Marker>sdk-example/</Marker>
<MaxKeys>1000</MaxKeys>
<NextMarker>sdk-example/</NextMarker>
<Marker>sdk-example/</Marker>
<MaxKeys>1000</MaxKeys>
<NextMarker>sdk-example/</NextMarker>
It's basically being told 'to check this folder, use this marker' but that marker isn't progressing anything
kian
kianβ€’16mo ago
kian
kianβ€’16mo ago
so NextMarker is Resilience_1.hbk/ so I'll add the marker search param with that value
kian
kianβ€’16mo ago
kian
kianβ€’16mo ago
now I'm stuck forever, since it's just telling me to check where I already am
kian
kianβ€’16mo ago
if I remove the delimiter and the marker, we can see there are files
kian
kianβ€’16mo ago
including other folders after that
kian
kianβ€’16mo ago
if I do the same against S3:
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>sdk-example-kian</Name>
<Prefix></Prefix>
<Marker>Resilience_1.hbk/</Marker>
<MaxKeys>1000</MaxKeys>
<Delimiter>/</Delimiter>
<EncodingType>url</EncodingType>
<IsTruncated>false</IsTruncated>
</ListBucketResult>
<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Name>sdk-example-kian</Name>
<Prefix></Prefix>
<Marker>Resilience_1.hbk/</Marker>
<MaxKeys>1000</MaxKeys>
<Delimiter>/</Delimiter>
<EncodingType>url</EncodingType>
<IsTruncated>false</IsTruncated>
</ListBucketResult>
Let me try and setup a repro that doesn't involve Synology Repro:
/* s3 client setup */

await S3.send(new PutObjectCommand({ Bucket: "sdk-example", Key: "folder/foldertwo/file" }));

console.log(
await S3.send(
new ListObjectsCommand({
Bucket: "sdk-example",
Delimiter: "/",
Prefix: "",
Marker: "folder/",
})
)
);
/* s3 client setup */

await S3.send(new PutObjectCommand({ Bucket: "sdk-example", Key: "folder/foldertwo/file" }));

console.log(
await S3.send(
new ListObjectsCommand({
Bucket: "sdk-example",
Delimiter: "/",
Prefix: "",
Marker: "folder/",
})
)
);
S3:
Delimiter: '/',
IsTruncated: false,
Marker: 'folder/',
MaxKeys: 1000,
Name: 'sdk-example-kian',
Prefix: ''
Delimiter: '/',
IsTruncated: false,
Marker: 'folder/',
MaxKeys: 1000,
Name: 'sdk-example-kian',
Prefix: ''
R2:
CommonPrefixes: [ { Prefix: 'folder/' } ],
Delimiter: '/',
IsTruncated: false,
Marker: 'folder/',
MaxKeys: 1000,
Name: 'sdk-example',
NextMarker: 'folder/',
Prefix: ''
CommonPrefixes: [ { Prefix: 'folder/' } ],
Delimiter: '/',
IsTruncated: false,
Marker: 'folder/',
MaxKeys: 1000,
Name: 'sdk-example',
NextMarker: 'folder/',
Prefix: ''
Both ran on empty buckets
kian
kianβ€’16mo ago
kian
kianβ€’16mo ago
Same file/folder path on both To clarify why Marker: "folder/" is used, that's what R2 returns as NextMarker if I omit the marker.
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
kian
kianβ€’16mo ago
kian
kianβ€’16mo ago
Let's just say Synology will, uh... ferrissweatmegaspin
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
kian
kianβ€’16mo ago
kian
kianβ€’16mo ago
Yes - but we're also within free blobcatbusiness
itsmatteomanf
itsmatteomanfβ€’16mo ago
@kiannh is great, yeah If you want I can keep going πŸ˜› This varies as it’s the base folder name, which defaults to the NAS name with the hbk extension. You can select it.
kian
kianβ€’16mo ago
I should apply as QA /s
James
Jamesβ€’16mo ago
Glad this was got to the bottom of! Thanks so much for the debug y’all. Would love to use R2 with my synology at some point πŸ‘€
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
itsmatteomanf
itsmatteomanfβ€’16mo ago
I have my job ready, if you need a test just ping me anytime. It’s a very easy click to test, and even if I need to set-it up again I did a separate token, so I roll and restart easily. It was fun, seeing @kiannh swear at Signatures in S3 CLI πŸ˜‚
kian
kianβ€’16mo ago
ameowhecked
James
Jamesβ€’16mo ago
Any news here? πŸ‘€ Is there a better place I could file this for tracking? Ticket to custesc maybe?
Unknown User
Unknown Userβ€’16mo ago
Message Not Public
Sign In & Join Server To View
James
Jamesβ€’16mo ago
Alrighty, will do πŸ™‚
itsmatteomanf
itsmatteomanfβ€’16mo ago
Should we do one and CC the other into it? πŸ‘€
James
Jamesβ€’16mo ago
can do. I was gonna take a look this weekend, don't have much time this week. Will DM you beforehand in case you've already done one lul
itsmatteomanf
itsmatteomanfβ€’15mo ago
Not sure I’m gonna find the time, as it requires a bunch of info to share and to prepare πŸ˜… @sdnts so, we should CUSTESC it, right? No progress in the meantime?
Unknown User
Unknown Userβ€’15mo ago
Message Not Public
Sign In & Join Server To View
itsmatteomanf
itsmatteomanfβ€’15mo ago
Hopefully gonna do that today, finally...
Want results from more Discord servers?
Add your server
More Posts
`````` 2023/02/20 16:55:05 DEBUG : rclone: Version "v1.53.3-DEV" starting with parameters ["rclone" "coFetch() cache behaviourWith the following, the `Response` 's `cf-cache-status` header is `BYPASS`. I was expecting to see cWorkers routes - Zonei got error forbidden on the workers routes page ```json // https://dash.cloudflare.com/api/v4/zoneWorker is logging requests when website is making no requestsI built a Worker to handle form requests for my website and put the data to different services I usecloudflare pages site speed test but 404 errorWhen my site, which was created using cloudflare pages, performs the speed test, a 404 error occurs.The wording around how sampling is doneThe wording around how sampling is done is unclear - which row from a sampled region gets stored? WhWorkers not decoding gzip request automaticallyGetting the `.text()` of ```ZοΏ½&οΏ½;οΏ½οΏ½2οΏ½οΏ½οΏ½οΏ½9s#Γ’/yοΏ½HοΏ½HοΏ½οΏ½οΏ½οΏ½οΏ½Cp_Ξƒ;05οΏ½οΏ½J#cοΏ½EοΏ½G9οΏ½M*οΏ½aοΏ½zJ%,οΏ½[tοΏ½οΏ½οΏ½)<οΏ½>οΏ½οΏ½Ε…οΏ½οΏ½^οΏ½οΏ½Error: "stream does not start with a json array" when making logpush job, incorrect error code?I am trying to make a logpush job that sends an array JSON to axiom. I am getting an error: ``` {"eHow to cancel deployment if any part of the build fails or throws an error?I set up a tiny build script for my site at https://github.com/ReactFinland/future-frontend-site/bloHow am I to run my Next.js 13 app with Edge runtime API route with KV bindings locally?I created a brand new next.js 13 app with Edge runtime API route. This works well both locally and w