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

[Bug Report] develop missing configLocation (error writing configuration) #4908

Closed
feederbox826 opened this issue Jun 3, 2024 · 1 comment · Fixed by #4909
Closed

[Bug Report] develop missing configLocation (error writing configuration) #4908

feederbox826 opened this issue Jun 3, 2024 · 1 comment · Fixed by #4909
Labels
bug report Bug reports that are not yet verified

Comments

@feederbox826
Copy link
Contributor

Describe the bug
The current development branch docker image (9a7f83056a1085e0a5143ad150832ae54062dbfa27518bec27633b363e7c178c) fails during setup

To Reproduce
Steps to reproduce the behavior:

  1. Delete config folder
  2. walk through /setup wizard

Issue and fixes

in develop, the configLocation variable in the mutation Setup GQL query is not initialized correctly

For comparison, here are the configLocation variable values in the mutationSetup calls, everything else is identical and works perfectly fine, will include it below to be complete

development v0.25.1
/root/.stash $PWD /root/.stash $PWD
"" "config.yml" "/root.stash/config.yml" "config.yml"
ENOENT ENOENT

When initialized "properly" with /root/.stash/config.yml results are as-expected

Appendix

[1] mutation Setup (latest, /root/.stash)

{
  "operationName": "Setup",
  "variables": {
    "input": {
      "configLocation": "/root/.stash/config.yml",
      "databaseFile": "",
      "generatedLocation": "",
      "cacheLocation": "",
      "storeBlobsInDatabase": false,
      "blobsLocation": "",
      "stashes": [
        {
          "path": "/media/stash",
          "excludeVideo": false,
          "excludeImage": false
        }
      ]
    }
  },
  "query": "mutation Setup($input: SetupInput!) {\n  setup(input: $input)\n}"
}
@feederbox826 feederbox826 added the bug report Bug reports that are not yet verified label Jun 3, 2024
@WithoutPants WithoutPants added this to the Version 0.26.0 milestone Jun 3, 2024
@feederbox826
Copy link
Contributor Author

Confirming that the fix worked, it no longer prompts for location and creates the default config successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug reports that are not yet verified
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants