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

PHP Error installing Docker Container #1123

Open
eals2019 opened this issue Nov 18, 2023 · 2 comments
Open

PHP Error installing Docker Container #1123

eals2019 opened this issue Nov 18, 2023 · 2 comments
Labels
bug Features or code that is not working correctly

Comments

@eals2019
Copy link

Describe the bug
I am trying to install Attendize in Docker on Ubuntu, but I keep getting a PHP error listed below.

PHP Warning: require(/usr/share/nginx/html/vendor/autoload.php): failed to open stream: No such file or directory in /usr/share/nginx/html/artisan on line 18
PHP Fatal error: require(): Failed opening required '/usr/share/nginx/html/vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/share/nginx/html/artisan on line 18
make: *** [Makefile:22: setup] Error 255

To Reproduce
Steps to reproduce the behavior:

  1. Clone repository

git clone https://github.com/Attendize/Attendize
cd Attendize

  1. Update docker-compose.yml web ports due to port conflict.
  2. Update the .env.example to reflect the port change
  3. Add containers to external docker networks to use Reverse Proxy
  4. Install make

git checkout master
make setup

I've tried not adjusting the compose files or only removing/changing the conflicting ports, but I still get the same PHP error. I believe I am following the manual correctly and am unsure what to do to resolve this issue.

Expected behavior
I am expecting not to receive the PHP error.

Screenshots
Screenshot of the error ending the Make Setup. At this point, 4/5 docker containers are created and running, but the Attendize Worker container is not running.
PHP Error

Environment the bug happens in (Desktop, Mobile, CLI) (please complete the following information):

  • Docker running on Ubuntu:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

Version of Attendize you are using

  • Unsure. Latest docker release as of Nov-18 2023

Where you are running Attendize

  • Docker running on Ubuntu:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

What version or Operating System are you using on the above server

  • Docker running on Ubuntu:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

What version of PHP you are using on the above server

PHP 8.1.2-1ubuntu2.14 (cli) (built: Aug 18 2023 11:41:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2-1ubuntu2.14, Copyright (c), by Zend Technologies

What web server are you using Attendize with

  • "Nginx or Apache."
  • Could this be the error? Am I needing to run a separate web server? I would've expected this to be apart of the docker install.

Additional context
NA

@eals2019 eals2019 added the bug Features or code that is not working correctly label Nov 18, 2023
@Nikto655
Copy link

Nikto655 commented Nov 20, 2023

your best bet to running this is using someone else's image thats available on docker hub. I used Stuart something's image for the testing I was doing. The native doesnt work and there is 0 responses for assistance.

@Nikto655
Copy link

Nikto655 commented Nov 20, 2023

So I actually managed to get at least something to work. Although still fluffing around with DB trying to get it to connect.

I follow the instructions here up until php artisan key:generate. After this im able to reach the installation screen. I havent been able to connect to DB but I think thats an issue elsewhere (I followed the DB instructions in the guide, rather than doing a docker MariaDB, which is what I will test later today).

Edit: The issue, at least to the uneducated, appears to be with the version of PHP that I was installing previously. Attendize doesnt work with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Features or code that is not working correctly
Projects
None yet
Development

No branches or pull requests

2 participants