Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/suitecrm] Error on PHP #79162

Open
exploit-io opened this issue Mar 26, 2025 · 3 comments
Open

[bitnami/suitecrm] Error on PHP #79162

exploit-io opened this issue Mar 26, 2025 · 3 comments
Assignees
Labels
suitecrm tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@exploit-io
Copy link

Name and Version

bitnami/suitecrm:7.14.1

What architecture are you using?

None

What steps will reproduce the bug?

I want to run a specific version of suiteCRM 7.14.1 but it gives me error

My docker-compose file:

services:
  mariadb:
    image: docker.io/bitnami/mariadb:latest
    environment:
      - MARIADB_USER=suitecrm
      - MARIADB_DATABASE=suitecrm
      - MARIADB_PASSWORD=suitecrm
      - MARIADB_ROOT_PASSWORD=suitecrm
    volumes:
      - './db:/bitnami/mariadb'
  7-1-suitecrm:
    image: docker.io/bitnami/suitecrm:7.14.1
    ports:
      - '8080:8080'
      - '8443:8443'
    environment:
      - SUITECRM_DATABASE_HOST=mariadb
      - SUITECRM_DATABASE_PORT_NUMBER=3306
      - SUITECRM_DATABASE_USER=suitecrm
      - SUITECRM_DATABASE_NAME=suitecrm
      - SUITECRM_DATABASE_PASSWORD=suitecrm
    volumes:
      - './crmdata:/bitnami/suitecrm'
    depends_on:
      - mariadb

What is the expected behavior?

We Expect a Docker to run!

What do you see instead?

2025-03-26 16:39:44 suitecrm 13:09:44.27 INFO  ==> 
2025-03-26 16:39:44 suitecrm 13:09:44.27 INFO  ==> Welcome to the Bitnami suitecrm container
2025-03-26 16:39:44 suitecrm 13:09:44.28 INFO  ==> Subscribe to project updates by watching https://github.com/bitnami/containers
2025-03-26 16:39:44 suitecrm 13:09:44.28 INFO  ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
2025-03-26 16:39:44 suitecrm 13:09:44.28 INFO  ==> 
2025-03-26 16:39:44 suitecrm 13:09:44.28 INFO  ==> ** Starting SuiteCRM setup **
2025-03-26 16:39:44 suitecrm 13:09:44.33 INFO  ==> Generating sample certificates
2025-03-26 16:39:44 Generating RSA private key, 4096 bit long modulus (2 primes)
2025-03-26 16:39:44 ..........................................++++
2025-03-26 16:39:44 ........................++++
2025-03-26 16:39:44 e is 65537 (0x010001)
2025-03-26 16:39:44 Signature ok
2025-03-26 16:39:44 subject=CN = example.com
2025-03-26 16:39:44 Getting Private key
2025-03-26 16:39:44 realpath: /bitnami/apache/conf: No such file or directory
2025-03-26 16:39:44 suitecrm 13:09:44.65 INFO  ==> Configuring Apache ServerTokens directive
2025-03-26 16:39:44 suitecrm 13:09:44.69 INFO  ==> Configuring PHP options
2025-03-26 16:39:44 suitecrm 13:09:44.69 INFO  ==> Setting PHP expose_php option
2025-03-26 16:39:44 suitecrm 13:09:44.70 INFO  ==> Setting PHP output_buffering option
2025-03-26 16:39:44 suitecrm 13:09:44.73 INFO  ==> Validating settings in MYSQL_CLIENT_* env vars
2025-03-26 16:39:44 suitecrm 13:09:44.85 INFO  ==> Restoring persisted SuiteCRM installation
2025-03-26 16:39:51 suitecrm 13:09:51.45 INFO  ==> Trying to connect to the database server
2025-03-26 16:39:51 [26-Mar-2025 13:09:51 UTC] PHP Warning:  require(/opt/bitnami/suitecrm/config.php): Failed to open stream: No such file or directory in Command line code on line 1
2025-03-26 16:39:51 [26-Mar-2025 13:09:51 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/opt/bitnami/suitecrm/config.php' (include_path='.:/opt/bitnami/php/lib/php') in Command line code:1
2025-03-26 16:39:51 Stack trace:
2025-03-26 16:39:51 #0 {main}
2025-03-26 16:39:51   thrown in Command line code on line 1

Additional information

additionaly, bitnami/suitecrm:8 has similar issues too

@exploit-io exploit-io added the tech-issues The user has a technical issue about an application label Mar 26, 2025
@github-actions github-actions bot added the triage Triage is needed label Mar 26, 2025
@javsalgar javsalgar changed the title bitnami SuiteCRM error on PHP [bitnami/suitecrm] Error on PHP Mar 27, 2025
@javsalgar
Copy link
Contributor

Hi,

I see that you are bind-mounting a volume, causing it to assume that it is a persisted installation

2025-03-26 16:39:44 suitecrm 13:09:44.85 INFO  ==> Restoring persisted SuiteCRM installation

Could you try with a fresh volume?

@exploit-io
Copy link
Author

I have .gitkeep file in crmdata and db directories and It made the App think the crmdata is full! so It was restoring the app from non-existing files!

I removed .gitkeep file from crmdata and worked!

This Was the Wierdest thing I've ever seen in dev world!

@javsalgar
Copy link
Contributor

Thanks for letting us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suitecrm tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants