Forums / Install & configuration / Site package selection: "invalid package"

Site package selection: "invalid package"

Author Message

Emmanuel Dreyfus

Monday 15 May 2006 1:54:36 am

Hello

I'm trying to install ezPublish using the setup wizard. At the site package selection stage, the wizard asks me "Please choose a site package you would like to test or base your site on." and gives me a list of site packages: plain site, news site, blog site, etc...

When a choose a package and click next, the wizard complain: "Error Invalid package Remote repository URL: http://packages.ez.no/ezpublish/3.8"

Any hint? What am I doing wrong?

Ɓukasz Serwatka

Monday 15 May 2006 11:06:46 pm

Most probably that setup wizard can not connect to the external repository. You can download packages from ez.no and install them manually.
http://ez.no/download/ez_publish/ez_publish_3_stable_releases/3_8/packages

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Emmanuel Dreyfus

Tuesday 16 May 2006 4:58:55 am

I downloaded http://packages.ez.no/ezpublish/3.8/plain_site.ezpkg
saved it in the packages directory, but it does not change anything.

Am I saving it in the wrong place? Should I extract something?

christian stampf

Saturday 20 May 2006 8:53:20 pm

i am experiencing the same problems on my linux box with php 4.4.2. any idea yet on how to get around it? thanks!

Kristof Coomans

Tuesday 23 May 2006 12:08:37 am

Does your webserver have write permissions on var/storage/packages?

The packages downloaded by the setup wizard are stored there. Maybe you can extract them manually too.

Create this directory structure:
var/storage/packages/ez_systems/[packagename]

And unpack the package content in it.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Emmanuel Dreyfus

Tuesday 23 May 2006 12:37:52 am

Yes the web server has write access to the var/storage/packages/ez_systems/ directory

If I try to unpack the package manually in var/storage/packages/ez_systems/plain_site when I go back to the wizzard and select plain site, I get the same error, and the wizzard removed the var/storage/packages/ez_systems/plain_site directory and replaced it by an empty directory

If I remove the write privilege to the files after manually unpacking them, the wizzard will not remove them, but it will still fail to pass the site selection stage.(same error: invalid package)

Emmanuel Dreyfus

Tuesday 23 May 2006 2:02:53 am

More debuging, and the explanation!

I have this in the logs:

[ May 23 2006 09:39:40 ] [x.x.x.x] eZTARArchiveHandler:
Unable to create directory './var/storage/packages/ez_systems/plain_site/files/'
[ May 23 2006 09:39:40 ] [x.x.x.x] eZTARArchiveHandler:
Unable to create path for ./var/storage/packages/ez_systems/plain_site/files/
[ May 23 2006 09:39:40 ] [x.x.x.x] :
Failed loading imported package plain_site from var/storage/packages/ez_systems

And running a kernel trace shows this system call failure before the log messages are created:
25141 httpd CALL access(0x8cc340c,0)
25141 httpd NAMI "./var/storage/packages/ez_systems/plain_site/files/"
25141 httpd RET access -1 errno 2 No such file or directory
25141 httpd CALL __stat13(0x8d8120c,0x48523c5c)
25141 httpd NAMI "./var/storage/packages/ez_systems/plain_site/files/"
25141 httpd RET __stat13 -1 errno 2 No such file or directory
25141 httpd CALL __stat13(0x8d3090c,0x48523c5c)
25141 httpd NAMI "./var/storage/packages/ez_systems/plain_site"
25141 httpd RET __stat13 0
25141 httpd CALL mkdir(0x8d8108c,0x1ff)
25141 httpd NAMI "./var/storage/packages/ez_systems/plain_site/files/"
25141 httpd RET mkdir -1 errno 2 No such file or directory

The rights seems fine, though:
#ls -ld var
drwxr-xr-x 5 www wheel 512 May 12 11:00 var/
#ls -ld var/storage
drwxr-xr-x 3 www wheel 512 May 12 15:25 var/storage/
#ls -ld var/storage//packages
drwxrwxrwx 3 www wheel 512 May 12 15:25 var/storage/packages/
#ls -ld var/storage/packages/ez_systems
drwxrwxrwx 3 www wheel 512 May 23 09:30 var/storage/packages/ez_systems/
#ls -ld var/storage/packages/ez_systems/plain_site
drwxrwxrwx 2 www wheel 512 May 23 09:39 var/storage/packages/ez_systems/plain_site/

Running a little test, it seems the trailing slash is the problem: Here is a small C program
#include <stdio.h>
#include <sys/stat.h>

int main(void) {
int error;

error = mkdir("/tmp/test", 0x1ff);
printf("mkdir(\"/tmp/test\", 0x1ff) returns %d\n", error);

error = mkdir("/tmp/test2/", 0x1ff);
printf("mkdir(\"/tmp/test2/\", 0x1ff) returns %d\n", error);

return 0;
}

If I run it on my system (NetBSD 1.6.2):
mkdir("/tmp/test", 0x1ff) returns 0
mkdir("/tmp/test2/", 0x1ff) returns -1

This is a kernel bug. It has been fixed in more recent releases of NetBSD (2.x and 3.x). A fix in ezPublish would not harm, though. At least you need a check to tell the user to upgrade his kernel.

Andy Chauhan

Tuesday 18 August 2009 8:07:23 pm

I have tried everything recommended by Kristof, but still I have the same error.

eZ debug

Timing: Jan 18 2025 10:32:02
Script start
Timing: Jan 18 2025 10:32:02
Module start 'content'
Timing: Jan 18 2025 10:32:03
Module end 'content'
Timing: Jan 18 2025 10:32:03
Script end

Main resources:

Total runtime1.4074 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 591.5000180.8203
Module start 'content' 0.00671.2175 772.3203731.8281
Module end 'content' 1.22420.1831 1,504.1484340.4219
Script end 1.4073  1,844.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.2984210.0002
Check MTime0.00150.1088210.0001
Mysql Total
Database connection0.00110.074910.0011
Mysqli_queries1.292391.82272150.0060
Looping result0.00300.21222130.0000
Template Total1.372897.520.6864
Template load0.00220.156020.0011
Template processing1.370697.383320.6853
Template load and register function0.00030.018810.0003
states
state_id_array0.00270.194110.0027
state_identifier_array0.00090.061320.0004
Override
Cache load0.00250.1769790.0000
Sytem overhead
Fetch class attribute can translate value0.00210.146360.0003
Fetch class attribute name0.00970.6893110.0009
XML
Image XML parsing0.00680.480860.0011
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00410.2909410.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs