tomolimo / processmaker

GLPI plugin that provides an interface with ProcessMaker (http://www.processmaker.com/)
30 stars 11 forks source link

Task still not synchronise #38

Closed manoel-cristiano closed 6 years ago

manoel-cristiano commented 6 years ago

Hi Tomolimo, how have you been?

Unfortunately I still have the same problem that I reported days ago in the issue #36

I followed what you told me before, but when I try to synchronise nothing happen.

GLPI version. 9.1.6 Processmaker version. 3.0.1.8-community

screen shot 2017-12-18 at 11 52 38 am screen shot 2017-12-18 at 11 52 52 am screen shot 2017-12-18 at 11 53 17 am screen shot 2017-12-18 at 11 54 24 am screen shot 2017-12-18 at 11 54 36 am screen shot 2017-12-18 at 11 54 45 am

tomolimo commented 6 years ago

Hello I'm not in front of my computer, but I can try to help you. When you did the PM server installation, did the install procedure asked you about one or three databases? Regards Tomolimo

manoel-cristiano commented 6 years ago

It just created one database.

tomolimo commented 6 years ago

Could you give me a screen shot of the wf_workflow database? If possible with php_mysql? I would like to have the table list. Thank you

tomolimo commented 6 years ago

Oups, sorry I was speaking about phpmyadmin or any application that can give a list of tables, like following:

TABLE_NAMES

Tables_in_wf_workflow
abe_configuration
abe_requests
abe_responses
additional_tables
addons_manager
addons_store
app_assign_self_service_value
app_cache_view
app_delay
app_delegation
app_document
app_event
app_folder
app_history
app_message
app_notes
app_owner
app_sequence
app_solr_queue
app_thread
app_timeout_action_executed
application
backup_dynaform
bpmn_activity
bpmn_artifact
bpmn_bound
bpmn_data
bpmn_diagram
bpmn_documentation
bpmn_event
bpmn_extension
bpmn_flow
bpmn_gateway
bpmn_lane
bpmn_laneset
bpmn_participant
bpmn_process
bpmn_project
calendar_assignments
calendar_business_hours
calendar_definition
calendar_holidays
case_consolidated
case_scheduler
case_tracker
case_tracker_object
catalog
configuration
content
dashboard
dashboard_das_ind
dashboard_indicator
dashlet
dashlet_instance
db_source
department
dim_time_complete
dim_time_delegate
dynaform
element_task_relation
email_event
email_server
event
field_condition
fields
gateway
gmail_relabeling
group_user
groupwf
holiday
input_document
iso_country
iso_location
iso_subdivision
language
lexico
license_manager
list_canceled
list_completed
list_inbox
list_my_inbox
list_participated_history
list_participated_last
list_paused
list_unassigned
list_unassigned_group
log_cases_scheduler
login_log
message_application
message_event_definition
message_event_relation
message_type
message_type_variable
notification_device
oauth_access_tokens
oauth_authorization_codes
oauth_clients
oauth_refresh_tokens
oauth_scopes
object_permission
output_document
pmoauth_user_access_tokens
pro_reporting
process
process_category
process_files
process_owner
process_user
process_variables
rbac_authentication_source
rbac_permissions
rbac_roles
rbac_roles_permissions
rbac_systems
rbac_users
rbac_users_roles
report_table
report_var
route
script_task
sequences
session
session_storage
shadow_table
stage
step
step_supervisor
step_trigger
sub_application
sub_process
swimlanes_elements
task
task_user
timer_event
translation
triggers
users
users_properties
usr_reporting
web_entry
web_entry_event
manoel-cristiano commented 6 years ago

Follow the screen shots. screen shot 2017-12-18 at 3 47 25 pm screen shot 2017-12-18 at 3 48 06 pm screen shot 2017-12-18 at 3 48 23 pm screen shot 2017-12-18 at 3 48 39 pm screen shot 2017-12-18 at 3 48 53 pm

tomolimo commented 6 years ago

Thank you, I think I understand the trouble. I'll give you a fix ASAP. Regards, Tomolimo

tomolimo commented 6 years ago

Could you remind me the processmaker plugin version?

manoel-cristiano commented 6 years ago

The plugin version is 3.1.6.

tomolimo commented 6 years ago

And you still have the same error in the logs?

manoel-cristiano commented 6 years ago

There is no more error in the glpi log. But anyway I still can not sync the tasks.

tomolimo commented 6 years ago

ok, then, this is not what I though. could you screen copy the config of the plugin in GLPI? (like here: https://github.com/tomolimo/processmaker/wiki/Plugin-configuration) thank you

manoel-cristiano commented 6 years ago

Follow my config.

screen shot 2017-12-18 at 4 39 56 pm

tomolimo commented 6 years ago

What are the rights of your 'handson' user in mySQL?

manoel-cristiano commented 6 years ago

The user handson has full rights on mysql. Sorry for the delay to answer.

tomolimo commented 6 years ago

Hello, Happy new year,

Could you try with latest version of the plugin?

Thank you regards, Tomolimo

sosfc commented 6 years ago

Hi Tomolimo I have the same problem with last version of plugin (3.2.1) GLPI 9.1.2 (upgraded to 9.1.6 with same result) PHP 5.6.33 Processmaker version. 3.0.1.8-community

I followed your tuto1 and it works fine (I can see the process, the users are synchronized and so are the groups) When I click on "Synchronize tasks list", I have a blank page

No tasks are synchronized from the automated task "pmtaskactions"

Thanks for your help Regards, Fernand

tomolimo commented 6 years ago

Hello You may have a trouble with the Intl PHP module which can be missing. Could you check that you have this module? And that it is activated? You may do this command: "php -m" which gives the module list. Thank you regards, Tomolimo

sosfc commented 6 years ago

Hello, There is the result of php -m

[PHP Modules] apc apcu bcmath bz2 calendar Core ctype curl date dba dom ereg exif fileinfo filter ftp gd gettext hash iconv imagick imap intl json ldap libxml mbstring mcrypt mhash mysql mysqli openssl pcntl pcre PDO pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix readline Reflection session shmop SimpleXML snmp soap sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter Zend OPcache zip zlib

[Zend Modules] Zend OPcache The international module seems to be activated Thanks

tomolimo commented 6 years ago

Hello @sosfc and @manoel-cristiano, Could you also check that GLPI server "knows" the IP address of the PM server? To check this you must try to ping PM server from the GLPI server within a terminal session open on the GLPI server. If not, you must add the IP address of ProcessMaker server in the "hosts" file of the GLPI server. Usually the hosts file is there on Linux systems: /etc/, and in C:\Windows\System32\drivers\etc\ on windows systems. Thank you, Tomolimo

sosfc commented 6 years ago

Hello Tomilimo The ping works for me Thanks

tomolimo commented 6 years ago

Hello @manoel-cristiano, @sosfc Could you test with the latest release of the server 3.0.1.8-RE-1.8 and of the plugin 3.2.3? Thank you Regards, Tomolimo

sosfc commented 6 years ago

Hello, I have tried new plugin I don't have any blank page, but no tasks are synchronized which log may I send you to help you ? Thanks Fernand

tomolimo commented 6 years ago

Hello, For GLPI, the logs are in glpi_installation_folder/files/_log/, there you should find PHP logs of GLPI, and SQL logs. For PM, it depends on how you have installed your PHP. to check, you must go to the following page in PM server and search for error_log in the php_info() 'local value' column like shown below: image

Thank you, Regards, Tomolimo

tomolimo commented 6 years ago

Hello @sosfc

I have tried new plugin

Did you also install the new PM server version 3.0.1.8-RE-1.8? Tomolimo

sosfc commented 6 years ago

Hi Tomolimo, My PM version is 3.0.1.8-commutity My errror_log variable is empty (I did a standard installation with debian distro) Attached is the php-error from my glpi server Fernand Thanks php-errors.log

tomolimo commented 6 years ago

Hello @sosfc , As in your logs it says:

2018-01-29 08:21:04 [2@srvweb2] *** PHP Notice(8): Undefined property: stdClass::$status Backtrace : ...ns/processmaker/inc/processmaker.class.php:1116 : PluginProcessmakerProcessmaker::cronPMUsers() inc/crontask.class.php:832 call_user_func() front/crontask.form.php:50 CronTask::launch()

I fear that you are not using the right release of the PM server. You must use the one I provide: 3.0.1.8-community-RE-1.8 and no other versions! See: https://github.com/tomolimo/processmaker/wiki/Introduction

Could you check here: image

Thank you, Regards, Tomolimo

tomolimo commented 6 years ago

Dear @sosfc ,

And regarding the error_log which is empty, I advise you to set in the PHP config this PHP setting to point to an existing folder where it must have the right to write. I advise you to use the one of GLPI (glpi_folder/files/_log/php-errors.log), so that in one log file you'll get error for GLPI and PM.

regards, Tomolimo

sosfc commented 6 years ago

Hi tomolimo, I reinstalled pm server with the right version (sorry for this mistake) (php intl activated, php 5.6) I tried plugin 3.2.1 and 3.2.5 with same result GLPI 9.1.6 I Have no error on the GLPI side, but some errors on the pm side Below is the content of my php error_log.log <?php /**

/**

}

Hope this helps

tomolimo commented 6 years ago

Hello @sosfc, The so-called log error content is in fact the content of a PHP file: _pm_server_folder/gulliver/thirdparty/pear/Log/errorlog.php and not the content of a log file.

Could you check where the PM server log file is? To locate it you must look at the PHP running variables like shown here: https://github.com/tomolimo/processmaker/issues/38#issuecomment-361161953

And as you said that it is empty, then could you add in your PHP.ini file the location of the GLPI error log file? So that you'll get all error messages into the same log file. Then you should be able to clear the log files, and redo a test in order to get errors (if any) related to the test.

Thank you, Regards, Tomolimo

tomolimo commented 6 years ago

Hello @manoel-cristiano and @sosfc , Could you tell me the default language you have defined in GLPI and in PM server? I think this is root cause of the issue when those languages are different. Thank you, Regards, Tomolimo

tomolimo commented 6 years ago

Hello,

Could you copy/paste the following screencopy?

image

I need to know which languages are installed in PM server.

Thank you, Regards, Tomolimo

sosfc commented 6 years ago

Hello Tomolimo My default language is French pm_language.pdf

sosfc commented 6 years ago

Here is the GLPI plugin configuration screen pm_glpi.pdf

tomolimo commented 6 years ago

Hello The trouble is coming from the fact that you have installed "fr-FR", and not "fr", see https://github.com/tomolimo/processmaker-server/wiki/Languages

Thank you Regards, Tomolimo

sosfc commented 6 years ago

Hello Tomolimo Thanks for the fast reply ! The problem is that for version 3.0 there is no fr file (just fr-FR) and when I download the fr file of the "po files" repository, it says "invalid po file format" Thanks for your help Regards Fernand

tomolimo commented 6 years ago

Hello, You have to change it as explained here https://github.com/tomolimo/processmaker-server/wiki/Languages#localization-internationalization-languages :

  1. rename of the file
  2. edit of the content header

regards, Tomolimo

sosfc commented 6 years ago

You got it ! It works fine Thanks ! Fernand

manoel-cristiano commented 6 years ago

Hello, @tomolimo I gonna chanche my language configuration in GLPI, because I'm using pt-BR. But in process maker I'm using (en international).

tomolimo commented 6 years ago

Hello @manoel-cristiano Could you post here the screen shot of the installed languages in PM server? Like this: image Thank you, Regards, Tomolimo

tomolimo commented 6 years ago

Hello As there has been no answer since last post, close this issue. Feel free to re-open it if you've get news. Thank you, Regards, Tomolimo

iamaer4fa commented 5 years ago

Hi, can we revive this thread?

Have the same error, no synchronization of PM tasks in GLPI so I cannot map the GLPI ticket with my PM processes. Here is the log error of php-errors log:

Processmaker Plugin: - User not existing in glpi_plugin_processmaker_users table. 2019-05-04 15:54:07 [7@smpc.steniel.com.ph] From PluginProcessmakerProcessmaker::login() in /var/www/glpi/plugins/processmaker/inc/processmaker.class.php line 276 Processmaker Plugin: - User not existing in glpi_plugin_processmaker_users table. 2019-05-04 15:54:07 [7@smpc.steniel.com.ph] From PluginProcessmakerProcessmaker::login() in /var/www/glpi/plugins/processmaker/inc/processmaker.class.php line 276 Processmaker Plugin: - User not existing in glpi_plugin_processmaker_users table.

I followed exactly, the tutorial and got success at the Setup -> General -> Processmaker config:

image

rohit-ambre-uno commented 5 years ago

hi @allanregistos , have you ran "pmusers" cron job from automatic actions?

from the errors it seems like you have not synced users from glpi to processmaker.

iamaer4fa commented 5 years ago

Hi rohit-ambre-uno, I did not for I do not know that I needed to do that. For the synchronization of users, did you mean, matching username and password for both glpi and processmaker or do I have to get a glpi function?

Thanks for responding.. Allan

tomolimo commented 5 years ago

Hello @allanregistos, As this issue is closed, could you open a new issue and link it to this one (using a sharp + issue id, like: #38) if you see that the behavior is the identical? Thank you Regards, Tomolimo