Log in | Register | Lost password

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

Bottom
New install with upload problem
  • Posted: 18.06.2007, 14:29
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Having the same problem and I haven't found a solution here yet.
    Here is the error
    WEBS:/web2/clustereltham/cluster2/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file 'SYS:tmp/Preview000084' to 'WEBS:/web2/clustereltham/cluster2/media/eb/obm3dizizunbsf2ak0qscj32k0wwn6-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

    Why can't it copy the file? (assuming the error message is correct). For a start when checking the media directory there has been no sub-directory created. Maybe the problem is with the mkdir command? Was the file in the tmp directory to start with? Hard to say as the files are not left here for long.
    I thought I might try manually creating the directory, but I notice on each upload attempt the name of the subdirectory changes to a different 2 letter name.
    In my environment PHP ignores the mod command (like Windows) and I have disabled safe mode and open base dir.
    Will fiddle with this more tomorrow.
    Warren

    I have other programs such as Gallery2 that have no
  • Posted: 18.06.2007, 14:55
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thought I would try once more before I went to bed. Solved my problem. Hooray!
    Looked at the code and found the following:
    mkdir("mediashare/$id");
    So, even though the program asks us what directory to use to store the media in, the directory that must be used is hard coded into the script (at least for the version I downloaded). It is a relative address and so it must be called mediashare in the PN root.
    Feeling a little pleased with myself, didn't take long. Checking some of the other postings I notice they have not called their folder 'mediashare' as this code requires.
    All of this because I did not read the "readme" or the configuation page properly.

    Regards to all
    Warren







    edited by: Warren, Jun 21, 2007 - 02:07 PM
  • Posted: 13.07.2007, 20:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Warren nailed it right.
    Instructions to solve this kind of trouble and save you some time (this works for me with XAMPP under Vista and does not require that postnuke is installed in the root folder):

    Install mediashare as per instructed on the docs.
    go to the folder where postnuke is installed and in there create two folders with full permissions , mediashare and tmp.

    Go to your mediashare configuration and simply write mediashare and tmp (no more than that, so you do not get the trouble with the slashes and such).

    Upload an image to top to verify, and that's it.

    Congrats to Jorn on his newborn, thanks to everybody else on this forum post, you saved me a lot of trouble.

  • Posted: 14.07.2007, 05:41
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks Warren
  • Posted: 01.08.2007, 00:28
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Great... Now I don't see the "ERROR"... I see a Green Check after every upload attempt, without a name, nothing. I click Continue and ? Nothing... Everything seems to be ok, with no errors, but with no upload too... I'm able to create albuns, but with no content at all...

    I started using a different folder name (media, not mediashare). Tried almost all combinations of permissions, users (my webclient, apache, even tried the root user). Moves to mediashare folder, created tmp folder, everything...

    :(

    I'm spending all day trying to fix that, without an solution... Almost running to Menalto Gallery after a day trying Mediashare...

    Weak documentation. Forum with lots of questions, and few answers... :(

    Sadly giving up.

    Good luck to you guys.
    J0rn, don't take me wrong. It's hard to preview all the enviroments, and possible errors. But I think the community is using the module, but not caring that much to share the experience.



    edited by: CapBlah, Aug 01, 2007 - 01:30 AM
  • Posted: 21.08.2007, 20:53
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    As I wrote here in German:

    I just had a similar problem: after activating safe_mode, the uploads stopped working (several installations of PN .8 with different versions of MediaShare).

    All my web files belonged to the shell users (e.g. hraban:users).
    The folders pnTemp (upload) and mediashare (storage) had world write rights (777).
    Mediashare could create subdirectories (those of the 2 letter kind), but then threw the known error ("Failed to copy file").
    The new subdirectory is owned by the webserver user (here: wwwrun:www).

    Since I donated everything to the webserver (chown -R wwwrun:www *), the uploads works again.

    It's not enough to chown the pnTemp and mediashare directories - then safe_mode strikes, and nothing works any more, because the scripts that belong to the shell user must not access the directories owned by the webserver user.

    If my users would like to change their sites themselves, I'd be in big trouble now...
  • Posted: 13.09.2007, 17:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Hi there,

    I've done everything (using root dir and chmoding 777 etc.) but with SAFE_MODE on it doesn't work.
    Now I'm curious about this:

    Quote

    If you have SAFE_MODE turned on you may need to set the GID or UID bits on the "mediashare" directory. This means file mode "6777" (not just "777"). DON'T ask me why - but it works for me.


    Could anyone give me a hint about how to do this as a regular user?
    Thanks!
  • Posted: 18.09.2007, 17:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I am experiencing this same problem.

    I have carefully read this thread and tried all the permutations and variations of directory placement and all the involved directories are 777.

    I do not have server access and cannot change ownership. 6777 seems not a option I have.

    Hopefully there is an alternative solution - I'd hate to have to give up on mediashare, which I dearly love.

    Peter
  • Posted: 20.09.2007, 03:51
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    J?rn



    If you have SAFE_MODE turned on you may need to set the GID or UID bits on the "mediashare" directory. This means file mode "6777" (not just "777"). DON'T ask me why - but it works for me.


    @J?rn==>

    Any thoughts about how to handle this when using a commercial ISP and no shell access?

    Peter
  • Posted: 23.09.2007, 13:43
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    @J?rn==>

    Probably a great module, but it does not work in all SAFE_MODE environments. I think in fairness, this should be clear in the documentation.

    I have spent many hours over the last week trying to make this work, with no success - and no response here.

    I'm disappointed. I have been a booster of photoshare/mediashare when talking to other PostNuker users with questions about what gallery to use. I will still tell them to look at mediashare, but my recommendation will be accompanied by caveats.



    Peter



    edited by: PeterElias, Sep 23, 2007 - 08:44 AM
  • Posted: 23.09.2007, 20:01
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Not to complicate the issue but I have installed Mediashare on several sites and never once run into any issues (other than not being able to upload .bmp as there's no media handler)

    I haven't looked into any of the issues you guys are having but I believe that they are all related to your server configurations. It might be worthwhile to kindly contact someone from your hosting company and ask if they have any insights as they of course run the computers. In particular permissions and whatnot without shell access can be set by your host.

    Good luck all, and as always post back any updates...
  • Posted: 23.09.2007, 22:36
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    @RemShowdown ==>

    I didn't mean to imply that mediashare was broken. I am certain you are correct that this is related to specific server settings. However, in this particular circumstance, my only option is figure out what to do with the module - as changing server configuration is not an option.

    I use mediashare on several other sites, including one with SAFE_MODE on, without problems. My experience with how great a module it is underlies my desire to solve my current problem. (I am getting by with Photoshare 4, but sorely miss mediashare's improvements.)

    The particular site in question is hosted on a College server, for no charge and with little or no support. They have needs and restrictions different from the standard ISP, of course, It was REALLY ugly when they decided to change their SAFE-MODE settings and gave me 24 hours notice. I had a Menalto Gallery at the time and it was deader than road kill. That was when I found Photoshare and migrated all my galleries on other sites - and then have moved up to Mediashare everywhere but here.

    They will occasionally give me shell access for 24 hours or 48 hours to accomplish a specific task, if I plead and beg. Mostly they offer to do things for me 'when we get a chance' which doesn't work well for me. If I attempt to work on something like this with them, it is low on their priority list and the dialogue is likely to take months, with 2-3 weeks elapsing between responses from them. In other circumstances I'd have long since packed my electrons up and taken them to a different host. Not really an option here, alas.

    So things like examining, let alone changing, ownership, or playing with GID/UID settings (6777 for example) are not on the table.

    My coding skills are not enough to let me specifically identify where I would have to hack - though I have (again) learned a bundle struggling with this over the last week. I don't have any hosting experience so I don't even know what questions to ask. I have set up a local host on my box and installed PN and Mediashare and have been playing with settings and changes to see if I can duplicate their settings and then look for a solution. So far no joy. And I have other things to do.

    So I will muddle along with Photoshare for now, periodically play with things to see if I have found a solution, and expectantly monitor elfisk in the hope that someone will post a solution, or at least suggestions of things to try....

    Meanwhile, I DO think it would be appropriate to describe this module as working with MOST safe_mode installations (YMMV).

    Peter
  • Posted: 16.01.2008, 13:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    i had also upload problems with pn 0.8.0.0-RC2 and mediashare 3.2.0

    Quote

    /httpd/domain/httpdocs/cms/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/httpd/domain/httpdocs/cms/tmp/PreviewuVnRk3' to '/httpd/domain/httpdocs/cms/mediashare/08/n6qxp2srzmw7wjwklgejxxw8upiea3-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
    After switching PHP Safe Mode off the upload is working.
  • Posted: 03.02.2008, 23:47
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    mobascheri

    Hi there,

    I've done everything (using root dir and chmoding 777 etc.) but with SAFE_MODE on it doesn't work.
    Now I'm curious about this:

    Quote

    If you have SAFE_MODE turned on you may need to set the GID or UID bits on the "mediashare" directory. This means file mode "6777" (not just "777"). DON'T ask me why - but it works for me.


    Could anyone give me a hint about how to do this as a regular user?
    Thanks!


    Same question to me, I have a commercial webspace with SAFE_MODE on which runs fine with photoshare but not with mediashare. I've two folders, mediashare and tmp, both are 777 and if I do a directory listing it says:

    drwxrwxrwx 2 2603 2603 4096 Feb 03 23:52 mediashare
    drwxr-xr-x 2 2603 2603 4096 Feb 04 00:36 tmp

    How do I set the UID/GID now? Using WS_FTP lite and there is a tiny little window for commands but doing something like "chmod 6777 mediashare" does nothing. And so far I recieve no error but it doesn't upload anything as well.
    Pretty stuck here.
    I'm using latest mediashare version and postnuke 0.8.00 RC2 for testing, it is a fresh install.
  • Posted: 14.01.2009, 16:51
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks to Warren and whiskey for offering their quick fix. It worked for me :)

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

Template courtesy of Designs By Darren.