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

ErrorException filesize(): stat failed #31

Open
anatoliy-t7 opened this issue Apr 7, 2020 · 1 comment
Open

ErrorException filesize(): stat failed #31

anatoliy-t7 opened this issue Apr 7, 2020 · 1 comment

Comments

@anatoliy-t7
Copy link

Hello, I downloaded separate country end try to seed it.
And that's what i got.
My commands was:
php artisan geo:seed --chunk=3000 IN --append
and
php -d memory_limit=8000M artisan geo:seed --chunk=1000 IN --append

filesize(): stat failed for /Users/user/some-path-to-project/storage/geo/IN.txt
at vendor/igaster/laravel_cities/src/commands/seedGeoFile.php:108

    104| 
    105|     public function readFile(string $fileName, string $country = null)
    106|     {
    107|         $this->info("Reading File '$fileName'");
  > 108|         $filesize = filesize($fileName);
    109|         $handle = fopen($fileName, 'r');
    110|         $count = 0;
    111| 
    112|         $progressBar = new ProgressBar($this->output, 100);

How can I fix it ?

@LeventeNagy
Copy link

If it's still needed the country what you need, in this case IN, go here http://download.geonames.org/export/dump/ download IN.zip into storage\geo folder then run php artisan geo:seed IN --append --chunk=3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants