Log in | Register | Lost password

Goto page: 1 - 2 - 3 [+1]

Bottom
New install with upload problem
  • Posted: 28.05.2006, 00:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have one site with Mediashare working well. A new site, which is more restricted, gives an error when uploading.

    Unable to move uploaded file from './tmp/phpuGpQJb' to '/vhosts/www/htdocs/tmp/Upload_jch0GK'

    I've set the tmp directory to /vhosts/www/htdocs/tmp/, so why is it uploading to ./tmp ?

    ./tmp is not under my control (shared server), so I can't chmod it to 777.

    ANy suggestions?
  • Posted: 28.05.2006, 08:50
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Seems to be to do with the upload_tmp_dir setting (./tmp). On webfusion it's "no value".

    Does this mean that you're forced to use a central tmp folder, which of course will not be set to 777.
  • Posted: 17.06.2006, 12:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Jorn, any ideas on this problem? Any help will be very appreciated.
  • Posted: 18.06.2006, 17:08
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    equal problem here. fresssshh pn and mediashare installation!

    although the paths are correct and permission is 777 for the (root)/mediashare folder (owner group is the webserver)

    i get this if i try to upload an image:

    Code

    * /home/ftp/users/iestiftung/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/home/ftp/users/iestiftung/pnTemp/PreviewiDpjl9' to '/home/ftp/users/iestiftung/mediashare/0m/9s5qufvf9pqm3rs3b46cd0ql2fg36b-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.

    * No media items


    this does not make sense to me. i already tried usin relative paths but that didnt work too.

    thought mediashare has no problem with safemode, so i guess something went wring on mediashare side. or you may have an explanation/solution how to move mediashare in a way it works properly. ;)

    regards

    Simon
    PS: i luv project-stoppers as this ;)
  • Posted: 18.06.2006, 17:13
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    created a new temp directory and set owner to the webserver (both in owner and group) and this what i get:

    Code

    Unable to move uploaded file from '/tmp/phpbQLzam' to '/home/ftp/users/iestiftung/mediashareUpload/Upload_U5dwCz' (uploading image)():


    Jorn?!
  • Posted: 18.06.2006, 17:16
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    almost forgot. these are the directories im using for mediashare and temp.upload (set in mediashares administration mask):
    /home/ftp/users/iestiftung/mediashare
    /home/ftp/users/iestiftung/mediashareUpload

    frustrating mediashare experience...
  • Posted: 19.06.2006, 09:57
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    anyone?! this is really urgent
  • Posted: 20.06.2006, 16:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    anyone?!
  • Posted: 24.06.2006, 19:53
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm trying to investigate why this error happens.

    Does your server have OPEN_BASEDIR set?

    The server I am using is quite restricted. But Jorn's modules are supposed to be quite tolerant of this. Which is why I'm using Mediashare instead of Gallery. Mediashare works pefectly on a server without these restrictions.

    open_basedir is set to the webspace folder
    safe mode is on
    php is run as a cgi
    upload_tmp_dir is set to ./tmp

    Looking at pnsource_browserapi.php, above "Unable to move uploaded file", there is another error msg - "Unable to create tmpFilename". As I get the "can't move" error, I assume that the file can be uploaded OK. So perhaps it can't delete the file.

    The code has the comment:

    // For OPEN_BASEDIR reasons we move the uploaded file as fast as possible to an accessible place
    // MUST remember to remove it afterwards!!!


    So I guess it's important to remove the file :-D

    I'm going to try hacking the code, and see if I can get anything to work.
  • Posted: 30.09.2006, 22:02
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Well, I tried doing some hacking, but that didn't work. I've now installed v2.0, and it still doesn't work :( The only difference is now there isn't any error shown. It just doesn't actually have any file after the upload seems to have been done.

    Anyone else have mediashare working on a server with safe mode and open_basedir set?
  • Posted: 02.10.2006, 00:44
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Have you tried "chmod" the mediashare directory to max. access "chmod 777 mediashare"?

    On my system I even also had to set the GUI/UID bits (what ever that is ... something to do with inheriting ownership)
  • Posted: 02.10.2006, 16:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have the sme problem:

    Code

    /www/htdocs/w00590fb/modules/mediashare/pnimportapi.php(156): Got error while converting (img326): /www/htdocs/w00590fb/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/PreviewcWZ1vH' to '/www/htdocs/w00590fb/modules/mediashare/Daten/bx/s57o2yu3evch4a5e7e88ngypnwsd9t-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.

    The import-Routine will write to an directory that not exists (.../bx/....).
    on the next call another directory... :-?

    Any ideas ?
    This problem occurs on import from photoshare also in upload an image.
    The rights on the uploaddir (..../Daten) is 777. also the mediashare directory.

    :-? :-? :-? :-?

    Frank
  • Posted: 03.10.2006, 07:24
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Mediashare creates the subdir .../bx/... itself.

    Besides that: you are using the wrong directory "'/www/htdocs/w00590fb/modules/mediashare/Daten/". The docs state that it must be in the PN root: "'/www/htdocs/w00590fb/mediashare" - otherwise you won't be able to see your images once you get them uploaded.
  • Posted: 03.10.2006, 16:20
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    J?rn

    Mediashare creates the subdir .../bx/... itself.

    Besides that: you are using the wrong directory "'/www/htdocs/w00590fb/modules/mediashare/Daten/". The docs state that it must be in the PN root: "'/www/htdocs/w00590fb/mediashare" - otherwise you won't be able to see your images once you get them uploaded.


    Hi J?rn,

    Code

    /www/htdocs/w00590fb/modules/mediashare/pnimportapi.php(156): Got error while converting (img326): /www/htdocs/w00590fb/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/PreviewJDtS7W' to '/www/htdocs/w00590fb/mediashare/Daten/xs/j2hr7qvrjso0atq29hmy8fr4i7elbv-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.

    It's the same problem...
    It does'nt matter if the uploaddirectory is in the root of the website....
    mediashare and Daten have 777...
    [some testing...]
    ooops, J?rn, you have anywhere the directory /mediashare hardcoded !!!
    When I set the upload to /www/htdocs/w00590fb/mediashare it seems to work...
    I have seen this, while the directory ..../bx/.... was created in mediashare, not in mediashare/Daten....


    Frank
  • Posted: 04.10.2006, 20:30
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    J?rn

    Have you tried "chmod" the mediashare directory to max. access "chmod 777 mediashare"?

    On my system I even also had to set the GUI/UID bits (what ever that is ... something to do with inheriting ownership)


    Thanks for the reply. Yes, I've tried chmod. I've tried folders all over the place. No idea about GUI/UID, so I'll see what I can find.

Goto page: 1 - 2 - 3 [+1]

Template courtesy of Designs By Darren.