{"action":"created","issue":{"url":"https://api.github.com/repos/autotest/autotest/issues/978","labels_url":"https://api.github.com/repos/autotest/autotest/issues/978/labels{/name}","comments_url":"https://api.github.com/repos/autotest/autotest/issues/978/comments","events_url":"https://api.github.com/repos/autotest/autotest/issues/978/events","html_url":"https://github.com/autotest/autotest/issues/978","id":108619817,"number":978,"title":"Autotest Server Frontend is giving Not Found 404 error:","user":{"login":"toralMevada","id":13939985,"avatar_url":"https://avatars.githubusercontent.com/u/13939985?v=3","gravatar_id":"","url":"https://api.github.com/users/toralMevada","html_url":"https://github.com/toralMevada","followers_url":"https://api.github.com/users/toralMevada/followers","following_url":"https://api.github.com/users/toralMevada/following{/other_user}","gists_url":"https://api.github.com/users/toralMevada/gists{/gist_id}","starred_url":"https://api.github.com/users/toralMevada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toralMevada/subscriptions","organizations_url":"https://api.github.com/users/toralMevada/orgs","repos_url":"https://api.github.com/users/toralMevada/repos","events_url":"https://api.github.com/users/toralMevada/events{/privacy}","received_events_url":"https://api.github.com/users/toralMevada/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T09:25:57Z","updated_at":"2015-10-06T10:23:18Z","closed_at":null,"body":"Hi,\r\n\r\nI followed steps to install Autotest server manually from http://autotest.readthedocs.org/en/latest/main/sysadmin/AutotestServerInstall.html. \r\n\r\nBut on link http://localhost/afe/, it is giving 404 error. \r\n\r\nError Logs:\r\nReceived error 404 Not Found\r\nDate: Mon, 28 Sep 2015 09:15:49 GMT\r\nServer: Apache/2.2.22 (Ubuntu)\r\nVary: Accept-Encoding\r\nContent-Encoding: gzip\r\nContent-Length: 235\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\r\n<html><head>\r\n<title>404 Not Found</title>\r\n</head><body>\r\n<h1>Not Found</h1>\r\n<p>The requested URL /afe/server/rpc/ was not found on this server.</p>\r\n<hr>\r\n<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 80</address>\r\n</body></html>\r\n\r\n----------------------------------------------------\r\nAlso, I could not run bellow step.\r\n/usr/local/autotest/database/migrate.py --database=AUTOTEST_WEB sync\r\nError: ImportError: No module named migrations\r\n\r\nAny help?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/autotest/autotest/issues/comments/145813824","html_url":"https://github.com/autotest/autotest/issues/978#issuecomment-145813824","issue_url":"https://api.github.com/repos/autotest/autotest/issues/978","id":145813824,"user":{"login":"toralMevada","id":13939985,"avatar_url":"https://avatars.githubusercontent.com/u/13939985?v=3","gravatar_id":"","url":"https://api.github.com/users/toralMevada","html_url":"https://github.com/toralMevada","followers_url":"https://api.github.com/users/toralMevada/followers","following_url":"https://api.github.com/users/toralMevada/following{/other_user}","gists_url":"https://api.github.com/users/toralMevada/gists{/gist_id}","starred_url":"https://api.github.com/users/toralMevada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toralMevada/subscriptions","organizations_url":"https://api.github.com/users/toralMevada/orgs","repos_url":"https://api.github.com/users/toralMevada/repos","events_url":"https://api.github.com/users/toralMevada/events{/privacy}","received_events_url":"https://api.github.com/users/toralMevada/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T10:23:18Z","updated_at":"2015-10-06T10:23:18Z","body":"Hi,\r\n\r\nOn Ubuntu 12.04, I could successfully run the script and got the web fronted running by following below steps.\r\n\r\n1. Remove database \r\nmysql -u root -p\r\ndrop database autotest_web;\r\ndrop database tko; \r\n\r\n2. Remove /etc/apache2 folder if exist\r\n\tsudo rm -rf /etc/apache2\r\n\r\n3. Uninstall, Purge and reinstall packages\r\n     note: set mysql password and remember them as you will need it \r\n\r\n4. Get latest install-autotest-server.sh\r\n\tcurl -OL https://raw.github.com/autotest/autotest/master/contrib/install-autotest-server.sh\r\n\tchmod +x install-autotest-server.sh\r\n\r\n5. Modify script - We dont want script to install packages, we have just installed them manually\r\n\tsed 's/install_packages$/#install_packages/' install-autotest-server.sh > install-autotest-server-mod.sh\r\n\tchmod +x install-autotest-server-mod.sh\r\n\r\n6. sudo ./install-autotest-server-mod.sh -u autotest -d <mysql_password>\r\n\r\n7. Change permission\r\n\tsudo chmod -R 777 /usr/local/autotest/\r\n\r\n\r\n\r\nUninstall, Purge:\r\nsudo apt-get remove --purge apache2-mpm-prefork git libapache2-mod-wsgi makepasswd mysql-server openjdk-7-jre-headless python-crypto python-httplib2 python-imaging python-matplotlib python-mysqldb python-numpy python-paramiko python-setuptools python-simplejson python-psutil unzip wget protobuf-compiler python-protobuf pylint phpmyadmin\r\nsudo apt-get remove purge python-pip\r\nsudo apt-get update\r\nsudo pip remove --upgrade autopep8\r\n\r\ninstall:\r\nsudo apt-get install apache2-mpm-prefork git libapache2-mod-wsgi makepasswd mysql-server openjdk-7-jre-headless python-crypto python-httplib2 python-imaging python-matplotlib python-mysqldb python-numpy python-paramiko python-setuptools python-simplejson python-psutil unzip wget protobuf-compiler python-protobuf pylint phpmyadmin\r\nsudo apt-get install python-pip\r\nsudo apt-get update\r\nsudo pip install --upgrade autopep8"}}