Not sure if this is an issue with bitcache or fileframework, but I've been unable to add new files since fileframework-dev has required bitcache-alpha2. I get the following when adding a new file node:

# user warning: Must be given a directory path in /var/www/html/xxxx/sites/all/modules/bitcache/bitcache.inc on line 105.
# warning: copy(/d423bd69a575911dd33ddb98e61be0422fea017a) [function.copy]: failed to open stream: Permission denied in /var/www/html/cfes/sites/all/modules/bitcache/bitcache.inc on line 225.
# Error saving file XXXX_Brochure.pdf. Please, contact site administrator.

I put some debug statements into the bitcache.inc and it looks like it's being told to copy my uploaded file from /tmp to the root directory (hence the permission denied). Having trouble tracing the problem beyond that though.

Any ideas? Or should I push this to fileframework?

Comments

Anonymous’s picture

Status: Active » Closed (fixed)

Found my issue, fileframework is expecting a repository named 'file' and this was not present after some number of module upgrades.

Arto’s picture

Title: Cannot add new files/bitcaches » Missing Bitcache repository directory after 6.x-1.x-alpha2
Project: Bitcache » File Framework
Assigned: Unassigned » Arto
Status: Closed (fixed) » Active

Apologies, I think the problem is that we didn't add an explicit update migration to create the subrepository when upgrading. I guess we underestimated the number of brave souls already using these modules at their alpha stage :-)

Miglius, do you want to add a hook_update_6000() hook for making the necessary bitcache_create_repository('file') call in case the repository doesn't yet exist? The update hook should probably also attempt to move any existing files in files/bitcache to files/bitcache/file.

miglius’s picture

Assigned: Arto » miglius

Sorry for inconvenience. The upgrade script is committed to the dev version.

Anonymous’s picture

Yup. This is what I get for using the module on a production site. It's just that good :)

Keep the updates coming!

Arto’s picture

Issue tags: +Bitcache
sezer’s picture

hi there,
i still have a problem

"user warning: Must be given a directory path in /home/xxxxxx/public_html/xxxxxx/sites/all/modules/bitcache/bitcache.inc on line 108."

i installed both dev version and that alpha but could not find what to do.. i still cannot upload any file as attachment and get that error
(and more errors codes actually)..

as jackmaninov said "Found my issue, fileframework is expecting a repository named 'file' and this was not present after some number of module upgrades."

is it just a repository issue?? because i created lots and lots of folders almost everyplace on server.. and chmod 777 actually.. (also created many repositories)

where do i have to put that directory "file" ???? please help!!! i am about to be crazy..

i get error belove when attaching file..

* user warning: Must be given a directory path in /home/xxxx/public_html/xxxxxxx/sites/all/modules/bitcache/bitcache.inc on line 108.
* warning: copy(/c0081bc07df92e0fd477918011dba66ba526cdb3) [function.copy]: failed to open stream: Permission denied in /home/xxxxx/public_html/xxxxxx/sites/all/modules/bitcache/bitcache.inc on line 232.
* Error saving file yen-deneme-text-dosyasi.txt. Please, contact site administrator. (tihs sentence makes my feelings confuse, lol)

miglius’s picture

Can you go to the 'admin/content/bitcache/upload' and check if you are able to upload a file to the "File framework" repository?

sezer’s picture

thanks anyway, i just erased and install drupal again :)

miglius’s picture

Status: Active » Closed (fixed)
natable’s picture

I am having a similar problem. I can upload a bitstream via 'admin/content/bitcache/upload' and it goes to the repository 'sites/default/files/bitcache'. However, when I try to create a file node or attach a file to a page, the file node is not created. The errors are:

* user warning: Must be given a directory path in /usr/share/drupal-6.10/sites/all/modules/bitcache/bitcache.inc on line 105.
* warning: copy(/ba636d73f1c00fee555ccbfe8959282268d473be) [function.copy]: failed to open stream: Permission denied in /usr/share/drupal-6.10/sites/all/modules/bitcache/bitcache.inc on line 223.
* Error saving file test.jpg. Please, contact site administrator.
* A file upload must be provided.

I'm using bitcache 6.x-1.0-alpha2.

miglius’s picture

I would recommend upgrading to the latest bitcache 6.x-1.0-beta2 and fileframework 6.x-1.0-alpha4.

natable’s picture

it's working - thanks!

cmjns’s picture

Not for me. I'm using bitcache 6.x-1.0-beta2 and file framework 6.x-1.0-alpha5. Seems to be broken again.