After a lot of tries i give up to update my self-hosted appsmith from 1.8.15 to 1.9.x. Also a fresh installation with ubuntu 22.04 (server - minimal installation) was not successfull with 1.9.x. The struggle is always with the mongodb. Appsmith hangs in a booting-loop for both methods (update&fresh installation)
I listen the knowledge item with update from 1.8.15 to 1.9.2 first, but with no success. then i access into the docker container and update mongodb to 5.4, but the booting-loop still persist.
The OS was ubuntu 22.04 lts server with minimal setup and the latest updates.
Here the last error log from the fresh installation:
when i downgrade back to a 1.8.x version, appsmith is running fine.
This is the error message with the updated version:
backend stdout | [2023-02-08 18:00:19,281] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mongockInitializingBeanRunner’ defined in class path resource [com/appsmith/server/configurations/MongoConfig.class]: Invocation of init method failed; nested exception is com.github.cloudyrock.mongock.exception.MongockException: com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:27017}, caused by {java.net.ConnectException: Connection refused}}]
Ok, thank you. The mongodb in my setup was inside the container, delivered with the deployment from docker-compose.
After i went back to 1.8.15, i upgrade direkt to 1.9.2 with this config line in my docker-compose.yml image: index.docker.io/appsmith/appsmith-ce:v1.9.2
I was able to fix the issue with updating to 1.9.x.
The problem was that I am running my esxi witch evc in a lower cpu mode that my actually cpu can running. after I change the evc mode to “sandy bridge”, the upgrade to 1.9.2 is working and after to 1.9.7.
its nessesary that your cpu support avx. on ubuntu, you can check avx with the following command:
grep flags -m1 /proc/cpuinfo | grep avx