Open radaniba opened 1 year ago
I investigated a bit further and managed to make it work by separating the folders for app and database in the volumes, so to realize that it is a new fresh mysql container that I have and it is not pointing to my old data.
I tried naively to copy the mysql folder on my host to the new mount point but I got this error
2023-04-18 5:41:08 185 [Warning] Access denied for user 'npm'@'172.25.0.3' (using password: YES)
I think the host changed from 172.25.0.3 to 172.25.0.2 and somehow it is still stored in the database tables (which ones I am not sure) so I have issues in the connections.
Do you guys have any ideas how I can safely restore my data stored in /data/compose/1/npm-data/mysql/
?
Ok some updates on this in case you need similar solutions.
I was able to restore my data and proxies by following recommendation on other issues, and by changing permission level on the db image to mysql
This gave me access to all my proxies.
The problem that remains now is that I am not able to create new proxies anymore, especially when I ask for SSL certicates, I got internal problem
issue that I am investigating now, any help would be welcome
[Express ] › ⚠ warning Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-21" --agree-tos --authenticator webroot --email "xxx@xxx.com" --preferred-challenges "dns,http" --domains "domain.name.masked"
Issue is now considered stale. If you want to keep it open, please comment :+1:
Hi everyone I am using npm deployed through a portainer stack. Everything worked fine until I had to upgrade my server for more resources. On stack restarts, i lost connection to npm and it didn't want to start over. I rebuilt the stack hoping to still have access to my data. The stack went up, docker images started fine, but when I login to my admin I have the "bad gateway" error message in the login screen I checked the logs for the db and I have these messages
my docker compose is classic
I am thinking maybe because of the restart, something went wrong with the db .
On the app side log I have some permission denied errors
Any idea on how to save my admin session without losing data ?
Thanks