Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dr Kim Foale
    @kimadactyl
    This message was deleted
    kim@chips:~/git/taichi/taichi_rails$ cat /etc/nsswitch.conf 
    # /etc/nsswitch.conf
    #
    # Example configuration of GNU Name Service Switch functionality.
    # If you have the `glibc-doc-reference' and `info' packages installed, try:
    # `info libc "Name Service Switch"' for information about this file.
    
    passwd:         compat
    group:          compat
    shadow:         compat
    
    hosts:          files mdns4_minimal [NOTFOUND=return] dns [SUCCESS=continue] [SUCCESS=continue] resolver
    networks:       files
    
    protocols:      db files
    services:       db files
    ethers:         db files
    rpc:            db files
    
    netgroup:       nis
    Everton Ribeiro
    @nuxlli
    ual
    remove one "[SUCCESS=continue]"
    Dr Kim Foale
    @kimadactyl
    ah ok ran your command twice by accident :smile:
    have a ping again
    Everton Ribeiro
    @nuxlli
    nice
    Dr Kim Foale
    @kimadactyl
    ooo
    "no application configured"
    Everton Ribeiro
    @nuxlli
    nice!
    Dr Kim Foale
    @kimadactyl
    https://taichi-school.dev.azk.io/ unable to connect then
    dev.azk.io giving no application
    Everton Ribeiro
    @nuxlli
    now you can try start your application with azk start
    Dr Kim Foale
    @kimadactyl
    it is started, restart?
    Everton Ribeiro
    @nuxlli
    yes
    cd [app_dir] && azk restart
    Dr Kim Foale
    @kimadactyl
    hmm did azk agent stop && azk start and its not working
    ping to dev.azk.io working, browser not willing to connect
    Everton Ribeiro
    @nuxlli
    you can send me the output?
    Dr Kim Foale
    @kimadactyl
    ping to taichi-school.dev.azk.io working too
    the output of what?
    Everton Ribeiro
    @nuxlli
    for "azk agent stop && azk start" process
    Dr Kim Foale
    @kimadactyl
    kim@chips:~/git/taichi/taichi_rails$ azk agent stop && azk start
    azk: Agent is running...
    azk: Agent is being stopped...
    azk: Agent has been successfully stopped.
    ? The agent is not running, would you like to start it? Yes
    azk: Please wait, this process may take several minutes
    azk: Loading settings and checking dependencies.
    azk: Checking version...
    azk: azk 0.17.0 detected
    azk: Cleaning 2 lost containers
    azk: Settings loaded successfully.
    azk: Agent is being started...
    azk: Trying to connect to docker (unix:///var/run/docker.sock) (timeout: 20s)...
    azk: Starting azk dns service...
    azk: Dns service started.
    azk: Trying to connect to docker (unix:///var/run/docker.sock) (timeout: 20s)...
    azk: Starting azk balancer redirect service...
    azk: Check if balancer redirect service is up (tcp://172.18.0.1:80) (timeout: 10000s)...
    azk: Balancer redirect started.
    azk: Starting memcached service...
    azk: Memcached service started.
    azk: Starting http balancer service...
    azk: Http balancer service started.
    azk: Agent has been successfully started.
    azk: ↑ starting `postgres` system, 1 new instances...
    azk: ✓ checking `azukiapp/postgres:9.4` image...
    azk: ◴ waiting for `postgres` system to start, trying connection to port data/tcp...
    azk: ↑ starting `taichi-school` system, 1 new instances...
    azk: ✓ checking `azukiapp/ruby:2.3.0` image...
    azk: ⎘ syncing files for `taichi-school` system...
    azk: ◴ waiting for `taichi-school` system to start, trying connection to port http/tcp...
    
    ┌───┬───────────────┬───────────┬─────────────────────────────────┬─────────────────┬─────────────┐
    │   │ System        │ Instances │ Hostname/url                    │ Instances-Ports │ Provisioned │
    ├───┼───────────────┼───────────┼─────────────────────────────────┼─────────────────┼─────────────┤
    │ ↑ │ postgres      │ 1         │ dev.azk.io                      │ 1-data:32776    │ -           │
    ├───┼───────────────┼───────────┼─────────────────────────────────┼─────────────────┼─────────────┤
    │ ↑ │ taichi-school │ 1http://taichi-school.dev.azk.io │ 1-http:32777    │ 3 hours ago │
    └───┴───────────────┴───────────┴─────────────────────────────────┴─────────────────┴─────────────┘
    kim@chips:~/git/taichi/taichi_rails$
    wow this thing formats tables properly? :sparkles:
    Everton Ribeiro
    @nuxlli
    Dr Kim Foale
    @kimadactyl
    "This site can’t provide a secure connection"
    http redirects to https
    Everton Ribeiro
    @nuxlli
    the ask does not yet support https, your application for this redirecting https
    Dr Kim Foale
    @kimadactyl
    yes its redirecting weird
    Everton Ribeiro
    @nuxlli
    try
    Dr Kim Foale
    @kimadactyl
    An error occurred during a connection to taichi-school.dev.azk.io:32777. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
    Everton Ribeiro
    @nuxlli
    curl -I http://taichi-school.dev.azk.io
    Dr Kim Foale
    @kimadactyl
    kim@chips:~/git/taichi/taichi_rails$ curl -I http://taichi-school.dev.azk.io
    HTTP/1.1 301 Moved Permanently
    content-type: text/html
    location: https://taichi-school.dev.azk.io/
    connection: close
    content-length: 0
    Date: Fri, 25 Mar 2016 19:43:22 GMT
    Everton Ribeiro
    @nuxlli
    this apps is rails app?
    Dr Kim Foale
    @kimadactyl
    yes. im using a spree, an ecommerce app on it though. maybe thats doing something? hmmmm
    i have the custom database.yml running so cant easily check hmm
    Everton Ribeiro
    @nuxlli
    try this:
    # ../config/initilizers/spree.rb
    Spree.config do |config|
      config.allow_ssl_in_production = false #This line
    end
    after this, restart app: azk restart
    Dr Kim Foale
    @kimadactyl
    full response, kinda long sorry
    kim@chips:~/git/taichi/taichi_rails$ azk restart
    azk: ↓ stopping `taichi-school` system, 1 instances...
    azk: ↓ stopping `postgres` system, 1 instances...
    azk: ↑ starting `taichi-school` system, 1 new instances...
    azk: ↑ starting `postgres` system, 1 new instances...
    azk: ✓ checking `azukiapp/ruby:2.3.0` image...
    azk: ◴ waiting for `postgres` system to start, trying connection to port data/tcp...
    azk: ⎘ syncing files for `taichi-school` system...
    azk: ◴ waiting for `taichi-school` system to start, trying connection to port http/tcp...
    azk: An error occurred. It will stop all instances already running. See details below.
    
    azk: ↓ stopping `postgres` system, 1 instances...
    azk: System `taichi-school` not running
    azk: Run system `taichi-school` return: (1), for command: ["bundle","exec","rails","server","--pid","/tmp/rails.pid","--port=3000","--binding=0.0.0.0"]:
    azk:  .taichi-school [log] >  => Booting Puma
    azk:  .taichi-school [log] >  => Rails 4.2.6 application starting in production on http://0.0.0.0:3000
    azk:  .taichi-school [log] >  => Run `rails server -h` for more startup options
    azk:  .taichi-school [log] >  => Ctrl-C to shutdown server
    azk:  .taichi-school [log] >    Spree::Preference Load (0.5ms)  SELECT  "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1  ORDER BY "spree_preferences"."id" ASC LIMIT 1  [["key", "spree/app_configuration/layout"]]
    azk:  .taichi-school [log] >     (0.2ms)  BEGIN
    azk:  .taichi-school [log] >    Spree::Preference Exists (0.4ms)  SELECT  1 AS one FROM "spree_preferences" WHERE ("spree_preferences"."key" = 'spree/app_configuration/layout' AND "spree_preferences"."id" != 2) LIMIT 1
    azk:  .taichi-school [log] >     (0.1ms)  COMMIT
    azk:  .taichi-school [log] >    Spree::Preference Load (0.2ms)  SELECT  "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1  ORDER BY "spree_preferences"."id" ASC LIMIT 1  [["key", "spree/app_configuration/track_inventory_levels"]]
    azk:  .taichi-school [log] >     (0.1ms)  BEGIN
    azk:  .taichi-school [log] >    Spree::Preference Exists (0.3ms)  SELECT  1 AS one FROM "spree_preferences" WHERE ("spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' AND "spree_preferences"."id" != 3) LIMIT 1
    azk:  .taichi-school [log] >     (0.1ms)  COMMIT
    azk:  .taichi-school [log] >    Spree::Preference Load (0.2ms)  SELECT  "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1  ORDER BY "spree_preferences"."id" ASC LIMIT 1  [["key", "spree/app_configuration/address_requires_state"]]
    azk:  .taichi-school [log] >     (0.1ms)  BEGIN
    azk:  .taichi-school [log] >    Spree::Preference Exists (0.2ms)  SELECT  1 AS one FROM "spree_preferences" WHERE ("spree_preferences"."key" = 'spree/app_configuration/address_requires_state' AND "spree_preferences"."id" != 4) LIMIT 1
    azk:  .taichi-school [log] >     (0.1ms)  COMMIT
    azk:  .taichi-school [log] >    Spree::Preference Load (0.2ms)  SELECT  "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = $1  ORDER BY "spree_preferences"."id" ASC LIMIT 1  [["key", "spree/app_configuration/allow_guest_checkout"]]
    azk:  .taichi-school [log] >     (0.1ms)  BEGIN
    azk:  .taichi-school [log] >    Spree::Preference Exists (0.2ms)  SELECT  1 AS one FROM "spree_preferences" WHERE ("spree_preferences"."key" = 'spree/app_configuration/allow_guest_checkout' AND "spree_preferences"."id" != 5) LIMIT 1
    azk:  .taichi-school [log] >     (0.1ms)  COMMIT
    azk:  .taichi-school [log] >  Exiting
    azk:  .taichi-school [log] >  /azk/bundler/ruby/2.3.0/bundler/gems/spree-f1b3b8a85275/core/app/models/spree/preferences/configuration.rb:66:in `method_missing': undefined method `allow_ssl_in_production=' for #<Spree::AppConfiguration:0x0055dac058b948> (NoMethodError)
    azk:  .taichi-school [log] >      from /azk/taichi_rails/config/initializers/spree.rb:22:in `block in <top (required)>'
    azk:  .taichi-school [log] >      from /azk/bundler/ruby/2.3.0/bundler/gems/spree-f1b3b8a85275/core/lib/spree/core.rb:45:in `config'
    azk:  .taichi-school [log
    oh it truncated it np. guessing the problem is with with the command
    Everton Ribeiro
    @nuxlli
    search for "config.force_ssl" in "./config" config files
    grep "config.force_ssl" -R ./config
    Dr Kim Foale
    @kimadactyl
    ahha. caught it in config/environemnts/production.rb
    same error
    Everton Ribeiro
    @nuxlli
    what, you removed this?
    # ../config/initilizers/spree.rb
    Spree.config do |config|
      config.allow_ssl_in_production = false #This line
    end
    Dr Kim Foale
    @kimadactyl
    there was nothing there before and i added that line
    i changed config.force_ssl = false in config/environments/production.rb