Ask questions about installing and configuring ProcessMaker 3
#830083
Hello
I have a problem after installing a clean version of PM3.5.4 from SourceForge on CentOS with Stack 265

When I'm trying to open Admin->Task Scheduler I'get red pop up box with "Request failed with status code 401" and in browser console
Code: Select all
VM643 chunk-vendors.js:32          GET https://X.X.X.X/api/1.0/workflow/scheduler?category=case_actions 401 (Unauthorized)
Next when I'm going to Designer Tab, I get error in console but I can create process. When I try to create Dynaform, nothing happend. Web consol output.
Code: Select all
mafe-4d5932e1-cc03bf0e.js:1274          POST https://X.X.X.X/api/1.0/workflow/ 401 (Unauthorized)
RestClient.consume @ mafe-4d5932e1-cc03bf0e.js:1274
RestClient.postCall @ mafe-4d5932e1-cc03bf0e.js:1274
RestProxy.post @ mafe-4d5932e1-cc03bf0e.js:31075
PMRestClient.post @ mafe-4d5932e1-cc03bf0e.js:80188
PMRestClient.executeRestClient @ mafe-4d5932e1-cc03bf0e.js:80138
(anonimowa) @ mafe-4d5932e1-cc03bf0e.js:99341
c @ mafe-4d5932e1-cc03bf0e.js:1111
fireWith @ mafe-4d5932e1-cc03bf0e.js:1111
ready @ mafe-4d5932e1-cc03bf0e.js:1111
q @ mafe-4d5932e1-cc03bf0e.js:1111

mafe-4d5932e1-cc03bf0e.js:1113          GET https://X.X.X.X/api/1.0/workflow/project/71790538362ccf7f9865ff9084952619 401 (Unauthorized)
send @ mafe-4d5932e1-cc03bf0e.js:1113
ajax @ mafe-4d5932e1-cc03bf0e.js:1113
PMProject.load @ mafe-4d5932e1-cc03bf0e.js:72364
(anonimowa) @ mafe-4d5932e1-cc03bf0e.js:99349
c @ mafe-4d5932e1-cc03bf0e.js:1111
fireWith @ mafe-4d5932e1-cc03bf0e.js:1111
ready @ mafe-4d5932e1-cc03bf0e.js:1111
q @ mafe-4d5932e1-cc03bf0e.js:1111

mafe-4d5932e1-cc03bf0e.js:1274 Can't load XHR: POST „https://X.X.X.X/api/1.0/workflow/”.
RestClient.consume @ mafe-4d5932e1-cc03bf0e.js:1274
RestClient.postCall @ mafe-4d5932e1-cc03bf0e.js:1274
RestProxy.post @ mafe-4d5932e1-cc03bf0e.js:31075
PMRestClient.post @ mafe-4d5932e1-cc03bf0e.js:80188
PMRestClient.executeRestClient @ mafe-4d5932e1-cc03bf0e.js:80138
(anonimowa) @ mafe-4d5932e1-cc03bf0e.js:99341
c @ mafe-4d5932e1-cc03bf0e.js:1111
fireWith @ mafe-4d5932e1-cc03bf0e.js:1111
ready @ mafe-4d5932e1-cc03bf0e.js:1111
q @ mafe-4d5932e1-cc03bf0e.js:1111
mafe-4d5932e1-cc03bf0e.js:72379 Uncaught ReferenceError: response is not defined
    at Object.error (mafe-4d5932e1-cc03bf0e.js:72379:47)
    at c (mafe-4d5932e1-cc03bf0e.js:1111:26036)
    at Object.fireWith [as rejectWith] (mafe-4d5932e1-cc03bf0e.js:1111:26840)
    at k (mafe-4d5932e1-cc03bf0e.js:1113:14283)
    at XMLHttpRequest.r (mafe-4d5932e1-cc03bf0e.js:1113:18646)
CentOS 7.9
PM 3.5.4
PHP 7.3.33
MySQL 5.7.38
MAFE HEAD.cc03bf0
Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips
#830085
Reply myself. Install second time. Now I know that the problem is in SSL. After install I checked PM on HTTP and it's worked great. Then I load website on HTTPS and the errors come back.

This is my pmos.conf. Example from stack 265 doesn't redirect to https, only to http://192.168.41.1sysworkflow[...] invalid URL
Code: Select all
<VirtualHost *:80>
    ServerName 192.168.1.41
 
    DocumentRoot /opt/processmaker/workflow/public_html
    DirectoryIndex index.html index.php
 
    ErrorLog /var/log/httpd/pm-error.log
    CustomLog /var/log/httpd/pm-access.log combined
     
    <Directory /opt/processmaker/workflow/public_html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
 
        ExpiresActive On
        SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{THE_REQUEST} ^.*/\.\.
            RewriteRule ^ - [L,R=404]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
        </IfModule>
    </Directory>
    #PHP-FPM
    <FilesMatch "\.php">
            SetHandler "proxy:unix:/var/run/php-fpm/processmaker.sock|fcgi://localhost"
    </FilesMatch>
 
</VirtualHost>
<VirtualHost *:443 >
    ServerName 192.168.1.41

    SSLEngine on
    SSLCertificateFile "/opt/httpd/conf/server.crt"
    SSLCertificateKeyFile "/opt/httpd/conf/server.key"
    SSLCertificateChainFile "/etc/pki/tls/certs/ca_rapidssl.crt"

    DocumentRoot /opt/processmaker/workflow/public_html
    DirectoryIndex index.html index.php

    <Directory /opt/processmaker/workflow/public_html>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            Allow from all
            Require all granted

            ExpiresActive On
        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{THE_REQUEST} ^.*/\.\.
            RewriteRule ^ - [L,R=404]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
        </IfModule>

        #PHP-FPM
        <FilesMatch "\.php">
            SetHandler "proxy:unix:/var/run/php-fpm/processmaker.sock|fcgi://localhost"
        </FilesMatch>

        #Deflate filter is optional. It reduces download size, but adds slightly more CPU processing:
        AddOutputFilterByType DEFLATE text/html

    </Directory>
</VirtualHost>

edit:
I changed pmos.conf to this and now it's working. Maybe someone help this and I hope it's end of errors
Code: Select all
<VirtualHost *:80>
ServerName 127.0.0.1
Redirect / https://192.168.1.33/
</VirtualHost>
<VirtualHost *:443>
    ServerName 192.168.1.33

    DocumentRoot /opt/processmaker/workflow/public_html
    DirectoryIndex index.html index.php
SSLEngine on
    SSLCertificateFile "/opt/httpd/conf/server.crt"
    SSLCertificateKeyFile "/opt/httpd/conf/server.key"
    <Directory /opt/processmaker/workflow/public_html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
        ExpiresActive On

        <IfModule mod_rewrite.c>
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^.*/(.*)$ app.php [QSA,L,NC]
        </IfModule>
    </Directory>
</VirtualHost>
In https://wiki.processmaker.com/3.1/ProcessMaker_CentOS_RHEL_Installation#VirtualHost_in_Apache_with_SSL in Redirect is mistake, should be https not http :wink:
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]