Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run-parts: can't execute '/scripts/100-proxy-certs': Exec format error #1346

Open
sjinks opened this issue May 6, 2023 · 4 comments
Open
Assignees
Labels
[Status] Keep Prevent the "stale" workflow from auto-closing [Type] Bug Something isn't working

Comments

@sjinks
Copy link
Member

sjinks commented May 6, 2023

Heisenbug :-(

 ⠿ Container viplocal-wordpress-1  Error while Killing                                                                                                                                                                                 0.2s
Error response from daemon: Cannot kill container: 0a997f0ff01116217b598e3ceeca9c2f161afff22ce10840719dbc217cf4a721: Container 0a997f0ff01116217b598e3ceeca9c2f161afff22ce10840719dbc217cf4a721 is not running
$ docker logs 0a997f0ff01116217b598e3ceeca9c2f161afff22ce10840719dbc217cf4a721



                         STARTING UP                            

         ██       █████  ███    ██ ██████   ██████             
         ██      ██   ██ ████   ██ ██   ██ ██    ██            
         ██      ███████ ██ ██  ██ ██   ██ ██    ██            
         ██      ██   ██ ██  ██ ██ ██   ██ ██    ██            
         ███████ ██   ██ ██   ████ ██████   ██████             

       The best local development tool in the galaxy!                     


===============================================================


userperms 04:13:04.INFO  ==> This is a alpine container
userperms 04:13:04.INFO  ==> user-perms.sh kicking off as user uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
userperms 04:13:04.DEBUG ==> Lando ENVVARS set at
userperms 04:13:04.DEBUG ==> 
userperms 04:13:04.DEBUG ==> ========================================
userperms 04:13:04.DEBUG ==> LANDO_WEBROOT_USER      : www-data
userperms 04:13:04.DEBUG ==> LANDO_WEBROOT_GROUP     : www-data
userperms 04:13:04.DEBUG ==> LANDO_WEBROOT_UID       : 
userperms 04:13:04.DEBUG ==> LANDO_WEBROOT_GID       : 
userperms 04:13:04.DEBUG ==> LANDO_HOST_UID          : 1000
userperms 04:13:04.DEBUG ==> LANDO_HOST_GID          : 1000
userperms 04:13:04.DEBUG ==> ========================================
userperms 04:13:04.DEBUG ==> 
userperms 04:13:04.INFO  ==> Making sure correct user:group (www-data:www-data) exists...
userperms 04:13:04.INFO  ==> Remapping ownership to handle docker volume sharing...
userperms 04:13:04.INFO  ==> Resetting www-data:www-data from : to 1000:1000
userperms 04:13:04.INFO  ==> www-data:www-data is now running as uid=1000(www-data) gid=82(www-data) groups=82(www-data),82(www-data)!
userperms 04:13:04.INFO  ==> And here. we. go.
userperms 04:13:04.INFO  ==> Doing the permission sweep.
run-parts: can't execute '/scripts/100-proxy-certs': Exec format error
$ docker exec -it 2ec3180f3341 /bin/sh
/ # ls /scripts/100-proxy-certs 
/scripts/100-proxy-certs
/ # ls -lha /scripts/100-proxy-certs 
-rwxr-xr-x    1 root     root           0 May  6 04:11 /scripts/100-proxy-certs

The script is 0 bytes long, and this causes an error.

@sjinks sjinks added [Type] Bug Something isn't working [Status] Keep Prevent the "stale" workflow from auto-closing labels May 6, 2023
@sjinks sjinks self-assigned this May 6, 2023
@sjinks
Copy link
Member Author

sjinks commented May 6, 2023

~/.local/share/vip/lando/scripts/proxy-certs.sh is OK.

@sjinks
Copy link
Member Author

sjinks commented May 6, 2023

For some reason, the script is corrupt on the volume:

# ls -lha /var/lib/docker/volumes/viplocal_scripts/_data
загалом 12K
drwxr-xr-x 2 root root 4.0K тра  6 07:11 .
drwx-----x 3 root root 4.0K тра  6 07:11 ..
-rwxr-xr-x 1 root root    0 тра  6 07:11 100-proxy-certs
-rwxr-xr-x 1 root root 2.4K тра  2 06:50 user-container-setup.sh

@sjinks
Copy link
Member Author

sjinks commented May 6, 2023

vip dev-env stop
docker container prune -f
docker volume rm viplocal_scripts

does not help; the recreated file is empty.

@sjinks
Copy link
Member Author

sjinks commented May 6, 2023

Reboot did not help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] Keep Prevent the "stale" workflow from auto-closing [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant