Cannot find module (NONE): At line 21 in (none)

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Cannot find module (NONE): At line 21 in (none)

Post by GlueGuy »

First, the good news. Cacti seems to be running. Apache is running. MySQL is running. The poller is running every 5 minutes, and graphs are happening.

However, when the poller runs (every 5 minutes), several windows pop up all displaying 1 to many instances of the phrase:
Cannot find module (NONE): At line 21 in (none)
What the heck is this, and is there a way to stop it?
---------
The Glue Guy
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Install the patches for cacti like the install guide you were suppose to follow states.
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Post by GlueGuy »

That only solves part of the problem.

The errors aren't getting reported any more, but all the stupid shell windows still pop up. Very irritating.
---------
The Glue Guy
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Those pop up windows are happening because you created the scheduled task for cacti which uses the same user account you're logging onto the server with. Change usernames and they'll go away.
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Post by GlueGuy »

Well, a new day, and a new problem.

First, the good news.

Patches installed w/o error.

PHP Poller is running under the SYSTEM account, and the extra cmd windows have gone away into the Windows ether.

However, when I click on Graphs, or View from the main page, Cacti goes to graph_view.php and displays a blank page.

No errors appear in any of the log files, and Apache gives a 200 code when it retrieves the page.

I rebooted the system, thinking that perhaps there was some sort of caching problem, but no soap. Why would this page display as blank?
---------
The Glue Guy
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Possibly because of the user account apache is running under. Another possibliy is a permission problem on php.exe, rrdtool.exe, or cmd.exe.
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Post by GlueGuy »

Right on.

I D/L'd the patches under my ID (which is an Administrator account). When the patches ran, they altered ownership on all the patched files to my ID. All the other files are owned by "Administrators", presumably meaning any administrator. Giving ownership back to the generic setting works much better.

There is no plain "adminstrator" account on this machine.

Is there a general recommendation for this? I would tend to do everything under my regular account ID.
---------
The Glue Guy
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well as the patching instructions stated in my guide.... one should double check the file/folder security after patching for the reason you found out. If you 'copy' a file to the cacti folder, it should inherit the NTFS security set by the folder (or higher folders). If you 'cut' and 'paste' then the file will retain the NTFS security settings from wherever the file was first downloaded (probably your administrator desktop for example).
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Post by GlueGuy »

Naw. I just ran the wget followed by the patch, just like the instructions said:
Installation Instructions

Execute the following commands to install all of these patches against Cacti version 0.8.6g. Be sure that you are in your Cacti directory when you execute these commands.

Code: Select all

wget http://www.cacti.net/downloads/patches/0.8.6g/short_open_tag_parse_error.patch
wget http://www.cacti.net/downloads/patches/0.8.6g/graph_properties_zoom.patch
wget http://www.cacti.net/downloads/patches/0.8.6g/script_server_snmp_auth.patch
wget http://www.cacti.net/downloads/patches/0.8.6g/mib_file_loading.patch
patch -p1 -N < short_open_tag_parse_error.patch
patch -p1 -N < graph_properties_zoom.patch
patch -p1 -N < script_server_snmp_auth.patch
patch -p1 -N < mib_file_loading.patch
I bet these problems keep popping up over and over and over.
---------
The Glue Guy
kpudsteve
Posts: 7
Joined: Wed Nov 09, 2005 3:56 pm

Post by kpudsteve »

I have searching everywhere. How do you patch in windows? I have downloaded the patches manually, but for the life of me, cannot figure out how to apply them.

Thanks.
User avatar
joed
Posts: 29
Joined: Mon Sep 19, 2005 6:27 am
Location: Germany/Palatinate

Post by joed »

Look at http://bsod2600.home.comcast.net/install_windows.html

;-)

Apply Patches

1. There are two methods of applying patches to Cacti:
1. If you have Cygwin installed, then the patch instructions which use wget and patch, will work.
2. The other method requires you to visit http://www.cacti.net/downloads/patches/<cacti version>/pre-patched/ and manually download and replace the patched files.
2. You might need to reapply file/folder security on the files patched. Double check they are correct.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests