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 during install: cloudlog.options does not exist #3234

Open
john-terrell opened this issue Dec 3, 2024 · 4 comments
Open

Error during install: cloudlog.options does not exist #3234

john-terrell opened this issue Dec 3, 2024 · 4 comments

Comments

@john-terrell
Copy link

This is for reporting bugs with the code, if this issue is regarding setting up on your local server please use the forum see readme for details

Describe the bug
Installed fresh Ubuntu 22.04 LTS (also tried 24.04 LTS) with PHP7.4 (installed via PPA) and Apache 2 with CloudLog 2.6.16 (tried using the HEAD of 'master' as well). After configuring the install via the install.php page, I receive the following error:

Error Number: 1146
Table 'cloudlog.options' doesn't exist
SELECT * FROM `options` WHERE `autoload` = 'yes'
Filename: models/Options_model.php
Line Number: 14

Looking at the database, several tables have been created but no 'options' table exists. I've tried this with a local MySQL Database as well as a remote one. Same issue.

The only thing in the apache logs are:

[Tue Dec 03 22:34:01.381453 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/assets/install.sql): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php
[Tue Dec 03 22:34:01.381610 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/config/config.php): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php
[Tue Dec 03 22:34:01.381638 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/config/database.php): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php
[Tue Dec 03 22:34:01.381704 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/includes/core_class.php): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php
[Tue Dec 03 22:34:01.381724 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/includes/database_class.php): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php
[Tue Dec 03 22:34:01.381741 2024] [php7:warn] [pid 28743] [client 10.10.6.157:60135] PHP Warning: unlink(/var/www/html/install/index.php): Permission denied in /var/www/html/install/index.php on line 17, referer: http://10.10.200.20/install/index.php

To see if these permissions errors were related, I set all of those files to RWX - re-ran the install script with the same result (but with the errors no longer present in the log.    Not sure why the install script is trying to remove those files...but it seems unrelated.)

I also ran the update_cloudlog.sh script as well but that didn't help.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Safari and Chrome
@magicbug
Copy link
Owner

magicbug commented Dec 4, 2024

Sounds like install failed, I'd suggest trying to run it again, you may need to download the codebase again, after install it automatically tries to delete the /install folder for security reasons

@john-terrell
Copy link
Author

Ok, just tried again with a new install of OS and app. Same thing. Does the install do any logging I could investigate?

@john-terrell
Copy link
Author

@magicbug - On thing I tried was to run the install.sql directly on the database and it failed with this:

11:30:08 INSERT INTO migrations VALUES ('15') Error Code: 1105. Percona-XtraDB-Cluster prohibits use of DML command on a table (cloudlog.migrations) without an explicit primary key with pxc_strict_mode = ENFORCING or MASTER 0.0065 sec

@john-terrell
Copy link
Author

@magicbug - The issue with the above error is the fact that the primary key for the options table isn't specified as part of the "CREATE TABLE" command. Moving the primary key specification from the UPDATE command to the CREATE command fixes this. I have a change in my fork that makes everything work (I also added a few missing "DROP TABLE IF EXISTS"' entries). Let me know if you want me to submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants