diff --git a/HISTORY.rst b/HISTORY.rst
index b94fed0..24d2588 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -5,11 +5,15 @@ History
 Next
 ------------------
 
-* Obtain  ``envs_dir`` without using a subprocess (`#67`_).
 
+* Do not fail if history file does not exists (`#66`_).
+
+* Obtain  ``envs_dir`` without using a subprocess (`#67`_).
 
+.. _`#66`: https://github.com/ESSS/conda-devenv/issues/66
 .. _`#67`: https://github.com/ESSS/conda-devenv/issues/67
 
+
 1.0.3 (2018-06-20)
 ------------------
 
diff --git a/conda_devenv/devenv.py b/conda_devenv/devenv.py
index ba0586b..a89cf89 100644
--- a/conda_devenv/devenv.py
+++ b/conda_devenv/devenv.py
@@ -345,16 +345,17 @@ def truncate_history_file(env_directory):
     if env_directory is None:
         return  # Environment does not exists, no history to truncate
 
-    from os.path import join
+    from os.path import isfile, join
     from time import time
     from shutil import copyfile
 
     history_filename = join(env_directory, 'conda-meta', 'history')
     history_backup_filename = '%s.%s' % (history_filename, time())
-    copyfile(history_filename, history_backup_filename)
+    if isfile(history_filename):
+        copyfile(history_filename, history_backup_filename)
 
-    with open(history_filename, 'w') as history:
-        history.truncate()
+        with open(history_filename, 'w') as history:
+            history.truncate()
 
 
 def __call_conda_env_update(args, output_filename):

conda devenv may fail if history file is not there.
Traceback:

```
09:23:35 -> call conda devenv --quiet -n _database10-win64-py36 -f "K:\etk\database10\\environment.devenv.yml" 
09:23:36 Traceback (most recent call last):
09:23:36   File "W:\Miniconda\Scripts\conda-devenv-script.py", line 5, in <module>
09:23:36     exit(main())
09:23:36   File "W:\Miniconda\lib\site-packages\conda_devenv\devenv.py", line 528, in main
09:23:36     truncate_history_file(env_directory)
09:23:36   File "W:\Miniconda\lib\site-packages\conda_devenv\devenv.py", line 354, in truncate_history_file
09:23:36     copyfile(history_filename, history_backup_filename)
09:23:36   File "W:\Miniconda\lib\shutil.py", line 120, in copyfile
09:23:36     with open(src, 'rb') as fsrc:
09:23:36 FileNotFoundError: [Errno 2] No such file or directory: 'W:\\Miniconda\\envs\\_database10-win64-py36\\conda-meta\\history'
09:23:36 Call failed with return code 1
```
diff --git a/tests/test_truncate_history_file.py b/tests/test_truncate_history_file.py
index 75fc050..190a77f 100644
--- a/tests/test_truncate_history_file.py
+++ b/tests/test_truncate_history_file.py
@@ -21,3 +21,11 @@ def test_truncate_history_file_backups_file(mocker, tmpdir):
     backup = tmpdir.join('conda-meta', 'history.123')
     assert backup.read() == history
     assert history_file.read() == ''
+
+
+def test_truncate_history_file_ingores_missing(mocker, tmpdir):
+    conda_meta_dir = tmpdir.join('conda-meta')
+    conda_meta_dir.ensure(dir=True)  # Just meta folder no history.
+    from conda_devenv.devenv import truncate_history_file
+    truncate_history_file(str(tmpdir))
+    # Truncate should not raise.

pip install -e .
parse_log_pytest
requirements.txt
pytest
apt-get update apt-get install -y gcc
3.6
requirements_dev.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==22.2.0
Babel==2.11.0
bump2version==1.0.1
bumpversion==0.6.0
certifi==2021.5.30
cffi==1.15.1
charset-normalizer==2.0.12
-e git+https://github.com/ESSS/conda-devenv.git@331b0d9904f2bc200801efb9580663b74f88d057#egg=conda_devenv
coverage==6.2
cryptography==40.0.2
distlib==0.3.9
docutils==0.18.1
filelock==3.4.1
flake8==3.9.2
idna==3.10
imagesize==1.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig==1.1.1
Jinja2==3.0.3
MarkupSafe==2.0.1
mccabe==0.6.1
packaging==21.3
platformdirs==2.4.0
pluggy==1.0.0
py==1.11.0
pycodestyle==2.7.0
pycparser==2.21
pyflakes==2.3.1
Pygments==2.14.0
pyparsing==3.1.4
pytest==7.0.1
pytest-datadir==1.4.1
pytest-mock==3.6.1
pytz==2025.2
PyYAML==6.0.1
requests==2.27.1
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
toml==0.10.2
tomli==1.2.3
tox==3.28.0
typing_extensions==4.1.1
urllib3==1.26.20
virtualenv==20.17.1
watchdog==2.3.1
zipp==3.6.0

name: conda-devenv
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==22.2.0
      - babel==2.11.0
      - bump2version==1.0.1
      - bumpversion==0.6.0
      - cffi==1.15.1
      - charset-normalizer==2.0.12
      - coverage==6.2
      - cryptography==40.0.2
      - distlib==0.3.9
      - docutils==0.18.1
      - filelock==3.4.1
      - flake8==3.9.2
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - iniconfig==1.1.1
      - jinja2==3.0.3
      - markupsafe==2.0.1
      - mccabe==0.6.1
      - packaging==21.3
      - platformdirs==2.4.0
      - pluggy==1.0.0
      - py==1.11.0
      - pycodestyle==2.7.0
      - pycparser==2.21
      - pyflakes==2.3.1
      - pygments==2.14.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-datadir==1.4.1
      - pytest-mock==3.6.1
      - pytz==2025.2
      - pyyaml==6.0.1
      - requests==2.27.1
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - toml==0.10.2
      - tomli==1.2.3
      - tox==3.28.0
      - typing-extensions==4.1.1
      - urllib3==1.26.20
      - virtualenv==20.17.1
      - watchdog==2.3.1
      - zipp==3.6.0
prefix: /opt/conda/envs/conda-devenv

tests/test_truncate_history_file.py::test_truncate_history_file_ingores_missing
tests/test_truncate_history_file.py::test_truncate_history_file_backups_file
HISTORY.rst conda_devenv/devenv.py
HISTORY.rst conda_devenv/devenv.py