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

BUG: Having a heck of a time Installing #131

Closed
JeremyGarrard opened this issue Jan 28, 2023 · 10 comments
Closed

BUG: Having a heck of a time Installing #131

JeremyGarrard opened this issue Jan 28, 2023 · 10 comments

Comments

@JeremyGarrard
Copy link

Describe the Bug

Is this an issue with the CLI or GUI?

Is this something that should be put in the Wiki?

A clear and concise description of what the bug is.
I've been trying to install for a while now and I don't know what's wrong! I am able to get into the GUI but I'm met with 'Unable to retrieve active modules' every time. I have installed the new version, made sure my ipwhitelist is an empty array, downloaded the module, etc etc.

Sorry for being a pest but I could really use a hand! This module is just so cool!

thank you for any help

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System, Python3 Version, and Web Browser
(Please complete the following information)

  • output from cat /etc/os-release

  • output from python3 --version

  • Web Browser (firefox, chrome, safari, chromium, etc)

MMPM Environment Settings

  • output from mmpm env

MMPM Log Files

  • Attach the file produced Download MMPM log files within the Control Center of the GUI or from the mmpm log --zip

MagicMirror Config

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 28, 2023

you've run mmpm install --as-module, correct? If so, did you add the mmpm module to your config.js?

Also, what does the output of mmpm env display? All the information requested in the bug report template is needed to diagnose the issue.

@JeremyGarrard
Copy link
Author

yes I ran that- see below for the config section where I added it as a module - is it right?

	{
		module: "newsfeed",
		position: "bottom_bar",
		config: {
			feeds: [
    {
      title: "New York Times",
      url: "https://www.nytimes.com/services/xml/rss/nyt/HomePage.xml",
    },
    {
      title: "BBC",
      url: "http://feeds.bbci.co.uk/news/world/europe/rss.xml",
    },
    {
      title: "Washington Post",
      url: "https://feeds.washingtonpost.com/rss/politics?itid=lk_inline_manual_2",
    },
    {
      title: "Wall Street Journal",
      url: "https://feeds.a.dj.com/rss/RSSMarketsMain.xml",
    },
  ],
			showSourceTitle: true,
			showPublishDate: true,
			broadcastNewsFeeds: true,
			broadcastNewsUpdates: true
		}
	},
	{ module: "mmpm" },
	  {
module: 'MMM-nyc-transit',

also for mmpm env it gives me this:

pi@raspberrypi:~ $ mmpm env
{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://127.0.1.1:8080",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": ".",
"MMPM_IS_DOCKER_IMAGE": false
}

Run mmpm open --env to edit the variable values

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 28, 2023

The MMPM_MAGICMIRROR_URI is not correct. The instructions here detail how to set this up properly.

https://github.com/Bee-Mar/mmpm/wiki/Status,-Hide,-Show-MagicMirror-Modules

@JeremyGarrard
Copy link
Author

Ok thank you! Got that fixed but still getting the message on the GUI. Here's my ENV:
{
"MMPM_MAGICMIRROR_ROOT": "/home/pi/MagicMirror",
"MMPM_MAGICMIRROR_URI": "http://192.168.1.179",
"MMPM_MAGICMIRROR_PM2_PROCESS_NAME": "",
"MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE": ".",
"MMPM_IS_DOCKER_IMAGE": false
}

And I attached another log
mmpm-logs-2023-1-28.zip

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 28, 2023

if you run mmpm mm-ctl --status does anything display on your terminal?

@JeremyGarrard
Copy link
Author

pi@raspberrypi:~ $ mmpm open --gui
pi@raspberrypi:~ $ mmpm mm-ctl --status

  • Sending request to MagicMirror for active modules ERROR: Failed to connect to MagicMirror, closing socket. Is MagicMirror running?

Is MagicMirror running, and are MMPM env variables set properly? If MagicMirror is a Docker image, open MagicMirror in your browser to activate the connection.
10 second timeout reached, closing connection.

@Bee-Mar
Copy link
Owner

Bee-Mar commented Jan 29, 2023

Something I just noticed...You have "." as the value for MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE, that should just be an empty string "" if you aren't using docker-compose.

Aside from that, I'm fairly certain the address you have for MMPM_MAGICMIRROR_URI is still not correct. The IP address is probably fine, but unless MagicMirror changed something recently, you should append the port number to the address (which is most likely 8080, so the address should probably be "http://192.168.1.179:8080")

@Bee-Mar
Copy link
Owner

Bee-Mar commented Mar 4, 2023

@JeremyGarrard any update on this?

@dahenson54
Copy link

@Bee-Mar I followed your steps here to add the mmpm module to config.js because I had not added that (maybe I missed it in the install process?). When I now run mmpm mm-ctl --status I get this response back:
`+ Sending request to MagicMirror for active modules ✓
alert
hidden: false
key: 1

updatenotification
hidden: false
key: 2

clock
hidden: false
key: 3

calendar
hidden: false
key: 4

compliments
hidden: false
key: 5

weather
hidden: false
key: 6

weather
hidden: false
key: 7

newsfeed
hidden: false
key: 8
`
I still have the "Unable to retrieve modules" error in the GUI.

I didn't want to open yet another issue ticket for the same issue.

mmpm-logs-2023-3-15.zip

@Bee-Mar
Copy link
Owner

Bee-Mar commented Dec 18, 2023

@dahenson54 @JeremyGarrard version 4.0.0 has been released. This is a complete rework of the application with improvements and stability all-around. Please see How to Migrate to 4.x.x as well the rest of the pages in the Wiki

@Bee-Mar Bee-Mar closed this as completed Dec 18, 2023
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

3 participants