TAGS Metadata not being saved

#1

Hello,
I’m using Pydio server 8 community updated to latest on Ubuntu 18.04 with PHP 7.2 and Mysql 5.7.
I’m trying to add tags to a workspace by enabling the file metastore plugin on local folder and adding a text metadata field of TAG type.
When I input a tag for a file, a folder or multiple files at once, the hidden file is created but the tags just aren’t there.
This is the content of an .ajxp_meta where I added a tag to a folder:

a:1:{s:20:“Revisione File Biffi”;a:1:{s:24:“AJXP_METADATA_SHAREDUSER”;a:1:{s:10:“users_meta”;a:0:{}}}}

I have no errors in log files or in the application log.
any clue?

Thanks for your help

Alberto

#2

Hi,
i tried doing the same (i’m on pydio 8.2.3), could you tell me your exact pydio version,
here’s my ajxp_meta content

a:1:{i:402;a:1:{s:24:"AJXP_METADATA_SHAREDUSER";a:1:{s:10:"users_meta";a:1:{s:4:"tags";s:7:"tag-xyz";}}}}

otherwise, could you clear the plugins cache,

rm -f /var/www/pydio/data/cache/plugins_*
rm -f /var/www/pydio/data/cache/i18n/*

then restart your webserver and try to create another tag, on a file/folder.

#3

Hello zayn,
thanks for your kind help.
Clearing the plugin cache did not solve the issue.
I’m on 8.2.3 too.
I also have another anomaly that probably has to do with some form of caching: 2 months gao I move Pydio from one VM to another and from Ubuntu 14 to Ubuntu 18, now if I use the diagnostics in the admin interface I still see the data from the old server.
Like:

Client : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
Command Line Available : Yes
DOM Enabled : Yes
Exif Enabled : Yes
GD Enabled : Yes
Upload Max Size : 10M
Memory Limit : 128M
Max execution time : 30
Safe Mode : 0
Safe Mode GID : 0
Xml parser enabled : 1
MCrypt Enabled : Yes
Server OS : Linux
Session Save Path : /var/lib/php5
Session Save Path Writeable : Yes
PHP Version : 5.5.9-1ubuntu4.16
Locale : C
Directory Separator : /
PHP APC extension loaded : Yes
PHP Output Buffer disabled : No
PHP File Uploads enabled : Yes
Magic quotes disabled : Yes
Upload Tmp Dir Writeable : Yes
PHP Upload Max Size : 10485760
PHP Post Max Size : 10485760
Users enabled : Yes
Guest enabled : No
Writeable Folders : [cache:true,
data:true]
Zlib Enabled : Yes

As you can see it reports PHP ver 5 while I’m on 7.2.
Isn’t this odd?
Bye

Alberto

#4

Hi Zayn,
sorry for wasting your time, just removed the diag static file and now the diag are ok:

Client : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0
Crypto Extension Detected : OpenSSL
PHP Opcode Cache extension loaded : Yes
Command Line Available : Yes
DOM Enabled : Yes
Exif Enabled : Yes
PHP File Uploads enabled : Yes
GD Enabled : Yes
PHP INTL extension loaded : Yes
Upload Max Size : 1G
Memory Limit : 256M
Max execution time : 30
Safe Mode : 0
Safe Mode GID : 0
Xml parser enabled : 1
Magic quotes disabled : Yes
PHP Output Buffer disabled : No
Server OS : Linux
Session Save Path : /var/lib/php/sessions
Session Save Path Writeable : Yes
PHP Version : 7.2.15-0ubuntu0.18.04.2
Locale : it_IT.UTF-8
Directory Separator : /
Upload Tmp Dir Writeable : Yes
PHP Upload Max Size : 1073741824
PHP Post Max Size : 1073741824
Users enabled : Yes
Guest enabled : No
Writeable Folders : [cache:true,
data:true]
Zlib Enabled : Yes

Thank you

Alberto

#5

Could you try to add a new tag field,


also could you take a look at the right panel
and see if you see your meta after you’ve add it,

#6

Hi zayn,
already tried that… no success.
Tag meta:

Comments meta

Now the user interface:

After entering values:

The result:

As you can see the comments type works while the tags type doesn’t.
Thank you for your time
Alberto

#7

Hi,
Try to set PHP Output Buffer disabled : Yes

#8

Hello c12simple,
thanks for your contribution and your time: unfortunately your suggestion did not help.
Bye

Alberto

#9

did you make sure to restart your webserver? if you"re on apache just restart apache

#10

Hello Zayn,
yes, I did restart apache in order to have php.ini processed.
I tried another experiment: I installed an instance of Pydio Cells and tags don’t work in cells either.
I have this error on startup:

2019-04-08T11:44:20.698+0200	INFO	pydio.grpc.user-meta	Inserting default namespace for metadata
2019-04-08T11:44:20.699+0200	ERROR	pydio.grpc.user-meta	could not initialise service at version 1.4.1	{"error": "Error 1062: Duplicate entry 'usermeta-tags' for key 'namespace'"}
2019-04-08T11:44:20.699+0200	ERROR	pydio.grpc.user-meta	Could not run 	{"error": "Error 1062: Duplicate entry 'usermeta-tags' for key 'namespace'"}

While tags seem correctly configured:

And still I get the possibility to add tags but tags are not saved.

Thanks for your help

Alberto

#11

Hi,

weird error, are you using the same user that runs cells and has access to the folders pointing to the datasources?

Also could you tell me your OS, Mysql version and Cells version.

#12

Hi zayn,
absolutely not, the two instances are totally unrelated if not for the fact that they use the same VM and rev proxy.
The data dir are different, I’m using www-data owner (apache user) for Pydio server and pydio user (as per manual) for cells.
I was merely testing Cells…
Os: ubuntu 18.04 server LTS, Mysql 5.7.25, cells 1.4.1
Bye

Alberto

#13

Hi,

you should be able to reuse tags created once on another files/folders the autocompletion will show them to you.

This error happened because you might have an old cells installation that was not cleaned.

It could be from this that the metadata requests are not done properly(did you try without using the reverse proxy?)

#14

Hi zayn,
since no tag is being saved I cannot see them.
I’ll clear up the test installation and try again on cells.
Already tried without reverse proxy: still can save meta comments and cannot save meta tags.
To your knowledge, is there any specific PHP extension that is used by meta tag type?
Thanks

Alberto

Update: cleared the cells install, performed new install, same problem.
Update: a create a fresh install of cells and tried tags again with no success i also enabled production logs but still no errors. and tags are not working

#15

Hi,
about Cells and the tags, i do not understand, can you attach tags and seem them as this screenshot,


and then if you try to put tags on other files you will see them and can append them to other files as i you can notice on the screen of the previous post.

Now for pydio8, could you look inside your /etc/php/version/apache2/php.ini look for the line output_buffering = XXXX and set it to output_buffering = off and then restart apache2.

you can verify that this has been enabled when you hae this line in the diag set to yes,

#16

Hi Zayn,
regarding Cells, if you wish I can give you admin access on it so you can see by yourself.
On Pydio 8 I DID disable output buffering as you can see in diag:

Client : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0
Crypto Extension Detected : OpenSSL
PHP Opcode Cache extension loaded : Yes
Command Line Available : Yes
DOM Enabled : Yes 
Exif Enabled : Yes
PHP File Uploads enabled : Yes
GD Enabled : Yes
PHP INTL extension loaded : Yes
Upload Max Size : 1G 
Memory Limit : 256M
Max execution time : 30
Safe Mode : 0
Safe Mode GID : 0
Xml parser enabled : 1
Magic quotes disabled : Yes
PHP Output Buffer disabled : Yes
Server OS : Linux
Session Save Path : /var/lib/php/sessions
Session Save Path Writeable : Yes
PHP Version : 7.2.15-0ubuntu0.18.04.2
Locale : it_IT.UTF-8
Directory Separator : /
Upload Tmp Dir Writeable : Yes
PHP Upload Max Size : 1073741824
PHP Post Max Size : 1073741824
Users enabled : Yes
Guest enabled : No
Writeable Folders : [<b>cache</b>:true,<br> <b>data</b>:true]
Zlib Enabled : Yes

Do you happen to know where all tags are saverd, I mean where the complete list of possible alrerady used tags is saved?
Thanks

Alberto

#17

Hi,
if you do not mind i’m not against an external access to your cells instance, i would like to see how the tags behaves, the tags are stored inside the database for cells.

#18

Hi zayn,
sounds good to me, how can I send you the credentials?
For Db access I’ll grant you ssh access with pydio user if it’s ok for you.
Bye

Alberto

#19

If you can send me a private message with all the access informations it would be wonderful (i think if you click on my username a menu pops with a message section).
For the database, the table is, idm_usr_meta.

#20

Hello Zayn,
you will never believe this: while I was testing your account I tried tags and it worked!
While they still do not work for the admin user I created upon install.
MANY years ago there was a bug in Pydio concerning the first admin user that wasn’t functioning properly, is this still an issue in cells?

Alberto