Koozali.org: home of the SME Server

[Solved] OpenUpload repo files missing

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
[Solved] OpenUpload repo files missing
« on: September 27, 2011, 11:01:40 PM »
During a routine SME server 8.b6 update (yum update) my working copy of openupload was updated to the latest on the FWS repo and then would not do anything more than show the login page.  I uninstalled smeserver-openupload and it uninstalled 2 packages, smeserver-openupload and openupload.noarch 0.4.2-9.el5.fws.  The package openupload.noarch 0.4.2-13.el5.fws says it erases but a yum list openupload.noarch shows its still installed on my server.

Trying to check the repos for the smeserver-openupload file again and the older openupload.noarch 0.4.2-9.el5.fws file but they are missing.  The FWS repo only has the newest openupload.noarch file in it. 

Would someone have the older files saved so I can revert back to the older working version?  Will the FWS repo be updated with all the files soon? 

Thanks.
« Last Edit: September 28, 2011, 08:28:36 PM by daniel »

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: OpenUpload repo files missing
« Reply #1 on: September 27, 2011, 11:15:42 PM »
Hi. Could you please give some details about your setup. If there's a bug in the latesest version, I'll try to fixe it. What do you mean by "would not do anything more than show the login page".  Do you have any error displayed on the page when you try to login ? Or maybe something in your logs ? Please, post the output of
Code: [Select]
db configuration show openuploadThe problem may be with the LDAP auth mechanism (I just briefly tested it, as I always use LemonLDAP::NG to protect OpenUpload)

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: OpenUpload repo files missing
« Reply #2 on: September 28, 2011, 12:41:27 AM »
Thanks for the reply.

Yum update added a second package of openupload in the package list, it did not update the one I had working.  No matter what I do, yum remove openupload.noarch or yum erase openupload.noarch the program will not remove from the server.  Yum says it has removed it successfully but a yum list openupload.noarch shows that its still installed.  The older version of openupload and the smeserver-openupload packages did successfully uninstall.

Now following the wiki for http://wiki.contribs.org/OpenUpload shows the yum line to be yum --enablerepo=fws install smeserver-openupload.  I run this and it says no package smeserver-openupload available.  When I browse out to the fws repo there are only two files there, smeserver-openupload is missing.

Needed to add - If I type rpm -e openupload.noarch I get
Quote
error: %postun(openupload-0.4.2-13.el5.fws.noarch) scriptlet failed, exit status 127

« Last Edit: September 28, 2011, 12:45:06 AM by daniel »

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: OpenUpload repo files missing
« Reply #3 on: September 28, 2011, 01:11:59 AM »
My openupload db config is

Quote
root@blackbox ~]# db configuration show openupload
openupload=webapp
    Authentication=ldap
    DbName=openuploaddb
    DbPassword= {blanked out for security}
    DbUser=openuploaduser
    MaxUpload=5
    MaxUploadSize=640
    RequireSSL=yes
    access=public
    status=enabled
[root@blackbox ~]#

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Re: OpenUpload repo files missing
« Reply #4 on: September 28, 2011, 02:24:32 AM »
Moved to contribs section of the Forums.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: OpenUpload repo files missing
« Reply #5 on: September 28, 2011, 02:02:36 PM »
There was indeed two problems
- the first one was an error with our repo update script (the repo was nearly empty).
- the second one was an error in the rpm which didn't remove cleanly

Both problem are fixed now.

You can remove traces of the actual openupload rpm with

Code: [Select]
rpm -e --noscripts openupload

Then check you don't have anything left with

Code: [Select]
rpm -qa | grep openupload

Then you can install the latest version (0.4.2-14) with

Code: [Select]
yum --enablerepo=fws install smeserver-openupload
C'est la fin du monde !!! :lol:

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: OpenUpload repo files missing
« Reply #6 on: September 28, 2011, 03:24:27 PM »
Thank you for fixing the issues.  However, now when trying to install the packages, I now get the message that e-smith-base must be 5.2.0-56, which as not been released out of the smeupdates-testing yet.   I'm a bit apprehensive about updating that package if there are bugs in it.  The older version of smeserver-openupload and openupload.noarch have been working successfully.  I downloaded the older version that I had before and do a yum localinstall. 

I also notice, at least for all the older versions, after I install I have to change the ownership of /var/lib/openupload/tmp and /user/share/openupload/templates_c from root:apache to root:www.  Then all works as it should.

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: OpenUpload repo files missing
« Reply #7 on: September 28, 2011, 03:49:20 PM »
Indeed, newer openupload requires e-smith-base-5.2-56 it's just because after that, www and apache are the same, so you don't have to fixe the permissions
C'est la fin du monde !!! :lol:

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: OpenUpload repo files missing
« Reply #8 on: September 28, 2011, 08:00:28 PM »
After reconfiguring and rebooting the SME server, I have the OpenUpload login screen showing up.  When typing in any username/password, it does not login, does not give an error on the screen and goes back to an empty username and password login.
The messages.log shows these lines for each time I try to login.
Quote
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: open(/var/lib/openupload/tmp/sess_a4f8f8207202670ec57091e150d4a547, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/openupload/tmp) in Unknown on line 0
Sep 28 13:39:47 blackbox httpd: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/openupload/tmp/sess_a4f8f8207202670ec57091e150d4a547, O_RDWR) failed: Permission denied (13) in /usr/share/openupload/lib/general.inc.php on line 5
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: open(/var/lib/openupload/tmp/sess_a4f8f8207202670ec57091e150d4a547, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/openupload/tmp) in Unknown on line 0
Sep 28 13:39:47 blackbox httpd: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/openupload/tmp/sess_a4f8f8207202670ec57091e150d4a547, O_RDWR) failed: Permission denied (13) in /usr/share/openupload/lib/general.inc.php on line 5
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: open(/var/lib/openupload/tmp/sess_a4f8f8207202670ec57091e150d4a547, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Sep 28 13:39:47 blackbox httpd: PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/openupload/tmp) in Unknown on line 0


Since I had it working before I reinstalled it with openupload-0.4.2-9.el5.fws.noarch.rpm and smeserver-openupload-0.1-7.el5.fws.noarch.rpm.  I didn't want to use the latest due to its requirement of e-smith-base which I haven't had time to test yet.

Any thoughts on why this isn't working?  Is it still something to do with ownership (chown) of a directory?

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: OpenUpload repo files missing
« Reply #9 on: September 28, 2011, 08:24:47 PM »
Looks like the exact same issue, you either have to upgrade e-smith-base to 5.2.0-56 or later, or chown /var/lib/openupload/ to www:

Code: [Select]
chown -R www:www /var/lib/openupload/

If you choose the chown solution, you'll have to run it each time you upgrade openupload rpm
C'est la fin du monde !!! :lol:

Offline daniel

  • ***
  • 146
  • +0/-0
  • Platinum Sponsor
    • http://www.charton-mgmt.com
Re: OpenUpload repo files missing
« Reply #10 on: September 28, 2011, 08:28:08 PM »
Thank you,  I knew there was something I was missing.  I'll try to schedule some testing time for e-smith-base this weekend and see if I can successfully upgrade to the latest openupload. 

I'm working now.