nnjeim / world

A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
MIT License
761 stars 104 forks source link

Stuck at 40%, I see some countries are not seeded. #12

Closed ahaneef29 closed 2 years ago

ahaneef29 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behaviour:

  1. Go to 'Terminal'
  2. Click on 'Run db:seed'
  3. After waiting for 2 minutes
  4. See error 'Stuck at 40%, I see some countries are not seeded.'

    Seeding start

    101/250 [▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░] 40%

Expected behaviour A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context I tried truncating tables, Still no luck.

nnjeim commented 2 years ago

@ahaneef29 Seeding normally takes 10 to 15min. Previously some users had issues with limited resources. try to increase the memory allocated for php in php.ini. If you are upgrading to the latest version, It is advisable to drop the tables and re-run php artisan migrate before seeding.

ahaneef29 commented 2 years ago

I increased PHP memory_limit from 128M to 512M.. Still no luck.

nnjeim commented 2 years ago

Can you please check in the logs if you have errors? if yes please share them. As a sanity check i re-run the seeder on my end. Screenshot 2022-02-17 at 03 20 25

ahaneef29 commented 2 years ago

Issue resolved after increasing the php memory to 2048M.