• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

/app/src/Legacy/G/DB.php:56 Not Found

Version
4.1.4
PHP version
8.2.24
Database driver
MySQL
Database version
8.0.4
Web browser
Chrome

user_f617b

Chevereto Member
For a while I couldn't run the cron automatically because of this error so I've just been running it manually but now I cannot update to 4.2.0 because of the same error so I wondered what is causing this because the file does exist.
The server is Ubuntu 22.04 with WHM/cPanel. File and folder permissions are set to user:user

Code:
[671b69e1ea5b8] PDOException thrown in /home/html/public_html/app/src/Legacy/G/DB.php:56

# Message [Code #2002]
SQLSTATE[HY000] [2002] No such file or directory

# Time
2024-10-25T09:50:25+00:00 [1729849825]

# Incident 671b69e1ea5b8

# Backtrace
------------------------------------------------------------
0 /home/html/public_html/app/src/Legacy/G/DB.php:56
{main}()
------------------------------------------------------------
1 /home/html/public_html/app/src/Legacy/G/DB.php:56
PDO->__construct(string(length=70), string(length=32), string(length=42), array(size=3))
------------------------------------------------------------
2 /home/html/public_html/app/src/Legacy/G/DB.php:74
Chevereto\Legacy\G\DB->__construct(string(length=9), int(3306), string(length=32), string(length=32), string(length=42), string(length=5), array(size=0), string(length=4))
------------------------------------------------------------
3 /home/html/public_html/app/src/Legacy/functions.php:1223
Chevereto\Legacy\G\DB::fromEnv()
------------------------------------------------------------
4 /home/html/public_html/app/legacy/entrypoints/cli.php:55
Chevereto\Legacy\loaderHandler(array(size=0), array(size=0), array(size=0), array(size=0), array(size=0), array(size=0), array(size=34), array(size=0))
------------------------------------------------------------
5 /home/html/public_html/app/bin/legacy:13
require_once(string(length=65))
------------------------------------------------------------
 
Last edited by a moderator:
SQLSTATE[HY000] [2002] No such file or directory

TLDR
  • Unable to resolve the Unix socket. Try using 127.0.0.1 instead of localhost in your database credentials.
  • Database server offline.
 
Back
Top