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

Strange serving errors #47

Open
topofocus opened this issue Jan 23, 2021 · 5 comments
Open

Strange serving errors #47

topofocus opened this issue Jan 23, 2021 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@topofocus
Copy link

After cloning the project, I tried a local run.

iruby:~/j/dumb$ bundle exec jekyll serve
Configuration file: /home/ubuntu/j/dumb/_config.yml
            Source: /home/ubuntu/j/dumb
       Destination: /home/ubuntu/j/dumb/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
                    done in 0.803 seconds.
 Auto-regeneration: enabled for '/home/ubuntu/j/dumb'
    Server address: http://127.0.0.1:4000
  Server running... press ctrl-c to stop.
[2021-01-23 08:34:02] ERROR bad Request-Line `\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03\x1E�S�� �V\x03\x02J��JM\x1ASY.T���T��,���h� xh��VvR�������\x193��\ra�Ù��/[NE\x14|T\x00$\x13\x01\x13\x03\x13\x02�+�/̨̩�,�0�'.
[2021-01-23 08:34:02] ERROR bad Request-Line `\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03>k\x7F۰����ӌ��&#a��!z'.
[2021-01-23 08:34:02] ERROR bad Request-Line `\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03wv�\x01m��\x1A�/te:\x1F��\r�@�\x1E���\x13n�_�?�� �G<=�4�\x15'.

Every request of the browser pointing to the local port is producing at least one error.

This is strange

@tcbutler320 tcbutler320 self-assigned this Jan 23, 2021
@tcbutler320
Copy link
Owner

tcbutler320 commented Jan 23, 2021

This is very strange I haven't seen this before. I just cloned and ran the install and server and it works fine on my end. Two questions about your setup.

  1. Did you run bundle install in the project directory before starting the server?
  2. What is your environment & versions
  3. I see your using iruby which I've never personally tested with. Does the same error occur when using bash or zsh ?

@tcbutler320
Copy link
Owner

Also, I did some research on this. Can you confirm you are accessing the dev server at http and not being forced to https from your browser? See this related issue jekyll/jekyll#6507 (comment)

@topofocus
Copy link
Author

First of all, iruby is simply the name of the virtual machine. I have organized my tasks in lxd-containers, this one is called iruby.
Second, off cause did I bundle install

Using

firefox --version
Mozilla Firefox 66.0.3

just the standard case with adblocker. Did'nd find any control to force https.
The address accessed is 'localhost:4000', without https -prefix

Its reproducible and does not appear using other jekyll-implementions z.b. https://jekyllthemes.io/theme/feeling-responsive, which I used previously.

iruby:~/j/dumb$ bundle install
Using public_suffix 4.0.6
Using addressable 2.7.0
Using latex-decode 0.3.2
Using bibtex-ruby 5.1.6
Using bundler 2.0.2
Using namae 1.0.2
Using citeproc 1.0.10
Using csl 1.5.2
Using citeproc-ruby 1.1.13
Using colorator 1.1.0
Using concurrent-ruby 1.1.8
Using csl-styles 1.0.1.10
Using eventmachine 1.2.7
Using http_parser.rb 0.6.0
Using em-websocket 0.5.2
Using ffi 1.14.2
Using forwardable-extended 2.6.0
Using i18n 1.8.7
Using sassc 2.4.0
Using jekyll-sass-converter 2.1.0
Using rb-fsevent 0.10.4
Using rb-inotify 0.10.1
Using listen 3.4.1
Using jekyll-watch 2.2.1
Using rexml 3.2.4
Using kramdown 2.3.0
Using kramdown-parser-gfm 1.1.0
Using liquid 4.0.3
Using mercenary 0.4.0
Using pathutil 0.16.2
Using rouge 3.26.0
Using safe_yaml 1.0.5
Using unicode-display_width 1.7.0
Using terminal-table 2.0.0
Using jekyll 4.2.0
Using jekyll-environment-variables 1.0.1
Using jekyll-feed 0.15.1
Using jekyll-scholar 6.8.0
Bundle complete! 4 Gemfile dependencies, 38 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
(base) iruby:~/j/dumb$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
(base) iruby:~/j/dumb$ bundle exec jekyll serve --trace
Configuration file: /home/ubuntu/j/dumb/_config.yml
            Source: /home/ubuntu/j/dumb
       Destination: /home/ubuntu/j/dumb/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
       Jekyll Feed: Generating feed for posts
                    done in 0.961 seconds.
 Auto-regeneration: enabled for '/home/ubuntu/j/dumb'
    Server address: http://127.0.0.1:4000
  Server running... press ctrl-c to stop.
[2021-01-24 03:43:09] ERROR bad Request-Line `\x16\x03\x01\x02\x00\x01\x00\x01�\x03\x03!�C��;��",({�lk\f~W�\e\x17�Y�]��\x0F~CV6 {\bK'.
[2021-01-24 03:43:09] ERROR bad URI `\x18��+���tR����\x7Fb��\x16t�P�ɨ�_Z\x18\x0Eį�\x00$\x13\x01\x13\x03\x13\x02�+�/̨̩�,�0�'.

@tcbutler320
Copy link
Owner

I haven't personally tested this with linux containers but not sure what exactly in this theme would cause an issue when running the dev server through a container rather then directly on the host terminal. I'll do some testing with lxd-containers and get back to you.

I did notice your Firefox version is severely out of date, I would try to launch the server on an up-to date version of firefox as well as other browsers. I've tested on firefox 84.0.0 + and Chrome 87.0 +. Additionally you mention adblockers, try disabling them and see what the result is.

@tcbutler320
Copy link
Owner

I have organized my tasks in lxd-containers

What is the lxd-container environment that is being used ? I will need this to replicate the issue as running the dev server through a host terminal does not cause trigger the error

@tcbutler320 tcbutler320 added the bug Something isn't working label Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants