asciidoc render run command asciidoc [--out-file=- -] failed #5209

Closed
opened 2025-11-02 06:17:58 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @qiuzhiqian on GitHub (Apr 8, 2020).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

2020/04/08 17:46:21 ...external/external.go:101:Render() [E] asciidoc render run command asciidoc [--out-file=- -] failed: exit status 1

Description

i set asciidoc in app.ini.but render has error.i have install asciidoc in my ubuntu server.

[markup.asciidoc]
ENABLED = true
; List of file extensions that should be rendered by an external command
FILE_EXTENSIONS = .adoc,.asciidoc
; External command to render all matching extensions
RENDER_COMMAND = "asciidoc --out-file=- -"
; Don't pass the file on STDIN, pass the filename as argument instead.
IS_INPUT_FILE = false

...

Screenshots

2020-04-08_17-54

2020-04-08_17-55

Originally created by @qiuzhiqian on GitHub (Apr 8, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: 2020/04/08 17:46:21 ...external/external.go:101:Render() [E] asciidoc render run command asciidoc [--out-file=- -] failed: exit status 1 ## Description i set asciidoc in app.ini.but render has error.i have install asciidoc in my ubuntu server. ``` [markup.asciidoc] ENABLED = true ; List of file extensions that should be rendered by an external command FILE_EXTENSIONS = .adoc,.asciidoc ; External command to render all matching extensions RENDER_COMMAND = "asciidoc --out-file=- -" ; Don't pass the file on STDIN, pass the filename as argument instead. IS_INPUT_FILE = false ``` ... ## Screenshots ![2020-04-08_17-54](https://user-images.githubusercontent.com/19386888/78771289-84fcd580-79c2-11ea-8ec2-ac8451dd7ec6.png) ![2020-04-08_17-55](https://user-images.githubusercontent.com/19386888/78771304-8c23e380-79c2-11ea-9140-76ae95f6f02b.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the issue/needs-feedback label 2025-11-02 06:17:58 -06:00
Author
Owner

@guillep2k commented on GitHub (Apr 9, 2020):

Try using asciidoc's full path (e.g. /usr/bin/asciidoc or /usr/local/bin/asciidoc, etc.). Check your asciidoc actual path with type:

$ type asciidoc
asciidoc is /usr/bin/asciidoc
@guillep2k commented on GitHub (Apr 9, 2020): Try using `asciidoc`'s full path (e.g. `/usr/bin/asciidoc` or `/usr/local/bin/asciidoc`, etc.). Check your asciidoc actual path with `type`: ``` $ type asciidoc asciidoc is /usr/bin/asciidoc ```
Author
Owner

@lunny commented on GitHub (Apr 9, 2020):

You may also needs to configure the [markup.sanitizer], see https://docs.gitea.io/en-us/config-cheat-sheet/#markup-markup

@lunny commented on GitHub (Apr 9, 2020): You may also needs to configure the `[markup.sanitizer]`, see https://docs.gitea.io/en-us/config-cheat-sheet/#markup-markup
Author
Owner

@qiuzhiqian commented on GitHub (Apr 9, 2020):

Try using asciidoc's full path (e.g. /usr/bin/asciidoc or /usr/local/bin/asciidoc, etc.). Check your asciidoc actual path with type:

$ type asciidoc
asciidoc is /usr/bin/asciidoc

this file render well by my vscode.but can not render in my gitea.
now i try a very simple asciidoc file in my gitea repository, it seem work ok
2020-04-09_10-41

@qiuzhiqian commented on GitHub (Apr 9, 2020): > Try using `asciidoc`'s full path (e.g. `/usr/bin/asciidoc` or `/usr/local/bin/asciidoc`, etc.). Check your asciidoc actual path with `type`: > > ``` > $ type asciidoc > asciidoc is /usr/bin/asciidoc > ``` this file render well by my vscode.but can not render in my gitea. now i try a very simple asciidoc file in my gitea repository, it seem work ok ![2020-04-09_10-41](https://user-images.githubusercontent.com/19386888/78852450-eb2f3a00-7a4e-11ea-8aa6-0c93abd53b68.png)
Author
Owner

@qiuzhiqian commented on GitHub (Apr 9, 2020):

You may also needs to configure the [markup.sanitizer], see https://docs.gitea.io/en-us/config-cheat-sheet/#markup-markup

i have try sanitizer config.but render faild too.

@qiuzhiqian commented on GitHub (Apr 9, 2020): > You may also needs to configure the `[markup.sanitizer]`, see https://docs.gitea.io/en-us/config-cheat-sheet/#markup-markup i have try sanitizer config.but render faild too.
Author
Owner

@qiuzhiqian commented on GitHub (Apr 9, 2020):

i solve this problem.This problem is due to a wrong syntax highlighting in my asciidoc file.

I mistyped

[source,bash]
....
$ git init
....

into

[source.bash]
....
$ git init
....

thank your.

@qiuzhiqian commented on GitHub (Apr 9, 2020): i solve this problem.This problem is due to a wrong syntax highlighting in my asciidoc file. I mistyped ``` [source,bash] .... $ git init .... ``` into ``` [source.bash] .... $ git init .... ``` thank your.
Author
Owner

@qiuzhiqian commented on GitHub (Apr 9, 2020):

Since my vscode preview is ok, I failed to find this problem.

@qiuzhiqian commented on GitHub (Apr 9, 2020): Since my vscode preview is ok, I failed to find this problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5209