bitnami / vms

Bitnami VMs
https://bitnami.com
Other
207 stars 43 forks source link

[Pimcore] How to install bundles on Pimcore Packaged By Bitnami For Google Cloud Platform #642

Closed killackey closed 1 year ago

killackey commented 1 year ago

Platform

Google Cloud Platform

bndiagnostic ID know more about bndiagnostic ID

cb0471b8-364d-57a0-c5bc-786cd0e121bb

bndiagnostic output

The bndiagnostic tool has finished searching for errors and has found some issues that might be related to yours. The output will be shown on the next page:

Press [Enter] to continue:

===== Begin of bndiagnostic tool output =====

✓ Connectivity: No issues found
✓ Mariadb: No issues found
✓ Processes: No issues found
? Resources: Found possible issues
? Apache: Found possible issues
✓ Php: No issues found

[Resources]

Your instance has little available RAM memory.

 total used free shared buff/cache available Mem: 1681 1210 92 92 378 229 Swap: 
0 0 0

You could try to increase your instance's memory. Please check your cloud provider's documentation for more information.

Press [Enter] to continue: You can also enable swap memory to improve performance.

https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-m emory-linux/

[Apache]

Found recent error or warning messages in the Apache error log.

[Mon Jan 23 15:37:50.576573 2023] [core:error] [pid 151188:tid 140304115996416] 
[client **ip_address**:48814] AH10244: invalid URI path 
(/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh)
 [Tue Jan 24 05:00:15.547803 2023] [core:error] [pid 151188:tid 140304174745344] 
[client **ip_address**:60434] AH10244: invalid URI path 
(/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh)
 [Fri Jan 27 05:47:17.280402 2023] [core:error] [pid 334630:tid 140304183138048] 
[client **ip_address**:52510] AH10244: invalid URI path 
(/../../mnt/mtd/Config/Account1)

Please check the following guide to troubleshoot server issues:

https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-erro Press [Enter] to continue: rs-apache/

===== End of bndiagnostic tool output =====

bndiagnostic was not useful. Could you please tell us why?

Nothing related to Pimcore bundle installation.

Describe your issue as much as you can

I would like to install the Dat Importer bundle data-importer] on our Pimcore Packaged By Bitnami For Google Cloud Platform instance.

Bitnami advises to read the Symfony Bundle Installation Docs: https://docs.bitnami.com/google/apps/pimcore/configuration/install-plugins/

Here are the docs: https://pimcore.com/docs/pimcore/current/Development_Documentation/Extending_Pimcore/Bundle_Developers_Guide/index.html

documentation calls for calls to ./bin/console, which I do not know how to reach. Using the CLI, I see it at /opt/bitnami/pimcore, but I do not have permission to run console here.

I am stuck as to how to get this or any bundle installed and enabled in my Pimcore instance.

Any help would be appreciated.

Thank you.

gongomgra commented 1 year ago

Hi @killackey,

Thanks for using Bitnami. You should be able to run the console script from the /opt/bitnami/pimcore folder and the bitnami user. Can you try to run the commands below and share the output with us?

whoami
cd /opt/bitnami/pimcore
./bin/console --help

Apart from that, and according to the diagnostic information provided by our bndiagnostic tool, we recommend you to check the guide linked below to detect and block those IP addresses requesting shell paths

https://docs.bitnami.com/aws/apps/pimcore/troubleshooting/deny-connections-bots-apache/

github-actions[bot] commented 1 year ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 year ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

killackey commented 1 year ago

Returning to this issue, the following are the results of the CLI instructions;

bkillackey@pimcore-janel-life-sciences-vm:/opt/bitnami/pimcore$ whoami bkillackey bkillackey@pimcore-janel-life-sciences-vm:/opt/bitnami/pimcore$ ./bin/console --help -bash: ./bin/console: Permission denied

I do not have the password required to su to bitnami:

bkillackey@pimcore-janel-life-sciences-vm:/opt/bitnami/pimcore$ su bitnami Password: su: Authentication failure

Can you assist with that? Thanks.

gongomgra commented 1 year ago

Hi @killackey,

Thanks for using Bitnami. By default you get logged into Google instances using your custom user, but our applications are configured for the bitnami user. Although the bitnami user doesn't have a password by default for security reasons (and you can't su bitnami into it), you should be able to log into your instance using the same SSH key and the bitnami user. Can you try?

https://docs.bitnami.com/google/faq/get-started/connect-ssh/

killackey commented 1 year ago

I was able to login as bitnami via Google's in-browser SSH console, configured to use bitnami as the user.

However, when I cd to /opt/bitnami/pimcore then run

./bin/console --help

permission denied again (see below). not sure what to do at this point. thanks for any help....

@.:~$ whoami bitnami @.:~$ cd /opt/bitnami/pimcore/ @.:/opt/bitnami/pimcore$ ls -al total 744 drwxrwxr-x 15 bitnami daemon 4096 Dec 21 15:31 . drwxr-xr-x 17 root root 4096 Jan 1 22:34 .. drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 bin -rw-rw-r-- 1 bitnami daemon 0 Dec 21 15:19 .buildcomplete -rw-rw-r-- 1 bitnami daemon 1581 Dec 21 15:19 composer.json -rw-rw-r-- 1 bitnami daemon 587107 Dec 21 15:19 composer.lock drwxrwxr-x 7 bitnami daemon 4096 Dec 21 15:31 config -rw-rw-r-- 1 bitnami daemon 4296 Dec 21 15:19 CONTRIBUTING.md drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 dev drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 .docker -rw-rw-r-- 1 bitnami daemon 1449 Dec 21 15:19 docker-compose.yaml drwxrwxr-x 2 bitnami daemon 20480 Dec 21 15:31 dump -rw-rw-r-- 1 bitnami daemon 284 Dec 21 15:19 .editorconfig -rw-rw-r-- 1 bitnami daemon 1530 Dec 21 15:19 .env -rw-rw-r-- 1 bitnami daemon 10 Dec 21 15:19 .gitattributes drwxrwxr-x 4 bitnami daemon 4096 Dec 21 15:31 .github -rw-rw-r-- 1 bitnami daemon 719 Dec 21 15:19 .gitignore -rw-rw-r-- 1 bitnami daemon 35127 Dec 21 15:19 gpl-3.0.txt -rw-rw-r-- 1 bitnami daemon 1735 Dec 21 15:19 LICENSE.md drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 licenses -rw-rw-r-- 1 bitnami daemon 526 Dec 21 15:19 manifest.yml -rw-rw-r-- 1 bitnami daemon 2804 Dec 21 15:19 .php-cs-fixer.dist.php -rw-rw-r-- 1 bitnami daemon 728 Dec 21 15:19 phpunit.xml.dist drwxrwxr-x 5 bitnami daemon 4096 Dec 22 21:20 public -rw-rw-r-- 1 bitnami daemon 2241 Dec 21 15:19 README.md -rw-rw-r-- 1 bitnami daemon 689 Dec 21 15:19 SECURITY.md drwxrwxr-x 16 bitnami daemon 4096 Dec 21 15:31 src drwxrwxr-x 15 bitnami daemon 4096 Dec 21 15:31 templates drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 translations drwxrwxr-x 11 bitnami daemon 4096 Jan 5 19:03 var drwxrwxr-x 76 bitnami daemon 4096 Dec 21 15:31 vendor @.:/opt/bitnami/pimcore$ cd bin/ @.:/opt/bitnami/pimcore/bin$ ls -al total 16 drwxrwxr-x 2 bitnami daemon 4096 Dec 21 15:31 . drwxrwxr-x 15 bitnami daemon 4096 Dec 21 15:31 .. -rw-rw-r-- 1 bitnami daemon 1482 Dec 21 15:19 console -rw-rw-r-- 1 bitnami daemon 3935 Dec 21 15:19 symfony_requirements @.:/opt/bitnami/pimcore/bin$ console --help -bash: console: command not found @.:/opt/bitnami/pimcore/bin$ cd .. @.:/opt/bitnami/pimcore$ ./bin/console --help -bash: ./bin/console: Permission denied

On Thu, Feb 23, 2023 at 3:35 AM Gonzalo Gómez Gracia < @.***> wrote:

Hi @killackey https://github.com/killackey,

Thanks for using Bitnami. By default you get logged into Google instances using your custom user, but our applications are configured for the bitnami user. Although the bitnami user doesn't have a password by default for security reasons (and you can't su bitnami into it), you should be able to log into your instance using the same SSH key and the bitnami user. Can you try?

https://docs.bitnami.com/google/faq/get-started/connect-ssh/

— Reply to this email directly, view it on GitHub https://github.com/bitnami/vms/issues/642#issuecomment-1441375218, or unsubscribe https://github.com/notifications/unsubscribe-auth/A5QJYF34AO72ET5QPSDE2ILWY4OMNANCNFSM6AAAAAAUJCWIQI . You are receiving this because you were mentioned.Message ID: @.***>

-- Brendan J. Killackey CIO Janel Corporation 80 Eighth Avenue New York, NY 10011

c: (917) 202-8363 t: (516) 256-8143 e: @.***

gongomgra commented 1 year ago

Hi @killackey,

Thanks for your message. It looks like the console script is missing execution permissions. Did you modify any filesystem permissions before facing these issues? Please run the command below as the bitnami user to recover the execution permissions and after that try to run the ./bin/console --help command again. If it works, please try to install your custom Pimcore bundles as well

sudo chmod +x /opt/bitnami/pimcore/bin/console
github-actions[bot] commented 1 year ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 year ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.