Cannot connect to ledger server means that the JSON API failed to connect to the underlying ledger, e.g., DAML on SQL. Do you have a ledger running? If so double check that it’s running on port 6865. If you don’t have a ledger running, you can use sandbox for development which you can start using daml sandbox. You might also be interested in daml start which will automatically start Sandbox and the JSON API to provide you with an easy development setup.
It shows “ERROR: Shutting down because of an initialization error.
org.flywaydb.core.api.FlywayException: Found non-empty schema(s) “public” but no schema history table. Use baseline() or set baselineOnMigrate to true to initialize the schema history table.”
and it told me at the front-end “JsonError: Cannot resolve template ID, given: Temp…a3f7018cf68ba885f8be25f6080617b),Currency,Issuer)”.
All request failed at front-end.
Cannot resolve template ID usually means that the template you are referencing has not been uploaded to the ledger. There can be various reasons for that:
Simple typos if you constructed the template id yourself.
Forgetting to upload the package.
Making a change to the DAML model after uploading it and rebuilding it. In that case, your client code will reference the template in the updated DAR while the ledger only knows about the original template. You have to upload the new DAR/restart the ledger with the new DAR.
I’m not quite sure about the first error, let me get back to you.
Hi @Xuyx,
This error basically says that you are running daml sandbox with a database that was previously running daml sandbox-classic. You’ll need to start with a fresh DB schema.