MrScarySpaceCat
MrScarySpaceCat3mo ago

Strange error when running Deno kubernetes container on only 1 node (out of my 3)

Recently migrated from Node.js to Deno. Works extremely well, except for this. I keep getting this strange error on one of my kubernetes containers on only 1 of my nodes when I try to run Deno. The error states: exec /tini: input/output error. I have zero idea how to fix it. Deno works fine on all of my other nodes, except for this one. They are all the same model mini pc, and should have the same configuration regarding OS, packages, and such. Can someone help me please? Thank you for your time and have a nice day.
2 Replies
Satya
Satya3mo ago
@MrScarySpaceCat is it possible to share the docker config the container you're trying to run? This error looks more related to tini and it's failure to execute than deno
MrScarySpaceCat
MrScarySpaceCatOP2mo ago
Sorry for the late response. Here you go.
# Use the latest Deno image
FROM denoland/deno:debian

# Set the working directory inside the Docker container
WORKDIR /app

# Update package lists and install necessary packages for Puppeteer
RUN apt-get update && apt-get install -y \
ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
lsb-release \
wget \
xdg-utils

# Copy package.json and package-lock.json (if it exists) to Docker image
COPY package*.json ./

# Install Deno dependencies
RUN deno install --allow-scripts=npm:puppeteer

# Copy all other files from the current directory to /app in the container
COPY . .

# Expose port for Bridge
EXPOSE 5000

# Command to run the application
CMD ["deno", "run", "--allow-all", "src/index.ts"]
# Use the latest Deno image
FROM denoland/deno:debian

# Set the working directory inside the Docker container
WORKDIR /app

# Update package lists and install necessary packages for Puppeteer
RUN apt-get update && apt-get install -y \
ca-certificates \
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libexpat1 \
libfontconfig1 \
libgbm1 \
libgcc1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libstdc++6 \
libx11-6 \
libx11-xcb1 \
libxcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxi6 \
libxrandr2 \
libxrender1 \
libxss1 \
libxtst6 \
lsb-release \
wget \
xdg-utils

# Copy package.json and package-lock.json (if it exists) to Docker image
COPY package*.json ./

# Install Deno dependencies
RUN deno install --allow-scripts=npm:puppeteer

# Copy all other files from the current directory to /app in the container
COPY . .

# Expose port for Bridge
EXPOSE 5000

# Command to run the application
CMD ["deno", "run", "--allow-all", "src/index.ts"]
Heres my package.json if you need
{
"name": "agent-kitten-v2",
"type": "module",
"scripts": {
"start": "node dist/index.js",
"build": "tsc"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/jsdom": "^21.1.7",
"eslint": "^9.11.1",
"globals": "^15.10.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"@discordjs/builders": "^1.9.0"
},
"peerDependencies": {
"typescript": "^5.5.4"
},
"dependencies": {
"@discordjs/voice": "^0.17.0",
"discord-cross-hosting": "^2.3.8",
"discord-hybrid-sharding": "^2.2.0",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"jsdom": "^25.0.1",
"mongodb": "^6.9.0",
"moonlink.js": "^4.0.2",
"net-ipc": "2.2.0",
"node-html-parser": "^6.1.13",
"ollama": "^0.5.9",
"puppeteer": "^23.5.0",
"redis": "^4.7.0"
}
}
{
"name": "agent-kitten-v2",
"type": "module",
"scripts": {
"start": "node dist/index.js",
"build": "tsc"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/jsdom": "^21.1.7",
"eslint": "^9.11.1",
"globals": "^15.10.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"@discordjs/builders": "^1.9.0"
},
"peerDependencies": {
"typescript": "^5.5.4"
},
"dependencies": {
"@discordjs/voice": "^0.17.0",
"discord-cross-hosting": "^2.3.8",
"discord-hybrid-sharding": "^2.2.0",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"jsdom": "^25.0.1",
"mongodb": "^6.9.0",
"moonlink.js": "^4.0.2",
"net-ipc": "2.2.0",
"node-html-parser": "^6.1.13",
"ollama": "^0.5.9",
"puppeteer": "^23.5.0",
"redis": "^4.7.0"
}
}
actually let me try something nvm didnt work bumping this, sorry this seems to be fixed in the latest version, thanks

Did you find this page helpful?