stevebauman / location

Detect a users location by their IP Address.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

permission denied tmp directory

joukhar opened this issue · comments

it should create temporary files inside ~/tmp not /tmp

that result in permission denied.

Hi @joukhar,

I'm not sure what you're referring to, can you please post the stack trace of the exception and I'll reopen this, thanks!

my server is linux server (Ubuntu 22.04 lts)
and my home directory is home1 : where my laravel project
and there another home dir for server called : ubuntu

the problem whenever location:update is stores maxmind databases in server home directory not in project home directory

Hi @joukhar,

This package uses PHP's temporary directory via the global function sys_get_temp_dir():

https://www.php.net/manual/en/function.sys-get-temp-dir.php

How are you running location:update? Are you running it programmatically, or via CLI?

programmatically via kernel.php every week as explained in docuementation
i store the output in a log file to see the result
i run it on cli aswell but same result

//
$schedule->command('location:update')->weekly()->appendOutputTo($logFilePath);

Ok I've just released a patch for this in v7.1.3. Please run composer update and you should be all set.

Thanks for the report!

thank you so much