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

migrating HA addon to version alpine3.18_emoncms11.4.11 - possible issues #7

Open
alexandrecuer opened this issue Oct 20, 2023 · 6 comments

Comments

@alexandrecuer
Copy link
Contributor

alexandrecuer commented Oct 20, 2023

this version is adding ssl and https facilities

@alexandrecuer alexandrecuer changed the title ssl ssl and https Oct 20, 2023
@alexandrecuer
Copy link
Contributor Author

cf 9535fad

@alexandrecuer alexandrecuer changed the title ssl and https migrating to version alpine3.18_emoncms11.4.11 is causing issues Feb 11, 2024
@alexandrecuer
Copy link
Contributor Author

alexandrecuer commented Feb 11, 2024

restoring a backup on ha

after installing new version, could not access to emoncms.
reverted to previous version alpine3.16
permissions were wrong on /data/emoncms

had to connect to the container and to fix permissions manually :

chown -R apache /data/emoncms
chown -R mysql /data/emoncms/mysql

@alexandrecuer
Copy link
Contributor Author

alexandrecuer commented Feb 11, 2024

Once reverted to alpine3.16 and connected to emoncms :

Admin > Update > Update Database > APPLY CHANGES

this created the app_config table in mariadb

Dont know why I did not have this table ?

Then I created backup with the emoncms backup module

And relaunched the addon update

@alexandrecuer
Copy link
Contributor Author

could successfully access to emoncms after the upgrade without troubles but found this kind of errors in the logs :

2024-02-11 21:22:56 701 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
2024-02-11 21:23:01 702 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').

and there is a higher ram usage than before the update :
image

so once connected to the container and to the mariadb database with the command mysql

the 2 following mysql commands removed the errors in the log

MariaDB [(none)]> ALTER TABLE mysql.column_stats MODIFY histogram longblob;
Query OK, 0 rows affected (0.102 sec)              
Records: 0  Duplicates: 0  Warnings: 0

MariaDB [(none)]> ALTER TABLE mysql.column_stats MODIFY hist_type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB');
Query OK, 0 rows affected (0.033 sec)
Records: 0  Duplicates: 0  Warnings: 0

@alexandrecuer alexandrecuer changed the title migrating to version alpine3.18_emoncms11.4.11 is causing issues migrating to version alpine3.18_emoncms11.4.11 is causing issues ? Feb 11, 2024
@alexandrecuer alexandrecuer changed the title migrating to version alpine3.18_emoncms11.4.11 is causing issues ? migrating to version alpine3.18_emoncms11.4.11 - possible issues Feb 11, 2024
@alexandrecuer
Copy link
Contributor Author

using ngnix proxy manager to get trusted certificates

https://github.com/NginxProxyManager/nginx-proxy-manager

or for ha users :

https://github.com/hassio-addons/addon-nginx-proxy-manager

@alexandrecuer
Copy link
Contributor Author

@alexandrecuer alexandrecuer changed the title migrating to version alpine3.18_emoncms11.4.11 - possible issues migrating HA addon to version alpine3.18_emoncms11.4.11 - possible issues Feb 12, 2024
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

1 participant