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

when starting kibana with --dev option it doesnt use server.host setting #7709

Closed
ppisljar opened this issue Jul 11, 2016 · 4 comments
Closed
Labels
bug Fixes for quality problems that affect the customer experience

Comments

@ppisljar
Copy link
Member

ppisljar commented Jul 11, 2016

Kibana version: 5.0alpha

Server OS version: linux ubuntu 16.04 64bit

Browser version: /

Browser OS version: /

Original install method (e.g. download page, yum, from source, etc.): from source

Description of the problem including expected versus actual behavior:

when starting kibana with -dev option `bin/kibana --dev' it doesnt bind to the ip address specified in the config file

Steps to reproduce:

  1. update kibana.dev.yml with
    server.host: "0.0.0.0"

  2. start kibana with ---dev option
    bin/kibana --dev

    3.kibana will not bind to 0.0.0.0

Provide logs and/or server output (if relevant):

when starting without --dev option:

~/elastic/kibana_fork$ bin/kibana 
  log   [15:45:48.489] [info][optimize] Optimizing and caching bundles for console, kibana, sense-tests and status_page. This may take a few minutes
  log   [15:47:09.113] [info][optimize] Optimization of bundles for console, kibana, sense-tests and status_page complete in 80.62 seconds
  log   [15:47:09.146] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.179] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [15:47:09.200] [error][elasticsearch] Request error, retrying
HEAD http://localhost:9200/ => connect ECONNREFUSED 127.0.0.1:9200
  log   [15:47:09.203] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.207] [warning][elasticsearch] Unable to revive connection: http://localhost:9200/
  log   [15:47:09.207] [warning][elasticsearch] No living connections
  log   [15:47:09.210] [error][status][plugin:[email protected]] Status changed from yellow to red - Unable to connect to Elasticsearch at http://localhost:9200.
  log   [15:47:09.211] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.213] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.215] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.218] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.220] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.224] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.233] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.235] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [15:47:09.238] [info][listening] Server running at http://0.0.0.0:5601

when starting with --dev option:

~/elastic/kibana_fork$ bin/kibana --dev 
 watching for changes  (235 files)
  log   [15:45:35.488] [info][listening] basePath Proxy running at https://localhost:5601/aje
server    log   [15:45:37.576] [info][optimize] Waiting for optimizer completion
optmzr    log   [15:45:37.591] [info][optimize] Lazy optimization of bundles for console, kibana, sense-tests and status_page ready
optmzr    log   [15:45:37.612] [info][optimize] Lazy optimization started
optmzr    log   [15:45:37.634] [info] Plugin initialization disabled.
server    log   [15:45:37.660] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.695] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
server    log   [15:45:37.717] [error][elasticsearch] Request error, retrying
HEAD http://localhost:9200/ => connect ECONNREFUSED 127.0.0.1:9200
server    log   [15:45:37.721] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.733] [warning][elasticsearch] Unable to revive connection: http://localhost:9200/
server    log   [15:45:37.734] [warning][elasticsearch] No living connections
server    log   [15:45:37.742] [error][status][plugin:[email protected]] Status changed from yellow to red - Unable to connect to Elasticsearch at http://localhost:9200.
server    log   [15:45:37.744] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.747] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.753] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.757] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.760] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.763] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.769] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.779] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.784] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
server    log   [15:45:37.790] [info][listening] Server running at https://localhost:5603

@ppisljar ppisljar added bug Fixes for quality problems that affect the customer experience P1 labels Jul 11, 2016
@tsullivan
Copy link
Member

I wonder if this has to do with HTTPS. Is it possible to connect to an HTTPS URL using just an IP address? My understanding is the server.host setting should match the domain name bound in the SSL certificate.

My understanding is based on my experience creating a custom certificate for running in dev mode, in order to connect to my local Kibana server via https://tsullivan.local:5601

@ppisljar
Copy link
Member Author

ppisljar commented Jul 11, 2016

yes, it has to do with https

src/cli/serve.js:

if (opts.dev) {
    set('env', 'development');
    set('optimize.lazy', true);
    if (opts.ssl && !has('server.ssl.cert') && !has('server.ssl.key')) {
      set('server.host', 'localhost');
      set('server.ssl.cert', fromRoot('test/dev_certs/server.crt'));
      set('server.ssl.key', fromRoot('test/dev_certs/server.key'));
    }
  }

so i guess this is expected behaviour.

@LeeDr LeeDr added P2 and removed P1 labels Sep 16, 2016
@LeeDr
Copy link

LeeDr commented Sep 16, 2016

Lowering to P2 since this is a dev problem and wouldn't (I think) impact production users.

@epixa epixa removed the P2 label Apr 25, 2017
@timroes
Copy link
Contributor

timroes commented Aug 13, 2018

I think this is no longer true. I use this in my configuration to access from VMs, etc and it works without issues.

@timroes timroes closed this as completed Aug 13, 2018
cee-chen added a commit that referenced this issue May 3, 2024
`v94.1.0-backport.0` ⏩ `v94.2.1-backport.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

##
[`v94.2.1-backport.0`](https://github.com/elastic/eui/releases/v94.2.1-backport.0)

**This is a backport release only intended for use by Kibana.**

- Reverted the `EuiFlexGroup`/`EuiFlexItem` `component` prop feature due
to Kibana typing issues

## [`v94.2.1`](https://github.com/elastic/eui/releases/v94.2.1)

**Bug fixes**

- Fixed an `EuiTabbedContent` edge case bug that occurred when updated
with a completely different set of `tabs`
([#7713](elastic/eui#7713))
- Fixed the `@storybook/test` dependency to be listed in
`devDependencies` and not `dependencies`
([#7719](elastic/eui#7719))

## [`v94.2.0`](https://github.com/elastic/eui/releases/v94.2.0)

- Updated `getDefaultEuiMarkdownPlugins()` to allow excluding the
following plugins in addition to `tooltip`:
([#7676](elastic/eui#7676))
  - `checkbox`
  - `linkValidator`
  - `lineBreaks`
  - `emoji`
- Updated `EuiSelectable`'s `isPreFiltered` prop to allow passing a
configuration object, which allows disabling search highlighting in
addition to search filtering
([#7683](elastic/eui#7683))
- Updated `EuiFlexGroup` and `EuiFlexItem` prop types to support passing
any valid React component type to the `component` prop and ensure proper
type checking of the extra props forwarded to the `component`.
([#7688](elastic/eui#7688))
- Updated `EuiSearchBar` to allow the `@` special character in query
string searches ([#7702](elastic/eui#7702))
- Added a new, optional `optionMatcher` prop to `EuiSelectable` and
`EuiComboBox` allowing passing a custom option matcher function to these
components and controlling option filtering for given search string
([#7709](elastic/eui#7709))

**Bug fixes**

- Fixed an `EuiPageTemplate` bug where prop updates would not cascade
down to child sections
([#7648](elastic/eui#7648))
- To cascade props down to the sidebar, `EuiPageTemplate` now explicitly
requires using the `EuiPageTemplate.Sidebar` rather than
`EuiPageSidebar`
- Fixed `EuiFieldNumber`'s typing to accept an icon configuration shape
([#7666](elastic/eui#7666))
- Fixed `EuiFieldText` and `EuiFieldNumber` to render the correct
paddings for icon shapes set to `side: 'right'`
([#7666](elastic/eui#7666))
- Fixed `EuiFieldText` and `EuiFieldNumber` to fully ignore
`icon`/`prepend`/`append` when `controlOnly` is set to true
([#7666](elastic/eui#7666))
- Fixed `EuiColorPicker`'s input not setting the correct right padding
for the number of icons displayed
([#7666](elastic/eui#7666))
- Visual fixes for `EuiRange`s with `showInput`:
([#7678](elastic/eui#7678))
  - Longer `append`/`prepend` labels no longer cause a background bug
  - Inputs can no longer overwhelm the actual range in width
- Fixed a visual text alignment regression in `EuiTableRowCell`s with
the `row` header scope
([#7681](elastic/eui#7681))
- Fixed `toolTipProps` type on `EuiSuperUpdateButton` to use
`Partial<EuiToolTipProps>`
([#7692](elastic/eui#7692))
- Fixes missing prop type for `popperProps` on `EuiDatePicker`
([#7694](elastic/eui#7694))
- Fixed a focus bug with `EuiDataGrid`s with `leadingControlColumns`
when moving columns to the left/right
([#7701](elastic/eui#7701))
([#7698](elastic/eui#7698))
- Fixed `EuiSuperDatePicker` to validate date string with respect of
locale on `EuiAbsoluteTab`.
([#7705](elastic/eui#7705))
- Fixed a visual bug with `EuiSuperDatePicker`'s absolute tab on small
mobile screens ([#7708](elastic/eui#7708))
- Fixed i18n of empty and loading state messages for the
`FieldValueSelectionFilter` component
([#7718](elastic/eui#7718))

**Dependency updates**

- Updated `@hello-pangea/dnd` to v16.6.0
([#7599](elastic/eui#7599))
- Updated `remark-rehype` to v8.1.0
([#7601](elastic/eui#7601))

**Accessibility**

- Improved `EuiBasicTable` and `EuiInMemoryTable`'s selection checkboxes
to have unique aria-labels per row
([#7672](elastic/eui#7672))
- Added `aria-valuetext` attributes to `EuiRange`s with tick labels for
improved screen reader UX
([#7675](elastic/eui#7675))
- Updated `EuiAccordion` to keep focus on accordion trigger instead of
moving to content on click/keypress
([#7696](elastic/eui#7696))
- Added `aria-disabled` attribute to `EuiHorizontalSteps` when status is
"disabled" ([#7699](elastic/eui#7699))

---------

Co-authored-by: Tomasz Kajtoch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience
Projects
None yet
Development

No branches or pull requests

5 participants