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

Orchestration skips session creation without error output #127

Open
derschatta opened this issue Aug 12, 2019 · 8 comments
Open

Orchestration skips session creation without error output #127

derschatta opened this issue Aug 12, 2019 · 8 comments

Comments

@derschatta
Copy link

Hey,
I've tried to use the new orchestration feature without success.
I set up a basic mutagen.yml file:

sync:
  totara:
    alpha: "/path/to/my/local/src"
    beta: "docker://totara_sync/path/to/my/remote/src"
    ignore:
      vcs: true
      paths:
        - ".idea"
        - .DS_Store
    symlink:
      mode: ignore
    permissions:
      defaultFileMode: 0644
      defaultDirectoryMode: 0755

and tried starting the project from the folder where I've put the mutagen.yml file with mutagen project start

No error or success output. The session did not get started:

⇒  mutagen project list        
Forwarding sessions:
--------------------------------------------------------------------------------
No sessions found
--------------------------------------------------------------------------------

Synchronization sessions:
--------------------------------------------------------------------------------
No sessions found
--------------------------------------------------------------------------------

Sync list is empty too

⇒  mutagen sync list           
--------------------------------------------------------------------------------
No sessions found
--------------------------------------------------------------------------------

If I try starting it again I get

⇒  mutagen project start    
Error: project already running

So apparently something is running but no showing?

Happy to give you any more information you need.

Running MacOS 10.14.5, Docker 2.1.0.0

@xenoscopic
Copy link
Member

@derschatta Thanks for the report, that's an odd one. Are you able to create the equivalent synchronization session manually with mutagen sync create? That might give more information about any error that's occurring, but I'm surprised that it wasn't printed out by the mutagen project start command.

@xenoscopic xenoscopic self-assigned this Aug 12, 2019
@xenoscopic xenoscopic removed their assignment Aug 12, 2019
@xenoscopic xenoscopic changed the title Orchestration does not work Orchestration skips session creation without error output Aug 12, 2019
@derschatta
Copy link
Author

Yes I was able to create a sync session manually using the same mutagen.yml file without the 'alpha' and 'beta' specified in it.

@derschatta
Copy link
Author

No errors or any other indicators why it's not working with mutagen sync create

@xenoscopic
Copy link
Member

Yes I was able to create a sync session manually using the same mutagen.yml file without the 'alpha' and 'beta' specified in it.

Just to make sure we're on the same page, can you clarify what you mean by using the same mutagen.yml file without the alpha/beta keys. Do you mean that you used an equivalent YAML configuration file with session defaults, e.g. in ~/.mutagen.yml or with the -c/--configuration-file flag?

Does it work if you use mutagen project terminate and then run mutagen project start again? Or is it reproducible?

@derschatta
Copy link
Author

If I run mutagen sync create in the same folder as a mutagen.yml file containing the configuration the command uses that file automatically, right? That's what I did.

Same goes for project start. If I run mutagen project start it should use the mutagen.yml file in the folder I run the command in.

File for manual sync create I used:

sync:
  defaults:
    ignore:
      vcs: true
      paths:
        - ".idea"
        - .DS_Store
    symlink:
      mode: ignore
    permissions:
      defaultFileMode: 0644
      defaultDirectoryMode: 0755

compared to the one in the issue description I've tried for project start.

@derschatta
Copy link
Author

derschatta commented Aug 13, 2019

Does it work if you use mutagen project terminate and then run mutagen project start again? Or is it reproducible?

Yes, it is reproducable. running terminate and start does not change anything, project is still not started.

@xenoscopic
Copy link
Member

If I run mutagen sync create in the same folder as a mutagen.yml file containing the configuration the command uses that file automatically, right? That's what I did.

Not at the moment. This is my fault for not explaining this particularly well in the documentation. So the only configuration file that's pulled in by default is ~/.mutagen.yml. A mutagen.yml file in the current directory (even one with defaults specified) is only used by the mutagen project commands. This behavior probably ought to change. The idea with mutagen.yml files is that they're supposed to be self-contained descriptions of the configuration for a project, but it might make sense to pull defaults values out of them as well. Perhaps it would have been better to name these something like mutagen-project.yml. Because I can easily see how this is very unintuitive.

Same goes for project start. If I run mutagen project start it should use the mutagen.yml file in the folder I run the command in.

That's correct, mutagen project start will use these files.

Yes, it is reproducable. running terminate and start does not change anything, project is still not started.

It's strange that there's absolutely no output. I guess this'll need some debugging. If it's not too much trouble, can you tell me the following:

  • If you run mutagen project terminate, and then run mutagen project start, can you tell me the exit code for the latter command (i.e. $?)?
  • What does mutagen version print?
  • Does running mutagen daemon stop/mutagen daemon start (and then retrying mutagen project start) help?
  • What shell are you using?

@derschatta
Copy link
Author

Not at the moment. This is my fault for not explaining this particularly well in the documentation. So the only configuration file that's pulled in by default is ~/.mutagen.yml. A mutagen.yml file in the current directory (even one with defaults specified) is only used by the mutagen project commands. This behavior probably ought to change. The idea with mutagen.yml files is that they're supposed to be self-contained descriptions of the configuration for a project, but it might make sense to pull defaults values out of them as well. Perhaps it would have been better to name these something like mutagen-project.yml. Because I can easily see how this is very unintuitive.

Ok, well, I set it up using the -c param anyway.

If you run mutagen project terminate, and then run mutagen project start, can you tell me the exit code for the latter command (i.e. $?)?

code is 0.

What does mutagen version print?

0.10.0

Does running mutagen daemon stop/mutagen daemon start (and then retrying mutagen project start) help?

Nope.

What shell are you using?

ZSH

@xenoscopic xenoscopic added this to the v0.10.1 milestone Aug 22, 2019
@xenoscopic xenoscopic modified the milestones: v0.10.1, v0.10.2 Dec 4, 2019
@xenoscopic xenoscopic modified the milestones: v0.10.2, v0.10.3 Jan 21, 2020
@xenoscopic xenoscopic modified the milestones: v0.10.3, v0.12.x Jan 5, 2021
@xenoscopic xenoscopic modified the milestones: v0.12.x, Unplanned Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants