miroslavpejic85 / mirotalk

🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
https://p2p.mirotalk.com
GNU Affero General Public License v3.0
2.6k stars 502 forks source link

New Spin up of Mirotalk in Docker has error #212

Closed chadniko closed 3 months ago

chadniko commented 3 months ago

Trying to spin up a fresh install of mirotalk using docker-compose. Did a git pull. Updated the .env file, docker compose file and docker compose up. This is what I get:

   ⠼ d84d623f27ea Download complete                                                                                                                                   14.4s
[+] Building 13.6s (10/12)                                                                                                                                                  
 => [internal] load build definition from Dockerfile                                                                                                                   0.0s
 => => transferring dockerfile: 384B                                                                                                                                   0.0s
 => [internal] load .dockerignore                                                                                                                                      0.0s
 => => transferring context: 180B                                                                                                                                      0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                                                      0.3s
 => [1/8] FROM docker.io/library/node:18-alpine@sha256:0085670310d2879621f96a4216c893f92e2ded827e9e6ef8437672e1bd72f437                                                0.0s
 => [internal] load build context                                                                                                                                      0.0s
 => => transferring context: 7.01kB                                                                                                                                    0.0s
 => CACHED [2/8] WORKDIR /src                                                                                                                                          0.0s
 => CACHED [3/8] RUN apk add --no-cache  bash  vim                                                                                                                     0.0s
 => CACHED [4/8] COPY package.json .                                                                                                                                   0.0s
 => CACHED [5/8] COPY .env.template ./.env                                                                                                                             0.0s
 => ERROR [6/8] RUN     npm install &&     npm cache clean --force &&     rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc/*                              13.3s
------                                                                                                                                                                      
 > [6/8] RUN     npm install &&     npm cache clean --force &&     rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc/*:                                          
#0 8.220                                                                                                                                                                    
#0 8.220 added 242 packages, and audited 243 packages in 8s                                                                                                                 
#0 8.220                                                                                                                                                                    
#0 8.220 32 packages are looking for funding                                                                                                                                
#0 8.220   run `npm fund` for details
#0 8.221 
#0 8.221 found 0 vulnerabilities
#0 8.222 npm notice 
#0 8.222 npm notice New minor version of npm available! 10.2.3 -> 10.4.0
#0 8.222 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.4.0>
#0 8.222 npm notice Run `npm install -g npm@10.4.0` to update!
#0 8.222 npm notice 
#0 8.530 npm WARN using --force Recommended protections disabled.
#0 8.734 rm: can't remove '/tmp/v8-compile-cache-0/10.2.154.26-node.28': Invalid argument

AIA if I've done something stupid and wasted your time.

miroslavpejic85 commented 3 months ago

The npm install process encountered an error while trying to remove a temporary directory. Specifically, the error message rm: can't remove '/tmp/v8-compile-cache-0/10.2.154.26-node.28': Invalid argument indicates that there might be an issue with the removal of this directory.

  1. Check Permissions: Ensure that the user running Docker has appropriate permissions to remove files and directories from /tmp. Sometimes, permission issues can prevent the removal of files, resulting in errors like the one you're seeing.

  2. Manually Clean Up: If the error persists, you might try manually removing the problematic directory (/tmp/v8-compile-cache-0/10.2.154.26-node.28) from your host system. Then try re-running the Docker build.

If you require further assistance, we kindly request that you utilize our forum join us help & support channel.

Thank you for your cooperation!

chadniko commented 3 months ago

For anyone with this issue: Running under Proxmox LXC Ubuntu 20.04 container with docker. Got this going by commenting out a few things in the Dockerfile: RUN \ npm install

npm install && \

 #    npm cache clean --force && \
 #    rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc/*

Noticed this when comparing with the Dockerfile of MirotalkSFU which I had running....