mesage "cannot ceate hardlink" when uploading var directory

Author Message

Vytautas Germanavičius

Wednesday 20 July 2005 6:45:47 am

I made website with EZ on my computer (debian).
When i uploading images from var/storege of this site using ftp to server i alway get message "cannot ceate hardlink".

What is reason of this?

{set-block scope=root variable=cache_ttl}0{/set-block}

Łukasz Serwatka

Tuesday 02 August 2005 11:42:52 pm

Hi,

There are two types of links in Unix: hard and symbolic.

A hard link is a file that is, for all intents and purposes, the file to which it is linked. The difference between a hardlink and the linked file is one of placement in the filesystem. Editing the hardlink edits the linked file. One limitation of hard links is that linked files cannot reside on different filesystems. This means that if /var and /home are two different mount points in /etc/fstab (or /etc/vfstab), then a file in /var/tmp cannot be hardlinked with a file in /home

These issues are not specific to eZ publish, but rather to the workings of a Unix system and FTP server configuration.

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

Luc Chase

Wednesday 03 August 2005 12:51:56 am

Vytis,
might you be trying to upload to the wrong var directory??

The Web Application Service Provider

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 05:53:25
Script start
Timing: Jan 20 2025 05:53:25
Module start 'layout'
Timing: Jan 20 2025 05:53:25
Module start 'content'
Timing: Jan 20 2025 05:53:25
Module end 'content'
Timing: Jan 20 2025 05:53:25
Script end

Main resources:

Total runtime0.0256 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.6094152.6563
Module start 'layout' 0.00580.0033 742.265639.4922
Module start 'content' 0.00910.0144 781.757889.4297
Module end 'content' 0.02350.0020 871.187534.3047
Script end 0.0255  905.4922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.1821140.0002
Check MTime0.00135.0895140.0001
Mysql Total
Database connection0.00062.455710.0006
Mysqli_queries0.003112.306430.0010
Looping result0.00000.038210.0000
Template Total0.00166.310.0016
Template load0.00083.191310.0008
Template processing0.00083.070110.0008
Override
Cache load0.00062.158310.0006
General
dbfile0.004718.495180.0006
String conversion0.00000.030840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs