Description of problem: Latest gallery2 update couldn't get the marty class files, and so couldn't show the web pages. Version-Release number of selected component (if applicable): # rpm -q gallery2 gallery2-2.3-7.fc10.noarch How reproducible: After finishing the upgrade, open the main gallery2 page and nothing shows. In php log I get: PHP Warning: GalleryCoreApi::require_once(/usr/share/gallery2/modules/core/classes/../../../lib/smarty/Smarty.class.php) [<a href='gallerycoreapi.require-once'>gallerycoreapi.require-once</a>]: failed to open stream: No existe el fichero o el directorio in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827 PHP Fatal error: GalleryCoreApi::require_once() [<a href='function.require'>function.require</a>]: Failed opening required'/usr/share/gallery2/modules/core/classes/../../../lib/smarty/Smarty.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/gallery2/modules/core/classes/GalleryCoreApi.class on line 2827 ^ Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Known issue, discussion of solutions: https://fedorahosted.org/rel-eng/ticket/1674
Note that after adding the symlink solution as described in the comment and link above the following error occurs when you go to the upgrade path step 2: Missing files: ============== lib/smarty/COPYING.lib lib/smarty/README modules/core/classes/GalleryStorage/g2_db2.jar Changed files: ============== lib/smarty/Smarty_Compiler.class.php lib/smarty/plugins/modifier.debug_print_var.php Especially the g2_db2 worries me. Thanks, Jan
The lib/smarty files are in error, and can be fixed by reinstalling php-Smarty. A subsequent update will prevent this happening again. The g2_db2 is correctly removed, as it and the other jars had to be pulled for legal reasons.
*** Bug 500124 has been marked as a duplicate of this bug. ***
Please see gallery2-2.3-9.fc10 in koji. I'll submit for updates-testing.
gallery2-2.3-9.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-9.fc10
After downloading the gallery2 updated 2.3.9 rpms above to my server local hard disk and applying the following command: yum --nogpgcheck localupdate gallery2-2.3-9.fc10.noarch.rpm gallery2-classic-2.3-9.fc10.noarch.rpm gallery2-httpauth-2.3-9.fc10.noarch.rpm gallery2-matrix-2.3-9.fc10.noarch.rpm gallery2-tile-2.3-9.fc10.noarch.rpm gallery2-rewrite-2.3-9.fc10.noarch.rpm the link was *not* created. Also (after again applying the symlink by hand) it still gave me the same errors as already indicated in comment #2. Do i miss something? Thanks, Jan
So you did have the symlink, updated, and then it was missing?
No, before 2.3.9 (so in 2.3.7) i had the symlink added by hand via [17:43:root@pegasus /usr/share/gallery2/lib]# cd /usr/share/gallery2/lib [17:43:root@pegasus /usr/share/gallery2/lib]# ln -s /usr/share/php/Smarty smarty Which worked with the errors from comment #2. Then today, i downloaded the new 2.3.9. rpms, removed the symlink again, executed the yum --nogpgcheck localupdate gallery2-2.3-9.fc10.noarch.rpm gallery2-classic-2.3-9.fc10.noarch.rpm gallery2-httpauth-2.3-9.fc10.noarch.rpm gallery2-matrix-2.3-9.fc10.noarch.rpm gallery2-tile-2.3-9.fc10.noarch.rpm gallery2-rewrite-2.3-9.fc10.noarch.rpm and the symlink was *not* created. So now in 2.3.9 i created it by hand again. After that i ran the upgrade URL. And still gave me the same errors as in 2.3.7 (comment #2). Thanks, Jan
Odd. I had the symlink previously, and had it on upgrade. Rex, any insights?
Rex, symlink replacing directory problem here.
Seems I missed seeing comment #10 this trick works to replace dirs with symlinks (in my own tests). What we failed to account for was the upgrade from the pkg with symlink to pkg using %ghost + %post scriptlet. In that case, the symlink seems to go awol.
What if we go from this: if [ -d %{installprefix}/gallery2/lib/smarty -a ! -L %{installprefix}/gallery2/lib/smarty ]; then mv %{installprefix}/gallery2/lib/smarty %{installprefix}/gallery2/lib/smarty.rpmbak && \ ln -s ../../php/Smarty %{installprefix}/gallery2/lib/smarty && \ rm -rf %{installprefix}/gallery2/lib/smarty.rpmbak fi to this: if [ -d %{installprefix}/gallery2/lib/smarty -a ! -L %{installprefix}/gallery2/lib/smarty ]; then mv %{installprefix}/gallery2/lib/smarty %{installprefix}/gallery2/lib/smarty.rpmbak && \ ln -s ../../php/Smarty %{installprefix}/gallery2/lib/smarty && \ rm -rf %{installprefix}/gallery2/lib/smarty.rpmbak fi if [ ! -L %{installprefix}/gallery2/lib/smarty ]; then ln -s ../../php/Smarty %{installprefix}/gallery2/lib/smarty fi Would that not catch that case and fail acceptably for the others? Inelegant to be sure, but. . .
That would fix my case regarding the symlink for sure. How about the upgrade warnings that still remain after this fix (see comment #2)? Thanks, jan
gallery2-2.3-9.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-4695
That would fix all but the g2_db2, which isn't getting fixed. Rex, if you think this will fly, I'll build it.
gallery2-2.3-10.fc11 is built, with changes from #13. Seems to work for me.
*** Bug 500985 has been marked as a duplicate of this bug. ***
gallery2-2.3-10.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-10.fc10
gallery2-2.3-10.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-5146
This update still broke my smarty install. I had to rpm -e and reinstall the package.
Odd, I had another report that it was fine. Was this -9 to -10, or some earlier version?
Ah sorry. Details. It might not actually be a bug in the current package. I am running fc9 on this machine. Before I upgrade to newest fedora, I always upgrade the server softwares first. That way I control my variables when something goes wrong. Previously I was running gallery2 2.3.1.fc10 rebuilt on fc9. I upgraded using yum upgrade to 2.3.10.fc10, rebuilt on fc9. In the upgrade, the entire contents of smarty were erased (everything at the end of the softlink coming out of gallery2 into smarty.
I think that's an artifact of the apparently broken way the bundled Smarty was initially removed in 2.2.4-3.
gallery2-2.3-11.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-11.fc10
gallery2-2.3-11.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-5433
gallery2-2.3-12.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/gallery2-2.3-12.fc10
gallery2-2.3-12.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update gallery2'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-5545
gallery2-2.3-12.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.