Bug #52822

Updating extensions triggers errors due to folder permissions

Added by Stefan no-lastname-given about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2013-10-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

See attached screenshot.

I tried to upgrade DAM from 1.3.0 to 1.3.2 and got several errors upon importing the new version.

However, all files do actually exist on my webserver (presumably they were already present since I had 1.3.0 installed already?). If that's true, should the update script be altered/corrected so it doesn't try to create the already existing directories or at least doesn't issue an error?


Files

DAM_bug.jpg (112 KB) DAM_bug.jpg Stefan no-lastname-given, 2013-10-14 22:57

Related issues

Related to MW Imagemap - Bug #55964: Update 1.2.16 filepermission fails on 4.5.32New2014-02-13

Actions
#1

Updated by Tobias Schmidt about 7 years ago

Same here. I tried to update from 1.1.5 and from 1.3.1.
By the way: What is the difference between 1.3.2 und 1.3.2-dev? Both versions are offered for an update inside the extension manager.

#2

Updated by Lorenz Ulrich about 7 years ago

  • Target version set to DAM 1.3.3
#3

Updated by Christian Weiske almost 7 years ago

  • Status changed from New to Needs Feedback
  • What user is the web server running under, and what are the permissions of the typo3conf/ext/dam/ directories and files (and the parent directories)?
  • Did the upgrade actually work?
  • Can other extensions be installed?
#4

Updated by Tobias Schmidt almost 7 years ago

The Problem occurs with a local installation via XAMPP using PHP 5.3 (Apache-Module) under Windows 7 and with Linux using also Apache and PHP 5.3 (cgi). The file permissions are ok. The new files do exist and DAM seems to be working, so the error message is maybe wrong. But I didn't test in depth. Other extensions can be installed without problems.

#5

Updated by Christian Weiske almost 7 years ago

Tobias, please write down the exact file permission settings of the dam folder and its parent folders. A simple "they are ok" doesn't help me.

#6

Updated by Tobias Schmidt almost 7 years ago

Folders: 755
Files: 644
Owner is the user the server is running under.
The permissions are identical to other extensions permissions.

There is a PHP warning for every error message:

PHP Warning: fopen(/.../typo3conf/ext/dam/binding/) [function.fopen]: failed to open stream: Is a directory in /.../t3lib/class.t3lib_div.php line 3189

Fehler: Datei "/.../typo3conf/ext/dam/binding/" konnte nicht erstellt werden!!!

(path partially skipped)

#7

Updated by Christian Weiske almost 7 years ago

I think this is a problem with the extension manager, and not with DAM itself.

#8

Updated by Christian Weiske almost 7 years ago

  • Project changed from Digital Asset Management (DAM) to TYPO3 Core
  • Status changed from Needs Feedback to New
  • Target version deleted (DAM 1.3.3)
#9

Updated by G Reinicke almost 7 years ago

Hi,

I tried to update from DAM 1.2.4 to the most recent 1.3.2, but get the same errors. I have the same permissions.

Updating from 1.2.4 to 1.3.1 works without errors.

Regards

#10

Updated by André Steiling over 6 years ago

This bug could also be seen within an update of extension "be_secure_pw" from version 3.1.2 to 3.2.0 under TYPO3 4.5.32, PHP 5.3.27, fileCreateMask 644, folderCreateMask 755.

#11

Updated by Ingo Müller over 6 years ago

Same here 1.3.1 to 1.3.3
Typo3 4.5.34
Folders: 755
Files: 644

Error: File '/var/www/typo3conf/ext/dam/binding/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/softref/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/linkvalidator/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/tce/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/mediatag/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/imgtag/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/binding/be/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/compat/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/components/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/doc/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/i/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/i/18/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/lib/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_cmd/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_edit/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_file/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_file_list/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_file_upload/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_info_reference/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_list_batch/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_list_editsel/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_list_list/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_list_thumbs/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_tools_config/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_tools_indexsetup/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_tools_indexupdate/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/modfunc_tools_mimetypes/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_info/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_list/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_main/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_tools/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/mod_treebrowser/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/pi/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/res/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/res/css/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/res/templates/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/tests/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/tests/fixtures/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/treelib/' could not be created!!!
Error: File '/var/www/typo3conf/ext/dam/tsconfig/' could not be created!!!

Update shows as done and Version 1.3.3. and files have new dates, but "Extension Manager - Developer Information" shows:

A difference between the originally installed version and the current one was detected!

Modified files:
ChangeLog
class.ext_update.php
class.tx_dam_browse_category.php
class.tx_dam_browse_folder.php
class.tx_dam_browse_media.php
close.html
ext_autoload.php
ext_conf_template.txt
ext_icon.gif
ext_localconf.php
ext_php_api.dat
ext_tables.php
ext_tables.sql
ext_tables_static+adt.sql
icon_tx_dam.gif
icon_tx_dam_cat.gif
icon_tx_dam_lightbox.gif
icon_tx_dam_log_download.gif
icon_tx_dam_selection.gif
locallang_csh_dam.xml
locallang_db.xml
modules_dam.gif
tca.php
tca_media_field.php
binding/be/class.tx_dam_cm_file.php
binding/be/class.tx_dam_cm_record.php
binding/be/class.tx_dam_show_item.php
binding/imgtag/class.tx_dam_tsfeimgtag.php
binding/imgtag/ext_localconf.php
binding/linkvalidator/class.tx_linkvalidator_linktype_dam.php
binding/linkvalidator/ext_localconf.php
binding/linkvalidator/locallang.xml
binding/mediatag/class.tx_dam_browselinkshooks.php
binding/mediatag/class.tx_dam_medialinkhandler.php
binding/mediatag/class.tx_dam_mediawizarddamprovider.php
binding/mediatag/class.tx_dam_rtetransform_ahref.php
binding/mediatag/class.tx_dam_rtetransform_mediatag.php
binding/mediatag/class.tx_dam_tsfemediatag.php
binding/mediatag/ext_localconf.php
binding/mediatag/pageTSConfig.txt
binding/softref/class.tx_dam_softrefproc.php
binding/softref/ext_localconf.php
binding/softref/ext_tables.php
binding/tce/class.tx_dam_tce_extfilefunc.php
binding/tce/class.tx_dam_tce_filetracking.php
binding/tce/class.tx_dam_tce_languagehotlist.php
binding/tce/class.tx_dam_tce_process.php
compat/class.tx_dam_rtehtmlarea_browse_links.php
compat/class.tx_dam_rtehtmlarea_browse_media.php
compat/class.tx_dam_rtehtmlarea_select_image.php
compat/ext_localconf.php
compat/locallang.xml
components/class.tx_dam_actionsFile.php
components/class.tx_dam_actionsFolder.php
components/class.tx_dam_actionsRecord.php
components/class.tx_dam_dbTriggerMediaTypes.php
components/class.tx_dam_index_rules.php
components/class.tx_dam_multiActionsFile.php
components/class.tx_dam_multiActionsRecord.php
components/class.tx_dam_previewerImage.php
components/class.tx_dam_previewerMP3.php
components/class.tx_dam_selectionCategory.php
components/class.tx_dam_selectionFolder.php
components/class.tx_dam_selectionIndexRun.php
components/class.tx_dam_selectionMeTypes.php
components/class.tx_dam_selectionRecords.php
components/class.tx_dam_selectionStatus.php
components/class.tx_dam_selectionStringSearch.php
components/locallang_indexrules.xml
doc/manual.sxw
i/add_to_lightbox.gif
i/button_deselect.gif
i/button_remove.gif
i/button_reselect.gif
i/cat.gif
i/cat2.gif
i/cat2folder.gif
i/cat3.gif
i/cat3folder.gif
i/catfolder.gif
i/edit_file.gif
i/edit_file_i_.gif
i/edit_popup.gif
i/equals.gif
i/equals_16.gif
i/error_h.gif
i/goback_flat.gif
i/indexrunfolder.png
i/indexruntype.png
i/is_referenced.gif
i/localize.gif
i/media-application.png
i/media-audio.png
i/media-collection.png
i/media-dataset.png
i/media-font.png
i/media-image.png
i/media-interactive.png
i/media-model.png
i/media-service.png
i/media-software.png
i/media-text.png
i/media-undefined.png
i/media-video.png
i/mediafolder.gif
i/mediatype.png
i/mimefolder.gif
i/mimetype.png
i/minus.gif
i/minus_16.gif
i/new_webfolder.gif
i/plus.gif
i/plus_16.gif
i/protected.gif
i/rename_file.png
i/rename_file_i_.png
i/replace_file.png
i/statusfolder.png
i/statustype.png
i/unprotected.gif
i/view_readonly.gif
i/18/aac.png
i/18/css.png
i/18/doc.png
i/18/docx.png
i/18/dot.png
i/18/folder_mount.gif
i/18/folder_mount_group.gif
i/18/folder_mount_readonly.gif
i/18/folder_mount_user.gif
i/18/folder_recycler.gif
i/18/folder_sys.png
i/18/folder_sys_ro.png
i/18/folder_temp.gif
i/18/folder_web.png
i/18/folder_web_protected.png
i/18/folder_web_ro.png
i/18/gif.png
i/18/htm.png
i/18/html.png
i/18/ico.png
i/18/jpeg.png
i/18/jpg.png
i/18/mp3.png
i/18/mp4.png
i/18/mtype_application.png
i/18/mtype_audio.png
i/18/mtype_collection.png
i/18/mtype_dataset.png
i/18/mtype_font.png
i/18/mtype_image.png
i/18/mtype_interactive.png
i/18/mtype_model.png
i/18/mtype_service.png
i/18/mtype_software.png
i/18/mtype_text.png
i/18/mtype_undefined.png
i/18/mtype_video.png
i/18/pdf.png
i/18/php.png
i/18/png.png
i/18/ppt.png
i/18/pptx.png
i/18/ttf.png
i/18/txt.png
i/18/wav.png
i/18/xls.png
i/18/xlsx.png
i/18/xml.png
i/18/zip.png
lib/class.tx_dam.php
lib/class.tx_dam_actionbase.php
lib/class.tx_dam_actioncall.php
lib/class.tx_dam_allowdeny.php
lib/class.tx_dam_batchprocess.php
lib/class.tx_dam_browsetrees.php
lib/class.tx_dam_config.php
lib/class.tx_dam_db.php
lib/class.tx_dam_editorbase.php
lib/class.tx_dam_filebrowser.php
lib/class.tx_dam_guifunc.php
lib/class.tx_dam_guirenderlist.php
lib/class.tx_dam_image.php
lib/class.tx_dam_indexing.php
lib/class.tx_dam_indexrulebase.php
lib/class.tx_dam_iterator_base.php
lib/class.tx_dam_iterator_db.php
lib/class.tx_dam_iterator_db_lang_ovl.php
lib/class.tx_dam_iterator_dir.php
lib/class.tx_dam_iterator_media.php
lib/class.tx_dam_iterator_references.php
lib/class.tx_dam_listbase.php
lib/class.tx_dam_listfiles.php
lib/class.tx_dam_listpointer.php
lib/class.tx_dam_listrecords.php
lib/class.tx_dam_listreferences.php
lib/class.tx_dam_media.php
lib/class.tx_dam_navframe.php
lib/class.tx_dam_previewerprocbase.php
lib/class.tx_dam_querygen.php
lib/class.tx_dam_scbase.php
lib/class.tx_dam_selection.php
lib/class.tx_dam_selectionquery.php
lib/class.tx_dam_selprocbase.php
lib/class.tx_dam_selstorage.php
lib/class.tx_dam_simpleforms.php
lib/class.tx_dam_sysfolder.php
lib/class.tx_dam_tcafunc.php
lib/class.tx_dam_tce_file.php
lib/class.tx_dam_tcefunc.php
lib/class.tx_dam_tsfe.php
lib/locallang.xml
lib/tx_dam_types.php
mod_cmd/class.tx_dam_cmd_filecopymove.php
mod_cmd/class.tx_dam_cmd_filedelete.php
mod_cmd/class.tx_dam_cmd_filenew.php
mod_cmd/class.tx_dam_cmd_filerename.php
mod_cmd/class.tx_dam_cmd_filereplace.php
mod_cmd/class.tx_dam_cmd_folderdelete.php
mod_cmd/class.tx_dam_cmd_foldernew.php
mod_cmd/class.tx_dam_cmd_folderrename.php
mod_cmd/class.tx_dam_cmd_nothing.php
mod_cmd/conf.php
mod_cmd/index.php
mod_cmd/locallang.xml
mod_cmd/locallang_mod.xml
mod_cmd/moduleicon.gif
mod_edit/class.tx_dam_edit_text.php
mod_edit/conf.php
mod_edit/index.php
mod_edit/locallang.xml
mod_edit/locallang_mod.xml
mod_edit/moduleicon.gif
mod_file/clear.gif
mod_file/conf.php
mod_file/index.php
mod_file/locallang.xml
mod_file/locallang_mod.xml
mod_file/moduleicon.png
mod_info/clear.gif
mod_info/conf.php
mod_info/index.php
mod_info/locallang.xml
mod_info/locallang_mod.xml
mod_info/moduleicon.png
mod_list/clear.gif
mod_list/conf.php
mod_list/index.php
mod_list/locallang.xml
mod_list/locallang_mod.xml
mod_list/moduleicon.png
mod_main/conf.php
mod_main/locallang_mod.xml
mod_main/moduleicon.gif
mod_main/tx_dam_navframe.php
mod_tools/clear.gif
mod_tools/conf.php
mod_tools/index.php
mod_tools/locallang.xml
mod_tools/locallang_mod.xml
mod_tools/moduleicon.png
mod_tools/tx_dam_navframe.php
mod_treebrowser/conf.php
mod_treebrowser/index.php
mod_treebrowser/locallang_mod.xml
mod_treebrowser/moduleicon.gif
modfunc_file_list/class.tx_dam_file_list.php
modfunc_file_list/locallang.xml
modfunc_file_upload/class.tx_dam_file_upload.php
modfunc_file_upload/locallang.xml
modfunc_file_upload/upload_status.php
modfunc_info_reference/class.tx_dam_info_reference.php
modfunc_info_reference/locallang.xml
modfunc_list_batch/class.tx_dam_list_batch.php
modfunc_list_batch/locallang.xml
modfunc_list_editsel/class.tx_dam_list_editsel.php
modfunc_list_editsel/locallang.xml
modfunc_list_list/class.tx_dam_list_list.php
modfunc_list_list/locallang.xml
modfunc_list_thumbs/class.tx_dam_list_thumbs.php
modfunc_list_thumbs/locallang.xml
modfunc_tools_config/class.tx_dam_tools_config.php
modfunc_tools_config/locallang.xml
modfunc_tools_indexsetup/class.tx_dam_tools_indexsetup.php
modfunc_tools_indexsetup/locallang.xml
modfunc_tools_indexupdate/class.tx_dam_tools_indexupdate.php
modfunc_tools_indexupdate/locallang.xml
modfunc_tools_mimetypes/class.tx_dam_tools_mimetypes.php
modfunc_tools_mimetypes/template.html
pi/setup.txt
res/emff_inx.swf
res/emff_kubrik.swf
res/emff_lila.swf
res/emff_old.swf
res/css/stylesheet.css
res/templates/mod_cmd.html
res/templates/mod_edit.html
res/templates/mod_file_list.html
res/templates/mod_info.html
res/templates/mod_list.html
res/templates/mod_navframe.html
res/templates/mod_tools.html
tests/class.tx_dam_testlib.php
tests/tx_dam_allowdeny_testcase.php
tests/tx_dam_base_access_testcase.php
tests/tx_dam_base_config_testcase.php
tests/tx_dam_base_index_testcase.php
tests/tx_dam_base_metamedia_testcase.php
tests/tx_dam_base_process_testcase.php
tests/tx_dam_base_testcase.php
tests/tx_dam_config_testcase.php
tests/tx_dam_db_testcase.php
tests/tx_dam_media_testcase.php
tests/fixtures/example-content.txt
tests/fixtures/IMG_0511
tests/fixtures/IMG_2971_.JPG
tests/fixtures/indexing.setup-set_keyword
treelib/class.tx_dam_treelib_browser.php
treelib/class.tx_dam_treelib_ebtreeview.php
treelib/class.tx_dam_treelib_elementbrowser.php
treelib/class.tx_dam_treelib_tceforms.php
tsconfig/default.txt
tsconfig/example.txt
tsconfig/minimal.txt

Some other extension-updates worked great (tt_news, address, realurl, formhandler) another one also fails with same errortype: MW_Imagemap

#13

Updated by Stefan no-lastname-given over 6 years ago

user is web0 which is a user for special web access having full access on the typo3 installation.
the user is the owner (and owning group) of typo3conf/ext/dam and access rights are 755 for folders and 644 for files
apache is running as a different user (www-data)
To me it looks like the upgrade actually did work and installing other extensions also works just fine.

Just had the same issue again when updating from 1.3.2 to 1.3.3 (on Typo 3 4.5.34).

#14

Updated by Tony Lush over 6 years ago

I got the same error when updating from 1.3.1 to 1.3.3 (TYPO3 4.5.34). The Install tool is configured to give the proper ownership and permissions, but this extension is installed as nobody:nobody. Directory and file access rights were set correctly.

I tried installing another extension, and it also was written as nobody:nobody, though the directory and file access rights were set correctly. It did not generate the errors shown in DAM_bug.jpg, and neither extension shows file differences Ingo mentioned.

#15

Updated by Riccardo De Contardi over 5 years ago

  • Status changed from New to Closed
  • TYPO3 Version set to 4.5
  • Is Regression set to No

I close this, as TYPO3 4.5.x is not supported anymore and DAM is not compatible with 6.2.x

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

#16

Updated by Riccardo De Contardi over 5 years ago

  • Subject changed from Upgrading DAM from 1.3.0 to 1.3.2 in Typo3 4.5.30 triggers undeserved error messages. to Updating extensions triggers errors due to folder permissions
  • Status changed from Closed to Needs Feedback
  • Assignee set to Stephan Großberndt

Reopened as per request of Stephan Großberndt to perform a deeper investigation

#17

Updated by Helmut Hummel over 5 years ago

Imho this has nothing to do with prmissions, but with the way extensions are extracted:

Error: File '/var/www/typo3conf/ext/dam/binding/' could not be created!!!

This is not a file but a directory. I saw this recently in a 4.x installation, but imho the problem does not exist in 6.x

#18

Updated by Stephan Großberndt over 5 years ago

  • Status changed from Needs Feedback to Closed

The error does not occur on TYPO3 6.2 or newer. 4.5 will not be fixed anymore (since this is only a display bug, the actual extraction works).

If you think that this is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Also available in: Atom PDF