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

Error at the database connection step of the manual installation process #884

Open
Matinal111 opened this issue Jan 17, 2025 · 10 comments
Open
Labels
Support Requests for Help regarding setup and usage Won't fix This will not be worked on

Comments

@Matinal111
Copy link

Bug Description

I described the problem in Discussions #881, and felt it would be more convenient to raise an Issues.
The problem is as shown in the screenshot, I checked the database and network again before this and they are working fine, do I need to provide any other information to assist with this?

How to reproduce

Setup without Docker

Expected behavior

make it work

Logs

Screenshots

Image

Image

LinkAce version

v2.0.0 Beta 4

Setup Method

PHP

Operating System

Linux (Ubuntu, CentOS,...)

Client details

No response

@Matinal111 Matinal111 added the Bug Something isn't working label Jan 17, 2025
@Kovah
Copy link
Owner

Kovah commented Jan 17, 2025

Ah well okay then. Could you please install the MySQL Client on your machine? It's needed if you want to use LinkAce with a MySQL database.

@Matinal111
Copy link
Author

Ah well okay then. Could you please install the MySQL Client on your machine? It's needed if you want to use LinkAce with a MySQL database.

I have installed MariaDB service through Docker, my other hosting services and container services to connect to the database are running fine, I have opened the external port of MariaDB and remote connection is fine, I have spent days troubleshooting this issue and still have no clue, I don't want to give up, please help me to solve this issue!

@Kovah
Copy link
Owner

Kovah commented Jan 17, 2025

Could you please share your PHP configuration? Maybe something is missing, so that PHP falls back to using the MySQL client instead of using the PDO modules which usually takes care of the database connections.

@Matinal111
Copy link
Author

# php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

@Kovah
Copy link
Owner

Kovah commented Jan 17, 2025

I have no idea where this is coming from. PDO MySQL is clearly installed and should be used during the setup. It's unusual that the mysql client is called manually.

Could you please try to finalize the setup by using the command line:

php artisan migrate
php artisan setup:complete
php artisan registeruser

@Matinal111
Copy link
Author

Image

@Matinal111
Copy link
Author

Image

I changed the database to pgsql and it also gives me an error, I have to wonder if there is something wrong with the program's database connection logic

@Kovah
Copy link
Owner

Kovah commented Jan 18, 2025

I know what the issue is. LinkAce v2 uses a database dump to create the base table structure ov LinkAce v1. This significantly increases the time to install the applications, because not all 30+ migrations need to run one after another.
But to be able to import the database dump, the real database clients are needed.

So, basically mysql-client, mariadb-client or postgresql-client postgresql-dev nedd to be installed to use LinkAce as a standalon PHP application where the database server is running on another machine, or in Docker as in your setup.

@Kovah Kovah added Support Requests for Help regarding setup and usage Won't fix This will not be worked on and removed Bug Something isn't working labels Jan 19, 2025
@Matinal111
Copy link
Author

This is really bad news. That's all.

@Kovah
Copy link
Owner

Kovah commented Jan 20, 2025

Well, I know it's unfortunate that those clients are needed, but I would not like to build the whole database setup back for an rather edge case setup. LinkAce backups won't be available too, if the clients are missing from your system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Requests for Help regarding setup and usage Won't fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants