Shippable / support

Shippable SaaS customers can report issues and feature requests in this repository
101 stars 28 forks source link

Unable to start MySQL service #5133

Open svo opened 4 years ago

svo commented 4 years ago

Unable to start MySQL service

When adding the following stanza to the shippable.yml we are encountering a build failure in the mysql_start step.

services:
  - mysql

Supporting Material

a-murphy commented 4 years ago

I haven't been able to reproduce this with the same image and Ruby version. Would you mind including the full shippable.yml contents (except placeholders for any variables or other information that can't be public)?

svo commented 4 years ago

Of course... thanks @a-murphy :-)

language: ruby

rvm:
  - 2.6.2

services:
  - mysql

build:
  ci:
    - nvm install 7.8.0
    - ./bash/test.sh
a-murphy commented 4 years ago

Unfortunately, I still don't see any problems with MySQL when I try a copy of that YML on the same machine image version as your subscription. There's a slight possibility that one of the commands used to start MySQL could have been overridden by the files in your repository. Any chance you have a mysql_start or shippable_service?

svo commented 4 years ago

Unfortunately no mysql_start or shippable_service files in the repository.

I did try bringing the image locally and had no issue... though in honest I didn't through all the RVM steps etc evidenced in the shippable logs.

svo commented 4 years ago

I'm trying to replicate in a more simplistic project:

https://github.com/Qualis/shippable-mysql-test https://app.shippable.com/github/Qualis/shippable-mysql-test/dashboard

Seems to fail when I add the .nvmrc file.

svo commented 4 years ago

I have simplified the test project to just the following:

If I remove the .nvmrc it is green, otherwise red.

The content of the files:

cat .node-version

7.8.0

cat .nvmrc

7.8

cat .ruby-version

2.6.2

cat shippable.yml

language: ruby

rvm:
  - 2.6.2

services:
  - mysql

build:
  ci:
    - nvm install 7.8.0
    - echo ":-)"
svo commented 4 years ago

Now just the .nvmrc .ruby-version and shippable.yml

cat .nvmrc

7.8.0

cat .ruby-version

2.6.2

cat shippable.yml

language: ruby

rvm:
  - 2.6.2

services:
  - mysql

build:
  ci:
    - echo ":-)"
svo commented 4 years ago

The removal of the .nvmrc file has resolved my issue on the other project.

Thanks for the support :-)