D 2010-04-21T23:38:41 J comment Try\sthe\sfollowing:\r\n\r\n
\r\nexport\sHOME=/\r\ncd\s/tmp\r\nfossil\snew\stest.fossil\r\n\r\n\r\nThe\sfollowing\smessage\sis\sproduced:\r\n\r\n
\r\nfossil:\sSQLITE_CANTOPEN:\scannot\sopen\sfile\sat\ssource\sline\s26294\r\nfossil:\sunable\sto\sopen\sdatabase\sfile\r\n\r\nIf\syou\shave\srecently\supdated\syour\sfossil\sexecutable,\syou\smight\r\nneed\sto\srun\s"fossil\sall\srebuild"\sto\sbring\sthe\srepository\r\nschemas\sup\sto\sdate.\r\n\r\n\r\nThis\sexample\sassumes\sthat\sthe\slogged\sin\suser\sdoes\snot\shave\swrite\saccess\sto\s/\sbut\sdoes\shave\swrite\saccess\sto\s/tmp.\r\nThis\sis\sa\scontrived\sexample\sthat\sdemonstrates\sthe\sproblem;\sthe\sactual\sproblem\swas\sencountered\swhile\sattempting\sto\suse\sfossil\swhen\srunning\sas\sanother\suser\s(via\ssudo),\sbut\swith\sthe\sold\svalue\sof\sHOME\s(the\sdefault\ssudo\sbehavior\sof\spreserving\sthe\soriginal\senvironment).\r\n\r\nIf\sinstead\sHOME\spoints\sto\sanother\suser's\sdirectory\sthat\shas\sa\s.fossil,\sbut\sthe\scurrent\suser\sdoes\snot\shave\swrite\saccess\sto\sit\sand\syou\sattempt\sto\sclone\s(instead\sof\sjust\snew)\syou\sget:\r\n\r\n