User login

troubleshooting

Troubleshooting ssh connections problem

Micky found this which was key to debugging our connection problem— one way to watch what is happening with the SSH connection attempt is by opening a port just for this use on the server:

sudo /usr/sbin/sshd -d -p 2222

Then from the client:

ssh -vv -p 2222 example.com

Per http://www.unixlore.net/articles/troubleshooting-ssh-connections.html

Git remote branches are different on my local compared to server

The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all remote branches) is very different.

Reason: git pull origin master does not get all the branch and tag information the way git fetch does!

Solution:

git fetch origin

Now git branch -a and git checkout branchicareabout both work.

Internal error from Redmine turns out to be due to tmp directory being full

This helpful error:

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

When looked into the logs:

sudo tail -f /var/log/redmine/default/production.log

Where are the error logs when you need them?

Apache will also log errors to:

syslog

Stefan notes: in case of panic you can try to grep -R in /var/log for PHP Fatal error

Benjamin Doherty says this is covered in the DGD7 environment chapter.

Agaric Quick Tip: if git status works yet 'not a repository', you're in a symlink

If git status works and git anything else doesn't, you are probably in a symlink.

ls -la doesn't show a .git directory, but git status gives results, but git pull says it's not a git repository?

cd up another directory or two (one at a time) and ls -la to see.

Syndicate content