Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception, while dumping SQL on server side for FLOW only projects #34

Open
erickloss opened this issue Oct 10, 2024 · 1 comment
Open

Comments

@erickloss
Copy link

reproduce
connect to a server with a running flow application without Neos.

curl https://sandstorm.github.io/synco/serve | sh -s -

It seem's you exclude the table neos_media_domain_model_thumbnail which fails the command if this table does not exist.

Scenarios, where this is possible:

  • pure Flow Project without Neos
  • Neos Project without Media Module (if this is even possible)
  FATAL   could not create SQL dump: error registering database: Error 1146: Table 'neos.neos_media_domain_model_thumbnail' doesn't exist
panic:

goroutine 1 [running]:
github.com/pterm/pterm.checkFatal(...)
	github.com/pterm/[email protected]/prefix_printer.go:348
github.com/pterm/pterm.(*PrefixPrinter).Printfln(0xc90b20, {0x8e9dcc, 0x1d}, {0xc000155a18, 0x1, 0x1})
	github.com/pterm/[email protected]/prefix_printer.go:290 +0x1e5
github.com/sandstorm/synco/v2/pkg/common/commonServe.DatabaseDump(0xc00009e780, 0xc0000800f0, 0xc00017c5a0)
	github.com/sandstorm/synco/[email protected]/pkg/common/commonServe/databaseDump.go:32 +0x14c
github.com/sandstorm/synco/v2/pkg/frameworks/flowServe.flowServe.Serve({}, 0xc00009e780)
	github.com/sandstorm/synco/[email protected]/pkg/frameworks/flowServe/flowServe.go:159 +0x1c6
github.com/sandstorm/synco/v2/pkg/serve/cmd.init.func1(0xc0000c4200?, {0x8db693?, 0x4?, 0x8db697?})
	github.com/sandstorm/synco/[email protected]/pkg/serve/cmd/source-cmd.go:60 +0x44e
github.com/spf13/cobra.(*Command).execute(0xc927c0, {0xcf9c40, 0x0, 0x0})
	github.com/spf13/[email protected]/command.go:920 +0x867
github.com/spf13/cobra.(*Command).ExecuteC(0xc924e0)
	github.com/spf13/[email protected]/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/[email protected]/command.go:968
github.com/sandstorm/synco/v2/lite/cmd-lite.Execute()
	github.com/sandstorm/synco/[email protected]/lite/cmd-lite/root-lite.go:45 +0x48
main.main()
	github.com/sandstorm/synco/[email protected]/lite/main-lite.go:8 +0xf
@erickloss
Copy link
Author

running the command with the --all flag workarounds the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant