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

Buster fails to generate assets (js/css) with urls containing query parameters #88

Open
evil-shrike opened this issue Nov 3, 2016 · 2 comments

Comments

@evil-shrike
Copy link

Hi.
I don't know how Ghost worked 2 years ago when Buster was created but currently with Ghost v0.11 it has a major issue - it doesn't generate assets (/assets folder), i.e. js/css.

Below you can find the whole log of running buster generator against a Ghost blog with a single post.

As you can see Buster failed to generate all js/css, for example:
Cannot write to ‘/mnt/c/Work/Personal/ghost-0.11.2/static/assets/js/index.js?v=148306daff’ (No such file or directory).

A workaround is to manually copy files from /content/themes/caster/assets into /static/assets.

Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4705 (4.6K) [text/html]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/index.html’

100%[===================================================================================>] 4,705       --.-K/s   in 0s

2016-11-03 02:46:16 (62.3 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/index.html’ saved [4705/4705]

Loading robots.txt; please ignore errors.
--2016-11-03 02:46:16--  http://localhost:2368/robots.txt
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 75 [text/plain]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/robots.txt’

100%[===================================================================================>] 75          --.-K/s   in 0s

2016-11-03 02:46:16 (1.43 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/robots.txt’ saved [75/75]

--2016-11-03 02:46:16--  http://localhost:2368/favicon.ico
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 1086 (1.1K) [image/x-icon]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/favicon.ico’

100%[===================================================================================>] 1,086       --.-K/s   in 0s

2016-11-03 02:46:16 (23.5 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/favicon.ico’ saved [1086/1086]

--2016-11-03 02:46:16--  http://localhost:2368/assets/css/screen.css?v=148306daff
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 46422 (45K) [text/css]
/mnt/c/Work/Personal/ghost-0.11.2/static/assets/css/screen.css?v=148306daff: No such file or directory

Cannot write to ‘/mnt/c/Work/Personal/ghost-0.11.2/static/assets/css/screen.css?v=148306daff’ (No such file or directory).
--2016-11-03 02:46:16--  http://localhost:2368/rss/
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1220 (1.2K) [text/xml]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/rss/index.html’

100%[===================================================================================>] 1,220       --.-K/s   in 0s

2016-11-03 02:46:16 (23.3 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/rss/index.html’ saved [1220/1220]

--2016-11-03 02:46:16--  http://localhost:2368/welcome-to-ghost/
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 6848 (6.7K) [text/html]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/index.html’

100%[===================================================================================>] 6,848       --.-K/s   in 0s

2016-11-03 02:46:16 (99.0 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/index.html’ saved [6848/6848]

--2016-11-03 02:46:16--  http://localhost:2368/author/sergei/
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 4762 (4.7K) [text/html]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/author/sergei/index.html’

100%[===================================================================================>] 4,762       --.-K/s   in 0s

2016-11-03 02:46:16 (84.1 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/author/sergei/index.html’ saved [4762/4762]

--2016-11-03 02:46:16--  http://localhost:2368/tag/getting-started/
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 4622 (4.5K) [text/html]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/tag/getting-started/index.html’

100%[===================================================================================>] 4,622       --.-K/s   in 0s

2016-11-03 02:46:16 (91.8 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/tag/getting-started/index.html’ saved [4622/4622]

--2016-11-03 02:46:16--  http://localhost:2368/assets/js/jquery.fitvids.js?v=148306daff
Reusing existing connection to localhost:2368.
HTTP request sent, awaiting response... 200 OK
Length: 2698 (2.6K) [application/javascript]
/mnt/c/Work/Personal/ghost-0.11.2/static/assets/js/jquery.fitvids.js?v=148306daff: No such file or directory

Cannot write to ‘/mnt/c/Work/Personal/ghost-0.11.2/static/assets/js/jquery.fitvids.js?v=148306daff’ (No such file or directory).
--2016-11-03 02:46:16--  http://localhost:2368/assets/js/index.js?v=148306daff
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1705 (1.7K) [application/javascript]
/mnt/c/Work/Personal/ghost-0.11.2/static/assets/js/index.js?v=148306daff: No such file or directory

Cannot write to ‘/mnt/c/Work/Personal/ghost-0.11.2/static/assets/js/index.js?v=148306daff’ (No such file or directory).
--2016-11-03 02:46:16--  http://localhost:2368/welcome-to-ghost/amp/
Connecting to localhost (localhost)|127.0.0.1|:2368... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23546 (23K) [text/html]
Saving to: ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/amp/index.html’

100%[===================================================================================>] 23,546      --.-K/s   in 0s

2016-11-03 02:46:16 (62.4 MB/s) - ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/amp/index.html’ saved [23546/23546]

FINISHED --2016-11-03 02:46:16--
Total wall clock time: 0.5s
Downloaded: 8 files, 46K in 0.001s (60.1 MB/s)
Converting /mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/index.html... Unable to delete ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/index.html’: Input/output error
Converting /mnt/c/Work/Personal/ghost-0.11.2/static/index.html... Unable to delete ‘/mnt/c/Work/Personal/ghost-0.11.2/static/index.html’: Input/output error
Converting /mnt/c/Work/Personal/ghost-0.11.2/static/tag/getting-started/index.html... Unable to delete ‘/mnt/c/Work/Personal/ghost-0.11.2/static/tag/getting-started/index.html’: Input/output error
Converting /mnt/c/Work/Personal/ghost-0.11.2/static/author/sergei/index.html... Unable to delete ‘/mnt/c/Work/Personal/ghost-0.11.2/static/author/sergei/index.html’: Input/output error
Converting /mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/amp/index.html... Unable to delete ‘/mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/amp/index.html’: Input/output error
Converted 5 files in 0.008 seconds.
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/index.html
        # => #
        # => #
        #content => #content
        /welcome-to-ghost/ => /welcome-to-ghost/
        /welcome-to-ghost/ => /welcome-to-ghost/
        /author/sergei/ => /author/sergei/
        /tag/getting-started/ => /tag/getting-started/
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/author/sergei/index.html
        # => #
        # => #
        /welcome-to-ghost/ => /welcome-to-ghost/
        /welcome-to-ghost/ => /welcome-to-ghost/
        /author/sergei/ => /author/sergei/
        /tag/getting-started/ => /tag/getting-started/
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/rss/index.rss
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/tag/getting-started/index.html
        # => #
        # => #
        /welcome-to-ghost/ => /welcome-to-ghost/
        /welcome-to-ghost/ => /welcome-to-ghost/
        /author/sergei/ => /author/sergei/
        /tag/getting-started/ => /tag/getting-started/
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/index.html
        # => #
        # => #
        /tag/getting-started/ => /tag/getting-started/
        /author/sergei/ => /author/sergei/
        /author/sergei/ => /author/sergei/
        /author/sergei/ => /author/sergei/
fixing links in  /mnt/c/Work/Personal/ghost-0.11.2/static/welcome-to-ghost/amp/index.html
        /author/sergei/ => /author/sergei/
@evil-shrike evil-shrike changed the title Buster fails to generate assets (js/css) with url container query parameters Buster fails to generate assets (js/css) with urls containing query parameters Nov 3, 2016
@jjcollinge
Copy link

@evil-shrike I'm having the same issue - did you manage to resolve?

@evil-shrike
Copy link
Author

@jjcollinge as I remember, no, I gave up

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

2 participants