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

OLLAMA_MODELS no longer works #4528

Closed
asmrtfm opened this issue May 20, 2024 · 1 comment
Closed

OLLAMA_MODELS no longer works #4528

asmrtfm opened this issue May 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@asmrtfm
Copy link

asmrtfm commented May 20, 2024

setting the OLLAMA_MODELS environment variable (was) no longer working.

[ edit: A reboot resolved this, so closed.

  • additional details:
    models were in ~/.ollama (ownership: 1000:1000);
    environment variable was accidentally commented out in ~/.bashrc before a reboot - so, unsurprisingly, no dice;
    uncommented line in .bashrc;
    re-login'd;
    models still not detected;
    killed ollama;
    . ~/.bashrc'd for good measure;
    re-ran ollama serve & ollama list;
    no dice;
    killed ollama;

then:

I tried making /usr/share/ollama/.ollama a symlink to ~/.ollama;

and then:
chown -R ollama ~/.ollama/models/... ;
ollama serve & ollama list;
same amount of dice;

also noticed:
at one (non-canonical) point, ollama failed to start from cmd line and yielded an error msg that, to me, seemed to suggest it tries to (re)generate the default directory upon launch - with something equivalent to mkdir instead of something equivalent to mkdir -p;

...eventually deleted symlink and rebooted;
seems to be working;
closed this.

OS

Linux

GPU

Nvidia

CPU

Intel

@asmrtfm asmrtfm added the bug Something isn't working label May 20, 2024
@dhiltgen dhiltgen self-assigned this May 21, 2024
@dhiltgen
Copy link
Collaborator

dhiltgen commented May 21, 2024

Can you share the server log? This sounds like it might be a permission problem. Make sure the OLLAMA_MODELS dir is writable by the user or group ollama is running as.

@asmrtfm asmrtfm closed this as completed May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants