Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

[Info] Error "Error! Cannot get module data" or "Cannot connect to the database host" is shown in Wizard when open module page on site

Article ID: 6195 
Last Review: Oct,21 2009
Author: Bezborodova Anastasiya
Last updated by: Bezborodova Anastasiya APPLIES TO:
  • Sitebuilder 4.x for Linux/Unix

Symptoms

I get the following error when open module page (eShop, Image Gallery, etc) in Sitebuilder Wizard {Sitebuilder -> Sites -> <site alias> -> Open Site In Wizard -> Edit -> eShop}:

 Cannot connect to the database host.

or

Error! Cannot get module data.

What these error mean?

Cause

For published site when you open module pages in for site Wizard Sitebuilder works with publishing server where the site is published.
Via HTTP requests it queries and updates SQLite database that contains modules data

These errors are caused by inability to work with the database. The problem may be caused by 1) incorrect permissions for the database file or 2) Apache module that limit communication.

1) To fix the first problem verify the file has correct permissions, it should be 777 and owned by Apache user.
The SQLite database file is located on the publishing server in directory <Working directory>/data/storage. Login to FTP location where the site is published to, verify and correct permissions. They should be:

ftp> ls data/storage
200 PORT command successful
150 Opening ASCII mode data connection for file list
drwxrwsrwx   3 user  group       45 Mar 16 18:04 .
drwxrwsr-x   5 user  group       45 Nov 29 09:51 ..
drwxrwsrwx   2 user  group        6 Nov 29 09:51 attachments
-rwxrwxrwx   1 user  group     8192 Feb 10 18:19 sb_modules.php
226 Transfer complete
ftp>

Where user:group is user and group of Apache web server in this directory (Apache works in the directory with privileges of user:group). <Working directory> is site's publishing directory.

Also you may login, check and correct via SSH.

2) Apache modules mod_security or mod_security2 may cause the problem.
Currently it is recommended to disable the modules. For details refer to this article: http://kb.parallels.com/en/5429.

Additional information

Also the errors may be caused by corruption of SQLite database file. See this article for details.


Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac
- Parallels Desktop 4 for Windows & Linux
- Parallels Workstation Extreme
- Parallels Solution for Windows 7
Server Virtualization
- Parallels Server for Mac
- Parallels Server 4 Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
More Products