Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Batch Add permissions issue  (Read 11559 times)

0 Members and 1 Guest are viewing this topic.

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Batch Add permissions issue
« on: June 17, 2014, 08:08:11 pm »

I have a clean install of CPG15x v 1.5.28. I had been running an older version with no issues. I deleted that version and database to start over (it was just a test site so no need to migrate). Now I am serious about getting the gallery up and running. I am using a self hosted server (Ubuntu 12.04) and have the flexibility to make what changes I need. That said, I am trying to add files to an album, and get the following:

/include/functions.inc.php
Notice line 3600: Undefined index: url_prefix
Notice line 3600: Undefined index:
Notice line 3606: Undefined index: url_prefix
Notice line 3606: Undefined index:

/include/logger.inc.php
Warning line 62: fopen(logs/global.log.php): failed to open stream: Permission denied
Warning line 63: fwrite() expects parameter 1 to be resource, boolean given
Warning line 64: fwrite() expects parameter 1 to be resource, boolean given
Warning line 65: fclose() expects parameter 1 to be resource, boolean given

I should add that the files are on another (local) Ubuntu server and mounted to the albums folder using fstab. The folders and files are displayed correctly and the permissions are all set to RW.

I tried copying a file to a folder I created in albums, with the same result (not added) except, no error logs were created.

Attached is the debug info for the batch add and PHP version info

Thanks for your help.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #1 on: June 19, 2014, 10:15:09 am »

Unfortunately I don't know at which point the batch-add fails. Please describe the process more detailed and attach screenshots of the issue.


Additionally, you should check the permissions of
fopen(logs/global.log.php): failed to open stream: Permission denied
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #2 on: June 19, 2014, 02:55:16 pm »

The process I follow is:

Open CPG
Select Batch add files
Select Folder (see 01_Select_Folder.png)
Select 'OK' (See 02_Select_OK.png)
Select  Insert Selected File (See 03_Selectect_Insert_Selected_File.png)
The process runs and then displays as shown in 04_Result_of_Insert_Attempt.png and the error messages as described before appear.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #3 on: June 19, 2014, 03:11:05 pm »

Please hover over the radar icon to get some more information. The debug output isn't relevant at this point.
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #4 on: June 19, 2014, 09:10:24 pm »

Okay, hovering over the radar icon it says Error executing ImageMagick - Return value 1

I did another clean install, this time with no extra plugins. As before, since CPG couldn't read/find the path (/usr/bin/) to ImageMagick during the install, I created a folder under cpg15x, called bin, and copied convert to the folder.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #5 on: June 19, 2014, 09:39:48 pm »

Alternatively use GD2 as resize method (you can choose that in the installer and also later in the config - admin.php).
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Batch Add permissions issue
« Reply #6 on: June 19, 2014, 11:36:56 pm »

Out of interest, how are you installing Coppermine? Out of the box it selects GD2 unless you are using your hosts installer?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #7 on: June 20, 2014, 01:09:50 pm »

I downloaded the zip file off the coppermine web site and uploaded it to my server. When I got to the step for selecting the editor, imagemagick was the default choice with /usr/bin as the location for convert. when I tried to test that, it told me that the path wasn't valid. That's when I figured that the web page didn't have access outside of /var/www/myweb.com/web/cpg15x. That's why I copied convert into the cpg15x folder
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #8 on: June 20, 2014, 05:00:03 pm »

update:

the radar screen now shows:
Error executing ImageMagick - Return value 1 CMD line: /var/www/clients/client1/web1/web/cpg15x/bin/convert -quality 80 -geometry 128x96 'albums/california_june_2006/S5000063.jpg' 'albums/thumb_california_june_2006.jpg'. The convert program said:convert unable to open image 'albums/california_june_2006/thumb_S5000063.jpg': @error/blob.c/OpenBlob/2587.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #9 on: June 20, 2014, 07:35:12 pm »

Please try GD2 instead of IM as resize method.
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #10 on: June 20, 2014, 07:53:48 pm »

okay, will do. I prefer to use im but will change
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #11 on: June 20, 2014, 08:07:37 pm »

Feel free to search for the error message
Quote
error/blob.c/OpenBlob/2587

I assume it's a file system permission issue. The test with GD2 will probably help us to identify the cause.
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #12 on: June 24, 2014, 03:52:51 pm »

Another fresh install with GD2 as the editor. now the error reads "Unable to create thumbnail or reduced size image"

When I try upload the error is "Impossible to move"
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Batch Add permissions issue
« Reply #13 on: June 24, 2014, 04:46:30 pm »

Again, that points to file permissions on your server. Speak to your host with the exact time of the error message and they can look in their logs. Hopefully they will be able to see exactly what needs changing.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #14 on: June 24, 2014, 05:58:38 pm »

I'm self hosted, what logs should I be looking at?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Batch Add permissions issue
« Reply #15 on: June 24, 2014, 06:55:22 pm »

Apache Error logs, I've no idea which as I do not know your setup.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Batch Add permissions issue
« Reply #16 on: June 25, 2014, 10:53:23 am »

This thread is marked as solved. If it's solved, please post the solution. If not, please double check if the albums directory and all sub-directories are set to 777.
Logged

amerkfan

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
Re: Batch Add permissions issue
« Reply #17 on: June 26, 2014, 01:35:02 pm »

Final update:

Thinking about the permissions issue, the solution I came up with was to move/mount the RAID drives to the server that is hosting cpg15x, then I mounted the folder I needed to the albums folder in cpg15x using /path/to/RAID/mount/folder    /var/www/web_page_location/web/cpg15x/albums    none    bind

This allows the correct permissions to access the files I need.

Thanks for your help and mental prodding to get me to this solution.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.