"dist: jammy" builds failing after new travis build image

hello!

our builds just recently started failing with this message:

cp: cannot create regular file '/etc/apt/trusted.gpg.d/apt.llvm.org.asc~': Permission denied

and

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

The 2nd error may be the result of the 1st error, however, I’ve included both for completeness!

Here’s an abbreviated copy of our .travis.yml:

dist: jammy
addons:
    chrome: stable
language: python
python:
    - '3.11'

install:
    ...

cache:
    ...

script:
    ...

before_script:
    - mysql -e 'create database db;'

services:
    - mysql
    - memcached

From my digging, all of our builds were passing with the travis build image from Thu Nov 2 02:14:52 PM UTC 2023

and all builds using Tue Jun 18 09:58:37 AM UTC 2024 are failing.

Based on this, it seems that something may have changed from underneath me that is causing this issue? Is there anyway to hardcode the underlying travis image? Am I missing something obvious here?

Thank you so much for your help! Let me know if I can provide any more info.

1 Like

I got the same error as above.
Please help us to check this problem

I am having same issues

cp: cannot create regular file '/etc/apt/trusted.gpg.d/apt.llvm.org.asc~': Permission denied

0.06s$ psql -c 'create database esdb'
psql: error: connection to server at "localhost" (127.0.0.1), port 5433 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections?
The command "psql -c 'create database esdb'" failed and exited with 2 during .

john-kelly Did you find any solution to this ?

Yes!

If you add:

group: previous

to your travis.yml. I think that lets you use the previous travis build image. Once they update things on their end, you may have to change this and/or remove it, but it at least fixed my issue in the short term!

Thanks!

I can see build issue resolved.

I will keep checking this thread. :slight_smile:

can you help me? i have this issues as you “cp: cannot create regular file ‘/etc/apt/trusted.gpg.d/apt.llvm.org.asc~’: Permission denied”

and "No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: Common Build Problems - Travis CI" do you have any solution?