changeweb / Unifiedtransform

A school management Software
https://changeweb.github.io/Unifiedtransform/
GNU General Public License v3.0
2.78k stars 1.22k forks source link

I am having errors running it on Docker, see the errors below #319

Closed patelmohammed357 closed 2 years ago

patelmohammed357 commented 2 years ago

Creating unifiedtransform_composer_run ... done Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Package operations: 150 installs, 0 updates, 0 removals

[RuntimeException]
/var/www/html/vendor does not exist and could not be created.

install [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-suggest] [--no-dev] [--no-autoloader] [--no-scripts] [--no-progress] [--no-install] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--] []...

Creating unifiedtransform_artisan_run ... done

Warning: require(/var/www/html/vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/artisan on line 18

Fatal error: require(): Failed opening required '/var/www/html/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/artisan on line 18

handhikadj commented 2 years ago

try to run sudo chmod -R 777 . from Unifiedtransform root directory

patelmohammed357 commented 2 years ago

Thanks it worked, but I can’t login in it says “These credentials do not much our records.

I’m using the email: @.***

Password: secret

On Thu, 19 Aug 2021 at 20:59 handhikadj @.***> wrote:

try to run sudo chmod -R 777 . from Unifiedtransform root directory

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-902163060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWS4ML3VEDLZNKQ7HHLT5VICPANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

patelmohammed357 commented 2 years ago

It’s not working I’m using the logins details in UsersTableSeeder.php

On Fri, 20 Aug 2021 at 18:56 Mohammed Patel @.***> wrote:

Thanks it worked, but I can’t login in it says “These credentials do not much our records.

I’m using the email: @.***

Password: secret

On Thu, 19 Aug 2021 at 20:59 handhikadj @.***> wrote:

try to run sudo chmod -R 777 . from Unifiedtransform root directory

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-902163060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWS4ML3VEDLZNKQ7HHLT5VICPANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

handhikadj commented 2 years ago

give me screenshot, please

patelmohammed357 commented 2 years ago

[image: Capture1.PNG] Here is the screenshot of the errors

On Fri, Aug 20, 2021 at 9:00 PM handhikadj @.***> wrote:

give me screenshot, please

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-902894182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWQ7CF4SYEZ3HLBQBOLT52Q33ANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

patelmohammed357 commented 2 years ago

[image: Capture.PNG]

On Sat, Aug 21, 2021 at 8:29 AM Mohammed Patel @.***> wrote:

[image: Capture1.PNG] Here is the screenshot of the errors

On Fri, Aug 20, 2021 at 9:00 PM handhikadj @.***> wrote:

give me screenshot, please

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-902894182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWQ7CF4SYEZ3HLBQBOLT52Q33ANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

handhikadj commented 2 years ago

WTH is this?

image

patelmohammed357 commented 2 years ago

Capture

handhikadj commented 2 years ago

did you migrate?

patelmohammed357 commented 2 years ago

yes

patelmohammed357 commented 2 years ago

Capture2

handhikadj commented 2 years ago

the password was secret right?

patelmohammed357 commented 2 years ago

yes

handhikadj commented 2 years ago

how do you run the migrate ? it should be ./dev artisan migrate if you use the utility script

patelmohammed357 commented 2 years ago

Already created .env file. And i run ./docker-install.sh And it did everything. Do i need run anything on my command terminal or anything i need to configure?

On Sat, 21 Aug 2021 at 11:03 handhikadj @.***> wrote:

how do you run the migrate ? it should be ./dev artisan migrate if you use the utility script

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-903086381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWQCATW2ZK3BYXFSTSDT55TW7ANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

patelmohammed357 commented 2 years ago

and i want to use it for production

changeweb commented 2 years ago

@patelmohammed357 You need to Seed with migrate at least the UserSeeder to register Master account. Use --seed flag with migrate command.

patelmohammed357 commented 2 years ago

Thank you, can you please make it a bit easy if possible? Like as in how i can use - -seed flag with migrate command?

On Sat, 21 Aug 2021 at 11:12 Hasib Mahmud @.***> wrote:

@patelmohammed357 https://github.com/patelmohammed357 You need to Seed with migrate at least the UserSeeder to register Master account. Use --seed flag with migrate command.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/changeweb/Unifiedtransform/issues/319#issuecomment-903087409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVHINWU2EIRLRNICK3WRXRDT55UW3ANCNFSM5CIA6GWQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

handhikadj commented 2 years ago

jeez. it's laravel specific not the docker per se please learn the basic docker and laravel

patelmohammed357 commented 2 years ago

Already know some basics of docker and laravel since its my favorite. I was just confused since your code and you already know everything what is going thru

patelmohammed357 commented 2 years ago

Thank you, I am getting that when i run php artisan migrate:refresh --seed

Capture3

changeweb commented 2 years ago

@patelmohammed357 Try running ./dev artisan migrate:refresh --seed.

handhikadj commented 2 years ago

Already know some basics of docker and laravel since its my favorite. I was just confused since your code and you already know everything what is going thru

so why did you migrate on the host machine instead of in the container? you should have known this if you knew the basic

patelmohammed357 commented 2 years ago

Thanks it works with no issues!!!!