Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196469 - app-admin/webapp-config is trying to hard-link across filesystems
Summary: app-admin/webapp-config is trying to hard-link across filesystems
Status: RESOLVED DUPLICATE of bug 231482
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-19 22:14 UTC by Maurice Volaski
Modified: 2014-01-07 02:03 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Volaski 2007-10-19 22:14:40 UTC
I'm using webapp-config (1.50.16-r1) to install phpmyadmin as follows

webapp-config -V -I -h localhost -d phpmyadmin phpmyadmin 2.11.1.2

And it seems to start OK, but fails on most files due "Invalid cross-device link" errors. Here's the beginning of the log:

* All config file checks successfully passed
* Do we have phpmyadmin-2.11.1.2 available?
*   Yes, we do
* Install directory is: /var/www/localhost/htdocs/phpmyadmin
* Is there already a package installed in /var/www/localhost/htdocs/phpmyadmin?
* No, there isn't.  I can install into there safely.
* Installing phpmyadmin-2.11.1.2...
*   Creating required directories
*   Linking in required files
*     This can take several minutes for larger apps
*     Installing from /usr/share/webapps/phpmyadmin/2.11.1.2/htdocs/
>>> dir  (default-owned) contrib
*     Installing from /usr/share/webapps/phpmyadmin/2.11.1.2/htdocs/contrib
>>> dir  (default-owned) contrib/packaging
*     Installing from /usr/share/webapps/phpmyadmin/2.11.1.2/htdocs/contrib/packaging
>>> dir  (default-owned) contrib/packaging/Fedora
*     Installing from /usr/share/webapps/phpmyadmin/2.11.1.2/htdocs/contrib/packaging/Fedora
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) contrib/packaging/Fedora/phpMyAdmin-http.conf
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) contrib/packaging/Fedora/phpMyAdmin.spec
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) contrib/README
>>> dir  (default-owned) js
*     Installing from /usr/share/webapps/phpmyadmin/2.11.1.2/htdocs/js
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) js/dom-drag.js

I'm pretty sure I've installed earlier versions this way and they've worked fine.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-19 22:39:13 UTC
Do you have /var/www/ and /usr/share/ on different filesystems? If that's the case, I very much doubt it's a phpmyadmin issues or that previous versions worked fine for you.
Comment 2 Maurice Volaski 2007-10-19 22:57:19 UTC
Oh, sorry, I just realized I had moved the webapps directory earlier to a different filesystem and didn't realize the path was pointing that way.

But since I'm here, the script is nice in the beginning and perhaps it could make a check for that and report exactly what it thinks is wrong in English.

Come to think of it, isn't it supposed to default to symlinks when it can't hard-link?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-19 23:01:38 UTC
(In reply to comment #2)
> Come to think of it, isn't it supposed to default to symlinks when it can't
> hard-link?

It used to, before the python rewrite at least for sure. :)
Comment 4 MickKi 2008-02-08 10:02:31 UTC
Probably same problem here, but with drupal?  I have webapps and /var/www/mywebsite on the same fs, same partition, but it comes up with with all these hardlinks errors.  I am now installing apache on a different machine in the hope that I can get drupal going, but would appreciate if I could fix the old installation.

Here's an extract:
===========================
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) themes/pushbutton/tabs-off.png
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) themes/pushbutton/tabs-on.png
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) themes/pushbutton/tabs-option-hover.png
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) themes/pushbutton/tabs-option-off.png
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) themes/pushbutton/tabs-option-on.png
>>> file (config-owned) .htaccess
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) INSTALL.mysql.txt
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) INSTALL.pgsql.txt
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) UPGRADE.txt
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) cron.php
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) index.php
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) install.php
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) robots.txt
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) update.php
* Failed to hardlink ([Errno 18] Invalid cross-device link)
>>> file (virtual) xmlrpc.php
*     Installing from /usr/share/webapps/drupal/5.2/hostroot/
>>> dir  (default-owned) /var/www/my_domain/cgi-bin
*     Installing from /usr/share/webapps/drupal/5.2/hostroot/cgi-bin
>>> dir  (default-owned) /var/www/my_domain/error
*     Installing from /usr/share/webapps/drupal/5.2/hostroot/error
>>> dir  (default-owned) /var/www/my_domain/icons
*     Installing from /usr/share/webapps/drupal/5.2/hostroot/icons
*   Files and directories installed
* Install completed - success
=========================== 

Despite what it says it's not successful and the installation has files missing.
-- 
Regards,
Mick
Comment 5 Abraham Marín Pérez 2008-03-03 08:34:28 UTC
I don't know if it will be of any help, but I would say that I have /var and /usr in different partitions and still I was able to install mantisbt through webapp-config flawlessly.

However I didn't use webapp-config directly, emerge called it for me, could be that the origin of the issue?

Just my two cents.
Comment 6 MickKi 2008-03-03 19:20:29 UTC
Drupal-5.6 installed fine on a different machine.  Unfortunately, the old box that had the original problem died on me (MoBo went to MoBo heaven) and I won't be able to troubleshoot it further, until/unless I get replacement MoBo.
-- 
Regards,
Mick
Comment 7 Anthony Basile gentoo-dev 2011-12-30 16:17:18 UTC
We need to see if this is a problem on < 1.50.16-r4
Comment 8 Anthony Basile gentoo-dev 2013-08-03 15:37:53 UTC
Is this a dup of bug #231482.  Its different but maybe some check can be made if we are trying to hardlink across filesystems and drop to sym link even if hardlinking is chosen on the command line.
Comment 9 Devan Franchini (RETIRED) gentoo-dev 2014-01-07 02:03:31 UTC

*** This bug has been marked as a duplicate of bug 231482 ***