Cannot Create Migration
See original GitHub issueVersions:
-
Hasura GraphQL version: v1.0.0-beta.2 using docker
-
CLI Version: v1.0.0-beta.2
-
OS Windwos 10
Steps to reproduce:
-
Set console to
false
-
Launch console with
hasura.exe console
worked and no errors or warning found. -
I’ve migrated several times before, using CLI with the command
hasura.exe migrate create "migrate_name" --from-server
and generated both.yaml
and.sql
file. -
I’ve tried migration again after some addition and changes it’s getting failed with reason:
cannot fetch schema dump: invalid character '<' looking for beginning of value
with the result only generated .yaml
file. I don’t know what changes have caused this situation because there are too many additions and changes made and so far no errors have been found when the client making the request (query
, mutation
even sub
). So I assume it’s work perfectly.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
I cannot create migrations in ASP.NET Core. What is the ...
I want to create a table to create the migrations and connect with SQL Server 2014. But when I run add-migrations AddMusicStoreToDb.
Read more >Error while Add-Migration "Initialize" in .NET 6 Entity Framework
While running Add-Migration needs to select the proper library containing dbcontext class for entity framework. 175769-ef-error.jpg. 0 Votes 0 ·.
Read more >Error running Entity Framework 6 code first migration commands
In VS2017, when I try and run Entity Framework (6) code first commands such as update-database or add-migration, I get the following error:...
Read more >Unable to start Plesk migration: bin/mkdir: cannot create ...
Plesk Migrator could not create required directory on the source server because migration was started not under root user. Resolution. Start a ...
Read more >Migrations and Seed Data With Entity Framework Core
Your browser can't play this video. ... The migration process has two steps: Creating migration and Applying migration. As we already said, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I solved this issue by running migration on the remote server and exclude
caddy
fromdocker-compose.yaml
. We running Hasura on an existing database with a monolith architecture, we have like 80+ tables and thousands of data. When I run a manual migration, It’s like take sometimes thatCaddy
rules cannot handle that (timeout or something).This is my
docker-compose
based on Hasura doc in previous version:So, I updated with
v1.0.0-beta.4
and realized that in Install Manifest there is noCaddy
anymoreGlad to see that this issue is resolved. I’m closing it 🙂