google-marketing-solutions/crmint

CRMint deployment not working

vinscse opened this issue · 3 comments

I had deployed CRMint last week. It was working fine last week, however this week when I opened the CRMint application it shows me an error "there is error after loading data".

I tried to redeploy CRMint, however the deployment (crmit cloud deploy) throws an error as below:

return _ConnectionFairy._checkout(self)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 773, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 492, in checkout
rec = pool._do_get()
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/impl.py", line 238, in _do_get
return self._create_connection()
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 308, in _create_connection
return _ConnectionRecord(self)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 437, in init
self.__connect(first_connect_check=True)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 657, in __connect
pool.logger.debug("Error on connect(): %s", e)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/util/langhelpers.py", line 69, in exit
exc_value, with_traceback=exc_tb,
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/pool/base.py", line 652, in __connect
connection = pool._invoke_creator(self)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/engine/strategies.py", line 114, in connect
return dialect.connect(*cargs, **cparams)
File "/tmp/analytics-db-v1/backends/lib/sqlalchemy/engine/default.py", line 490, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/tmp/analytics-db-v1/backends/lib/MySQLdb/init.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/tmp/analytics-db-v1/backends/lib/MySQLdb/connections.py", line 193, in init
super(Connection, self).init(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (_mysql_exceptions.OperationalError) (2002, "Can't connect to local MySQL server through socket '/tmp/cloudsql/analytics-db-v1:europe-west1:crmintapp' (2)")
(Background on this error at: http://sqlalche.me/e/e3q8)

Command: . env/bin/activate && python -m flask db upgrade
---> Sowing DB seeds
---> Stop CloudSQL proxy
Done.

Hi @Slony : I had seen your comments in a similar thread #119

Can you please help.

I could complete the re deployment of crmint by granting 777 to /tmp/cloudsql
However I still get the below error. Any pointers please??

image

We are closing this issue since the new release of CRMint 2.0 should fix this issue, please see the details in the mentioned above.