Ttyname failed: Inappropriate ioctl for device

I am running my gitalb-ci.yml

image : node16

stages:

  • build_dev

build_job:
stage: build_dev
tags:

  • Fluffa-fe

before_script:

  • ‘which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )’
  • eval $(ssh-agent -s)
  • ssh-add <(echo “$SSH_PRIVATE_KEY”)
  • mkdir -p ~/.ssh
  • ssh-keyscan -H ‘gitlab.com’ >> ~/.ssh/known_hosts
  • ssh-keyscan gitlab.com | sort -u - ~/.ssh/known_hosts -o ~/.ssh/known_hosts
  • ‘[[ -f /.dockerinit ]] && echo -e “Host *\n\tStrictHostKeyChecking no\n\n” > ~/.ssh/config’
    only:
  • master
    script:
  • cd /var/www/html/fluffa.quantox.dev/fe
  • git stash
  • git pull
  • npm install && npm run build
  • chown -R www-data:www-data /var/www/html/fluffa.quantox.dev
  • What are you seeing, and how does that differ from what you expect to see?

I added myself to Members as Maintener


The same porblem.
I added SSH_KEY variable but that does not improve things. How to fix this?

Thanks for taking the time to be thorough in your request, it really helps! :blush:

Hi, @milenkomarkovic can you please provide a bit more narrative of what you are trying to do?

I just ran into something similar while trying to authenticate to dockerhub (TL;DR needed to change the $HOME variable). But I can’t tell what you are trying to SSH into? Might be an issue with trying to allocate a tty.

I changed Gitlab runner to be the shell one,not ssh.Managed to solve this issue.