mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Workflow exceeded "max_user_connections" #4784
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4784
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SinergiaCRM on GitHub (Jun 13, 2022).
Sometimes, when editing an existing workflow, the EditView of the Workflows module does not load successfully: some of the fields aren't loaded. Then, if the user saves the workflow not being aware of that lack of data, the workflow will be saved with inconsistent data, with the risk of further executions causing undesired effects. This screenshot shows how the workflow looks half-loaded:
This happens mainly when the workflow has a certain amount of fields/values (for record creation action, etc.).
Checking the errors log, this message appears:
Tue Jun 7 10:28:38 2022 [10828][-none-][FATAL] Could not connect to DB server localhost as xxxxxxxxx. port : User 'xxxxxxxxx' has exceeded the 'max_user_connections' resource (current value: 20)Increasing the value of the max_user_connections solves the problem. However, we are wondering if this might be a design issue in the logic of the field loading in the Workflows module. Is it really necessary for a module to require more than 20 database connections to load a view? If this is confirmed, shouldn't it be documented in the requirements?
Issue
When editing a workflow with certain amount of fields, not all the fields/values are loaded.
Expected Behavior
All the fields should be loaded.
Actual Behavior
Some of the fields might not be loaded. In that case, if the user saves the record again, the right workflow might be overwritten and wrongly executed.
Possible Fix
Redesign the way the workflow editview is loaded.
Steps to Reproduce
Context
If the workflow is saved corrupted, it can be executed with undesired behavior.
Your Environment
SuiteCRM Version used: Version 7.12.5
Browser name and version: Chrome Versión 100.0.4896.88 (Build oficial) (64 bits), Firefox 100.0
Environment name and version: MySQL, PHP 7
Operating System and version: Ubuntu 20.04