https://slingdata.io logo
chunking with platform agent
# sling-help
m
My platform production agent is not allowing me to run a replication using chunking, If i try it i just get an error with no messages, but then i tried using the "compiled" view in the web editor i see this message: https://cdn.discordapp.com/attachments/1433907125180043337/1433907132897431796/image.png?ex=69066595&is=69051415&hm=a925388a71bd3fe3e390c01bd0d0d10ff80219d70930f8f1fcf7f03ed43c1633&
f
hey @mitty18 this is fixed, however I'm seeing that your agent (
agent_yh0eta8amrk89juh
) is not auto-updating. Could you check the logs on your agent for any errors? I'm wondering if there is some disk permission error.
m
I am running it in docker, does that disable the auto update?
oh nm, its because i am building my own docker container and it doesnt properly detect the agent version going up (i just use the github latest release url), ill have to add logic to get the latest release and use the actualy version number
f
🤔 I'm not sure about that, the auto-update downloads the latest agent binary (which is versioned differently and more frequently than the github CLI version). It will try to download it into folder
$SLING_HOME/bin/agent/
. Can you share the error message you're seeing in the logs?
m
hi @User , i tried to restart my agent and now I am getting this error
Copy code
2025-11-04 20:57:33 WRN unable to download required version: 251104_1310
2025-11-04 20:57:33 DBG using binPath=/usr/local/bin/sling
2025-11-04 20:57:33 INF Sling Agent | https://slingdata.io
2025-11-04 20:57:33 INF connecting to platform server
2025-11-04 20:57:33 DBG initiated session id=agent_yh0eta8amrk89juh plan=advanced project_id=proj_2ubfme75ezbofosf
2025-11-04 20:57:34 DBG subscribing to 27 routes
2025-11-04 20:57:34 DBG connected to sling server
nats: Permissions Violation for Subscription to "agent_yh0eta8amrk89juh/execution/tasks" on connection [163]
fatal:
--- proc.go:283 main ---
--- sling_cli.go:517 main ---
--- sling_cli.go:553 cliInit ---
--- cli.go:287 CliProcess ---
--- sling_agent..go:69 processAgent ---
--- agent.go:101 RunAgent ---
--- agent.go:200 runAgentChild ---
--- agent.go:444 Connect ---
--- agent.go:537 subscribe ---
--- logging.go:523 LogFatal ---
nats: Permissions Violation for Subscription to "agent_yh0eta8amrk89juh/execution/tasks"
this is happening on both my prod and dev agents now
f
OK deploying fix. I'm more concerned about the
WRN unable to download required version
, it's not printing out the details. could you share your Dockerfile?
maybe its because i change user to 'sling' and it needs write access to /usr/local/bin?
i can try it by changing the ownership of the binary after i do chmod +x
f
Agent should be good now. It broke due to not being able to upgrade, the legacy route was restored to allow pub/sub
m
yup its working now, but doing chown sling:sling didnt help with the upgrade
Copy code
2025-11-04 21:21:41 WRN unable to download required version: 251104_2108
2025-11-04 21:21:41 DBG using binPath=/usr/local/bin/sling
2025-11-04 21:21:41 INF Sling Agent | https://slingdata.io
2025-11-04 21:21:41 INF connecting to platform server
2025-11-04 21:21:42 DBG initiated session id=agent_yh0eta8amrk89juh plan=advanced project_id=proj_2ubfme75ezbofosf
2025-11-04 21:21:42 DBG subscribing to 27 routes
2025-11-04 21:21:42 DBG connected to sling server
2025-11-04 21:21:42 DBG initiating file sync agent_id=agent_yh0eta8amrk89juh project_id=proj_2ubfme75ezbofosf
2025-11-04 21:21:42 DBG sending to sling-server agent_id=agent_yh0eta8amrk89juh msg_type=file_sync project_id=proj_2ubfme75ezbofosf size=0
2025-11-04 21:21:42 DBG starting http server localhost:33975
2025-11-04 21:21:42 INF ready 🚀
i changed the sling agent download step to this:
Copy code
RUN ARCH=$(echo $BUILDPLATFORM | cut -d'/' -f2) && \
    case ${ARCH} in \
        x86_64|amd64) PACKAGE_NAME="sling_linux_amd64" ;; \
        aarch64|arm64) PACKAGE_NAME="sling_linux_arm64" ;; \
        *) echo "Unsupported architecture: ${ARCH}" && exit 1 ;; \
    esac && \
    # Get the actual version by following the redirect
    LATEST_VERSION=$(curl -sI https://github.com/slingdata-io/sling-cli/releases/latest | grep -i "^location:" | sed -E 's/.*\/tag\/([^\/\r\n]+).*/\1/') && \
    echo "Downloading Sling CLI version: ${LATEST_VERSION}" && \
    curl -L -o /tmp/sling.tar.gz "https://github.com/slingdata-io/sling-cli/releases/download/${LATEST_VERSION}/${PACKAGE_NAME}.tar.gz" && \
    tar -xzf /tmp/sling.tar.gz -C /usr/local/bin && \
    chmod +x /usr/local/bin/sling && \
**    chown sling:sling /usr/local/bin/sling && \**
    rm /tmp/sling.tar.gz
if you have another binary you want me to test (besides the one in github release), i can try it
f
are you using arm64?
m
yes its a aws graviton box
f
aah ok
m
oh now i see:
Copy code
2025-11-04 21:31:01 WRN could not download latest version: 251104_2108 (OS linux/arm64 not handled) agent_id=agent_r8hjuppckga4564v project_id=proj_2ubfme75ezbofosf
on my local box (macos)
macos using docker
f
perfect, thanks. gimme a few.
ok @mitty18 new CLI version has been released. Please rebuild your docker image and you should be good to go. Upgrades should be handled correctly for arm64 binaries going forward.