Scaffolder issues while creating document template
See original GitHub issueI cloned the project on the 01/31. While testing testing the templates, I got error on different stages of the creation process.
Using the default document-template, I got an error on the “Run the templater” stage.
error: Stage failed with error: ENOENT: no such file or directory, realpath '/tmp/b26c4b6a-b0f9-4391-91ee-dd93cc4add96/intermediate' {"id":"b26c4b6a-b0f9-4391-91ee-dd93cc4add96","stage":"Run the templater","timestamp":"2021-01-31T18:31:26.397Z"}
With my own document-template, I got an error on the “Prepare the Skeleton” stage.
error: Stage failed with error: EISDIR: illegal operation on a directory, unlink '/tmp/a683739f-864d-4b32-97fd-e15cea3c7849/checkout' {"id":"a683739f-864d-4b32-97fd-e15cea3c7849","stage":"Prepare the skeleton","timestamp":"2021-01-31T18:34:10.177Z"}
Expected Behavior
All the stages get completed successfully, the documents gets published and catalog entry gets created on Backstage
Current Behavior
The process fails on the “Run the templater” and “Prepare the Skeleton”
Possible Solution
Not solution, but workaround I went back to a previous clone of the project. bf2dda31b HEAD@{2021-01-21 13:38:04 +0000}: pull origin master: Fast-forward
Steps to Reproduce
Basically follow the getting started guide to run backstage locally. https://github.com/backstage/backstage/blob/master/docs/getting-started/running-backstage-locally.md
- git clone --depth 1 git@github.com:backstage/backstage.git
- cd backstage
- yarn install
- yarn tsc
- yarn build
- cd /opt/backstage/packages/backend
- yarn start
- cd /opt/backstage
- yarn start
- Access backstage console
- Go to “Create”, select “Documentation Template”
- Completed all the necessary information
- Create
Context
At the moment, I’m not able to create any template based on tech-docs I was trying to get the latest version of the project
I’m using the standard configuration for the scaffolder and techdocs
techdocs:
requestUrl: http://localhost:7000/api/techdocs
storageUrl: http://localhost:7000/api/techdocs/static/docs
builder: 'local' # Alternatives - 'external'
generators:
techdocs: 'docker' # Alternatives - 'local'
publisher:
type: 'local' # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives.
integrations:
github:
- host: github.com
token:
$env: GITHUB_TOKEN
processors:
githubOrg:
providers:
- target: https://github.com
token:
$env: GITHUB_TOKEN
scaffolder:
github:
token:
$env: GITHUB_TOKEN
visibility: public # or 'internal' or 'private'
I have tested the token and its working correctly.
Your Environment
- NodeJS Version (v12): v14.15.3
- Operating System and Version (e.g. Ubuntu 14.04): Linux backstage-dev 5.4.0-1034-azure #35~18.04.1-Ubuntu SMP Thu Dec 10 09:13:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Browser Information: Firefox 85.0 (64-bit)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)

Top Related StackOverflow Question
Think this is fixed after this got merged: https://github.com/backstage/backstage/pull/4516. Can we close this @biancoda?
Originally, I set up my templates location as a file
Working with @jhaals, we found that there is possibly a bug when you define the location as a file. I change it to use github as a source and all the templates started working again. So this could be used as a workaround.