Setup Production - Errors

hello,

Linux Admin in training here, sole purpose is to just install, configure, use for a few days, attempt to break and fix, so basically a learning experience. Any help or guide you can provide, it would be great.

Trying to work through the setup production. At first, I ran through the instructions and have both the bench production & nginx config files, however when I attempt the following:

sudo ln -s pwd/config/supervisor.conf /etc/supervisor/conf.d/frappe-bench.conf

I get the following error:
ln: failed to create symbolic link ‘/etc/supervisor/conf.d/frappe-bench.conf’: File exists

so I go with the nginx config with the following:

sudo ln -s pwd/config/nginx.conf /etc/nginx/conf.d/frappe-bench.conf

I get the following error:
OSError: [Errno 2] No such file or directory: ‘/sites’

Any help is welcome.

Thanks!

sudo ln -s "/path/to/WhereTheFileIS" -t "/subdir/WhereItShouldAppearToBe"

The second argument is normally a subdir which does not already exist. The filename is not normally specified, only the subdir path - the file inherits the name of its original “fake” file.

1 Like

thank you for the reply, apparently I had to run the scrip inside the frappe-bench folder so that it would work.

It works, but now I have other issues. I’ll look on the forum and see if I find it.

Thank you for the reply, appreciate it!