• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

midori cant connect to localhost

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 6 Posters 10.2k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    d-sanchez
    last edited by Feb 10, 2017, 6:16 AM

    Did you figure out this error? I’m having the same problem

    1 Reply Last reply Reply Quote 0
    • O Offline
      ottobot
      last edited by Feb 11, 2017, 4:54 AM

      Honestly, I didn’t. I spent a few days off and on trying to get things going, finally I reached out to someone on the forum that had a working image and used that. I have a few more zero’s floating around though and I’m planning on trying again from scratch this weekend.

      1 Reply Last reply Reply Quote 0
      • B Offline
        bbdv
        last edited by Mar 18, 2017, 5:37 PM

        Hi Guy’s, I’m having the same issue here, stuck on midori telling me connection refused…

        Im working on a pi zero w with jessie lite

        R 1 Reply Last reply May 29, 2017, 6:23 PM Reply Quote 0
        • R Offline
          RV @bbdv
          last edited by May 29, 2017, 6:23 PM

          @bbdv @ottobot @d-sanchez i hope one of you, has found a solution for this problem?!

          i have the same

          1 Reply Last reply Reply Quote 0
          • B Offline
            bbdv
            last edited by Aug 29, 2017, 8:20 PM

            I have managed to get it working by adjusting the start up script in the etc/init.d/ directory:

            Instead of:
            cd ~/MagicMirror

            I changed it to :
            cd /home/pi/MagicMirror

            Worked great for over 2 week… until I updated MagicMirror, the same error returned…
            (Connection refused)

            M 1 Reply Last reply May 15, 2018, 4:26 PM Reply Quote 0
            • B Offline
              bbdv
              last edited by Aug 29, 2017, 10:36 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • B Offline
                bbdv
                last edited by Aug 29, 2017, 10:39 PM

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • B Offline
                  bbdv
                  last edited by bbdv Aug 29, 2017, 10:44 PM Aug 29, 2017, 10:43 PM

                  Got it back to work by starting all over.

                  Here are my* notes/steps:
                  *)I have gathered all these steps from all the contributers on this site.

                  Start with a fresh Jessie lite image…

                  sudo apt-get update
                  sudo wget http://node-arm.herokuapp.com/node_latest_armhf.deb
                  sudo dpkg -i node_latest_armhf.deb
                  sudo apt-get install npm
                  sudo apt-get install git
                  cd /home/pi/
                  git clone https://github.com/MichMich/MagicMirror
                  cd MagicMirror
                  sudo npm install (This will take 30+ minutes)
                  sudo apt-get install midori
                  sudo apt-get install unclutter
                  sudo aptitude install xinit
                  sudo apt-get install matchbox
                  sudo nano /etc/init.d/startMagicMirror.sh

                  #!/bin/bash
                  ### BEGIN INIT INFO
                  # Provides:          startMagicMirror.sh
                  # Short-Description: startMM
                  # Description:       starts MM
                  ### END INIT INFO
                  cd /home/pi/MagicMirror
                  node serveronly &
                  sleep 20
                  

                  sudo xinit /home/pi/startMidori.sh
                  sudo chmod a+x /etc/init.d/startMagicMirror.sh
                  sudo update-rc.d startMagicMirror.sh defaults 100
                  sudo apt-get install x11-xserver-utils
                  sudo nano /home/pi/startMidori.sh

                  #!/bin/sh
                  xset -dpms # disable DPMS (Energy Star) features.
                  xset s off # disable screen saver
                  xset s noblank # don’t blank the video device
                  matchbox-window-manager &
                  unclutter &
                  midori -e Fullscreen -a http://localhost:8080
                  

                  sudo chmod a+x /home/pi/startMidori.sh
                  sudo reboot

                  J 1 Reply Last reply May 11, 2018, 5:24 AM Reply Quote 1
                  • J Offline
                    janth @bbdv
                    last edited by May 11, 2018, 5:24 AM

                    @bbdv did you use Jessie or Stretch for that?

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      meyraa @bbdv
                      last edited by May 15, 2018, 4:26 PM

                      @bbdv I had the same problem. Midori has problems with ES6 and the arrow functions. I just deinstalled Midori and installed chromium-browser.

                      You can rewrite the startMidori.sh

                      #!/bin/sh
                      unclutter &
                      xset -dpms # disable DPMS (Energy Star) features.
                      xset s off # disable screen saver
                      xset s noblank # don’t blank the video device
                      chromium-browser --no-sandbox --disable-infobars --start-maximized --noerrdialogs --kiosk --incognito http://localhost:8080
                      

                      If you want you can rename startMidori.sh to startChromium.sh, but don’t forget to rename it in the startMagicMirror.sh too.

                      My startMagicMirror.sh looks like this:

                      #! /bin/bash
                      cd ~/MagicMirror
                      node serveronly &
                      sleep 45
                      sudo xinit /home/pi/startMidori.sh
                      
                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy