Folder Locked Folder Locked
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Folder Locked

Started by ddoc9942, May 26, 2010, 06:39:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ddoc9942

Colleagues of the Coppermine

I'm having an interesting problem. When you install version 1.4, to make batch after selecting the directory, the system created the thumbnails. But when I clicked to insert the album, go to the directory selection screen. I searched the forum and found some suggestions to solve the problem. But it did not work. I checked the apache / php and changed everything that was recommended by the documentation. Still did not work. I installed version 1.5.3 and for some unknown reason it worked. But Murphy's Law was present. I can do the batch and add all the files, only external IP. If I'm on the network icon appears in the Folder Locked. All rights in the folder are 777. I really can not understand. I installed exactly as the tutorial indicates. Outside the network works well. But not in the network. Do not want to go back to 1.4 because this version did not work either external or local. If anyone can help me.

I'm translating a Portuguese version for Brazil. As soon as he is ready, I send.

I'm also posting the debug info.

--------------------

USER:
------------------
Array
(
    [ID] => 9a05b88b5f1ca420e84f94cb6a316148
    [am] => 1
    [lang] => brazilian_portuguese
    [liv] => Array
        (
            [0] => 38511
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => admin
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg15x_config [include/init.inc.php:177] (0 ms)
    [1] => SELECT * FROM cpg15x_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT user_id, time FROM `cpg15`.cpg15x_sessions WHERE session_id = '6e8e7bfd8c5576cdb80acbbe5deb5838' [bridge/coppermine.inc.php:258] (0 ms)
    [3] => SELECT user_id, user_password FROM `cpg15`.cpg15x_users WHERE user_id = 1 [bridge/coppermine.inc.php:270] (0 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `cpg15`.cpg15x_users AS u LEFT JOIN `cpg15`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' [bridge/udb_base.inc.php:72] (0 ms)
    [5] => SELECT user_group_list FROM `cpg15`.cpg15x_users AS u WHERE user_id='1' AND user_group_list <> '' [bridge/coppermine.inc.php:200] (0 ms)
    [6] => SELECT MAX(group_quota) AS disk_max, MIN(group_quota) AS disk_min, MAX(can_rate_pictures) AS can_rate_pictures, MAX(can_send_ecards) AS can_send_ecards, MAX(can_post_comments) AS can_post_comments, MAX(can_upload_pictures) AS can_upload_pictures, MAX(can_create_albums) AS can_create_albums, MAX(has_admin_access) AS has_admin_access, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:323] (0 ms)
    [7] => SELECT group_name FROM  cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:327] (0 ms)
    [8] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:318] (0 ms)
    [9] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 1 [include/init.inc.php:376] (0 ms)
    [10] => SELECT * FROM cpg15x_plugins [plugins/imageflow/include/load_imageflowset.php:22] (0 ms)
    [11] => SELECT * FROM cpg15x_mod_imageflow [plugins/imageflow/include/load_imageflowset.php:32] (0 ms)
    [12] => SELECT flag, abbr FROM cpg15x_languages WHERE lang_id='brazilian_portuguese' LIMIT 1 [plugins/social_bookmarks/init.inc.php:65] (0 ms)
    [13] => SELECT * FROM cpg15x_plugin_social_bookmarks_services WHERE service_active='YES' [plugins/social_bookmarks/init.inc.php:73] (0 ms)
    [14] => DELETE FROM cpg15x_banned WHERE expiry < '2010-05-26 13:28:05' [include/init.inc.php:432] (0 ms)
    [15] => SELECT null FROM cpg15x_banned WHERE (user_id=1 OR '172.168.0.13' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:448] (0 ms)
    [16] => SELECT aid, title FROM cpg15x_albums WHERE 1 [searchnew.php:360] (0 ms)
    [17] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2366] (32 ms)
    [18] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2314] (0 ms)
    [19] => DELETE FROM cpg15x_temp_messages WHERE time < 1274887685 [include/functions.inc.php:4867] (0 ms)
    [20] => SELECT filepath, filename FROM cpg15x_pictures WHERE filepath LIKE '11500a11999%' [searchnew.php:338] (90 ms)
    [21] => SELECT aid, title, category FROM cpg15x_albums ORDER BY pos [include/functions.inc.php:5860] (0 ms)
    [22] => SELECT cid, rgt, name FROM cpg15x_categories ORDER BY lft [include/functions.inc.php:5877] (0 ms)
    [23] => SELECT user_id AS user_id, user_name AS user_name FROM `cpg15`.cpg15x_users ORDER BY user_name [include/functions.inc.php:5899] (0 ms)
    [24] => SELECT extension, mime, content, player FROM cpg15x_filetypes [include/functions.inc.php:5732] (0 ms)
)

==========================
GET :
------------------
Array
(
    [startdir] => 11500a11999
)

==========================
POST :
------------------
Array
(
)

==========================
COOKIE :
------------------
Array
(
    [picinfo] => block
    [cpg15x_data] => YTo0OntzOjI6IklEIjtzOjMyOiI5YTA1Yjg4YjVmMWNhNDIwZTg0Zjk0Y2I2YTMxNjE0OCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czoyMDoiYnJhemlsaWFuX3BvcnR1Z3Vlc2UiO3M6MzoibGl2IjthOjE6e2k6MDtzOjU6IjM4NTExIjt9fQ==
    [fdc28e38d34f2e8afb01d209b7dd51ee] => 96e2d417a1277250b33eb10db75f743d
    [686d2582f47b6fcfb000f05ca380a766] => 3a3caa24a50a7474c69b46385ed21c06
    [PHPSESSID] => l60lqrnsgscns8nf6iesirm12c3e9lgs
    [coppermine_data] => YTozOntzOjI6IklEIjtzOjMyOiJkNjcwOTA0YjdhMDYxYzhkMTRiYWNjNzA5NmE4ZTBkNiI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czoxMDoicG9ydHVndWVzZSI7fQ==
    [testing] => 1
    [sid] => e8c828fcad27aacc163b2bb7f7b9ec70
    [cpgim_38511] => 0
)

==========================
SESSION :
------------------
Array
(
    [php_captcha] => 01e2514abf657a435d7d2f5075481d33
)

==========================
VERSION INFO :
------------------
PHP version        5.3.2                 OK
MySQL version      5.1.41-ndb-7.0.13-log OK
Coppermine version 1.5.3                 RC

==========================
Module: GD
------------------
Exact version                    2.0.34                     
GD Version                       bundled (2.0.34 compatible)
FreeType Support                 1                         
FreeType Linkage                 with freetype             
T1Lib Support                    1                         
GIF Read Support                 1                         
GIF Create Support               1                         
JPEG Support                     1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url                 
charset              utf-8                                       
allow_private_albums 1                                           
cookie_name          cpg15x                                     
cookie_path          /                                           
impath               /usr/include/ImageMagick                   
lang                 portuguesbr                                 
main_page_layout     breadcrumb/catlist/alblist/random,2/lastup,2
silly_safe_mode      0                                           
smtp_host                                                       
theme                curve                                       
thumb_method         gd2                                         

==========================
Plugins
------------------
Name           File replacer                                                                       
Actions        page_start                                                                           
Filters        file_data                                                                           
--------------
Name           Imageflow                                                                           
Actions        plugin_install, plugin_uninstall                                                     
Filters        plugin_block, page_meta                                                             
--------------
Name           Mass Import                                                                         
Actions        page_start                                                                           
Filters        admin_menu                                                                           
--------------
Name           Panorama Viewer                                                                     
Actions                                                                                             
Filters                                                                                             
--------------
Name           Image Preloader                                                                     
Actions                                                                                             
Filters                                                                                             
--------------
Name           Image Manipulation                                                                   
Actions        page_start, plugin_install, plugin_uninstall, plugin_configure                       
Filters                                                                                             
--------------
Name           Filetypes editor                                                                     
Actions        page_start                                                                           
Filters        admin_menu                                                                           
--------------
Name           Social Bookmarks                                                                     
Actions        plugin_install, plugin_uninstall, plugin_cleanup, plugin_configure                   
Filters        theme_pageheader_params, admin_menu, sys_menu, page_meta, plugin_block, template_html
--------------

==========================
Server restrictions
------------------
safe_mode                                                     
safe_mode_exec_dir                                             
safe_mode_gid                                                 
safe_mode_include_dir                                         
sql.safe_mode                                                 
disable_functions                                             
file_uploads             1                                     
include_path             .:/usr/share/php5:/usr/share/php5/PEAR
open_basedir                                                   
allow_url_fopen          1                                     
max_execution_time       30                                   
max_input_time           60                                   
upload_max_filesize      50M                                   
post_max_size            50M                                   
memory_limit             128M                                 
suhosin.post.max_vars    1000                                 
suhosin.request.max_vars 1000                                 


==========================
Page (performance)
------------------
Parameter        Current   Peak     
Memory usage     10.96 MiB 11.85 MiB
Page generation  10700 ms  10700 ms
Page query time  122 ms    122 ms   
Page query count 25        25       


==========================
               

phill104

Please post a link to your site as per the board rules - http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616

Please don't post debug output unless requested, again in the rules. We know users are trying to be helpfull when doing this but we can see it for ourselves at the right time when we have the link to your site.

Finally, have you done everything outlined here - http://documentation.coppermine-gallery.net/en/upload_troubleshooting.htm#upload_trouble
It is a mistake to think you can solve any major problems just with potatoes.


phill104

It would have been helpfull had you done as suggested above and provided a test user account and all the other things asked for above.

The actual link to your instal is - http://1rilondrina.no-ip.org/dms/cpg15/

Please try and make links clickable as we are short on time. Having to copy and paste etc just wastes even more.

Without the above in place all I can do is make a guess as to what is wrong.

I am guessing what you are asking is :-

When you directly create folders on your system they don't work
When you create a folder and upload files to it via ftp it works

Or maybe vice versa.

If this is occuring then the obvious cause is an ownership problem. Different owners are set with the different upload methods and the script may not have permission to edit the file depending on those permissions. Even though the files are supposedly 777 they still may not have the right permissions as one or the iother of your upload methods might be in a special group.

Read up on linux file ownership (google it) and you may understand what I am on about. Bear in mind the system can have special groups outside the chmod settings that have special permissions.

Problems like this are one reason why we don't recommend self hosting.
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

Quote from: ddoc9942 on May 26, 2010, 06:39:20 PM
I can do the batch and add all the files, only external IP. If I'm on the network icon appears in the Folder Locked. [..] Outside the network works well. But not in the network.
I don't understand what you are talking about. Which internal/external IP/network ???


QuotePage generation  10700 ms  10700 ms
Are all of your pages loads so slowly?

Joachim Müller


ddoc9942

Internal IP is when I access the server on my local network. External IP is when I access the server using the Internet.

ddoc9942

a question ... which the limit of images supported by coppermine? I have to upload 480,000 images. This is why we place a particular server. And these pictures are changed once a week. Each week 3,000 images are changed. Será que eu vou conseguir fazer upload por batch com este volume?

Αndré

Quote from: ddoc9942 on May 27, 2010, 06:42:01 PM
a question ... which the limit of images supported by coppermine? I have to upload 480,000 images. This is why we place a particular server. And these pictures are changed once a week. Each week 3,000 images are changed. Será que eu vou conseguir fazer upload por batch com este volume?
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270618.html#msg270618

ddoc9942

Hi guys, already solved the problem. put the user apache wwwrun the group owner of the folders and running. appreciate everyone's help.

onthepike

Quote from: ddoc9942 on May 28, 2010, 01:04:53 AM
Hi guys, already solved the problem. put the user apache wwwrun the group owner of the folders and running. appreciate everyone's help.

Great news. If you wouldn't mind, would you go ahead and resolve your thread as requested in Board Rules.