Jump to content

an4s911

Members
  • Posts

    24
  • Joined

  • Last visited

Everything posted by an4s911

  1. Thanks a lot for giving me remote access for the postgres. Where can I see this log? I looked for it all over the logs section in Plesk, couldn't find it. Another question is, how can I use environment variables when deploying?
  2. Yeah, I couldn't find them. In plesk I opened logs. I only get the Requests and Http status codes. I don't see the trackeback of the errors.
  3. The name of the database is: an4s911_anas and the user is: an4s911_admin Also give me info on how I can connect to it from my Django app. Should I just use localhost? Will that work?
  4. I have a django api running on heliohost on the domain anasbashir.helioho.st. And I got wsgi access also got postgres enabled. But how can I access the postgres. I want to be able to migrate the django models into database, for that either I need remote access to the postgres or terminal access to the server. The manage.py file is located in /httpdocs/manage.py And the command to migrate is python manage.py migrate. Secondly, where do I access the traceback log if any error occurs, I couldn’t find it. Additionally, if I wanted to log something using python’s logging module, where can I log to, and how can I access it. Edit: I wanted to mention that I did find the logs. Just that I couldn’t find any traceback in it.
  5. UPDATE: the site works now. Thanks for all the help
  6. I did, and it doesn't exist. This is the contents of my dispatch.wsgi file: import os import sys from django.core.wsgi import get_wsgi_application sys.path.append("/home/anasbashir.helioho.st/httpdocs") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "anas.settings") application = get_wsgi_application() # vim:ft=python Alright, will do when I need to.
  7. I don't have anything called djangotest in my code. I believe I did use it before, but I'd removed it, can't remember exactly. But in the latest version of the code, it doesn't exist. On that note, if I do want to add additional python packages, what do I have to do?
  8. One more thing. The site doesn't seem to be working currently. When I go to https://anasbashir.helioho.st, it is supposed to show me "Hello, world!", but instead it gives me 500 Internal Server Error
  9. Alright, quick question. Does it have to be the dispatch.wsgi file? The reason I am asking is because as I mentioned I use git integration. So I have a remote gitlab repo connected to this site, and after I push changes to that repo, I pull it from plesk. So it does pull in multiple changes, so does that make a difference, or does it have to be the dispatch.wsgi file itself. so a followup question is, if it should be the dispatch.wsgi file, then can I just make the change while pushing to git, and that change will be pulled on plesk, and the dispatch.wsgi file would also change due to the git pull. Would that work as well?
  10. Can I just request it here, my username is an4s911 and I want control access to WSGI. Or do I need to open a new topic?
  11. I have a django app setup in root dir /httpdocs. And I use git integration to pull latest changes to heliohost, but the changes aren't reflected immediately. It takes a really long time. And when I reload a page, sometimes it comes and sometimes it shows an error message for a previous change, means some kind of caching is playing here. I did reset all cache and tried again, but nothing fixes this. So do I have to wait till next day to test my backend? What should I do? This is very annoying. How can I reset the cache in all places, including in your servers. EDIT: PS: I use the tommy server. The new one.
  12. I just saw the pinned post that says don't post support here, I didn't know where to post this and that is why I posted here. And I can't find a button to delete it. So I apologize for any inconveniences, and I will be paying more attention next time. But I am hoping to get a fix to this problem soon. I won't be reposting this on the customer service, because I'm not sure if that would be the appropriate thing to do. If it is then let me know, I am more than happy to comply
  13. Plesk at tommy.heliohost.org:8443 doesn't work
  14. I tried creating a new postgre database, and it gives me this error: Error: Connection to the database server failed: SQLSTATE[55006]: Object in use: 7 ERROR: source database "template1" is being accessed by other users DETAIL: There is 1 other session using the database. Edit: To give context, I haven't made any databases or database users so far. I do have a django app on httpdocs though. Solved: It worked after some time like mentioned in the reply below by @wolstech
  15. an4s911

    Tommy Upgrade

    I am happy to be a volunteer for V2 account name: an4s911
  16. Is it possible to give instructions on how to setup multi-app django project on plesk. And also how to serve the django app on the root '/' of the domain instead of inside a sub directory (like /djangotest).
  17. Hi, I think it got blocked again. I didn't do that many. I tried entering the password like 3 times. And now I can't open Plesk again. Is 3 consecutive ftp password attempts the limit before being blocked? Could you please unblock it for me again. Thank you.
  18. This is what it shows: And I tried those commands: $ telnet portquiz.net 1373 Trying 35.180.139.74... Connected to portquiz.net. Escape character is '^]'. $ nc -v portquiz.net 1373 Connection to portquiz.net (35.180.139.74) 1373 port [tcp/*] succeeded! $ curl portquiz.net:1373 Port test successful! Your IP: *** $ wget -qO- portquiz.net:1373 Port test successful! Your IP: ***
  19. Actually one more thing is that when I do run the sftp command like: `sftp -oPort=1373 an4s911@tommy2.heliohost.org`, it is taking a really long time before it asks for the password, I mean really long, probably around 5 minutes, and when I enter the password it says "Connection closed". Similarly in FileZilla I mostly get time out errors. This is on FileZilla:
  20. I'm sorry if I am asking too much, but I want to get it cleared. So there are a few places that I am using/interactive with a password, which one should I use for the ftp? I am using a password to login to heliohost.org and I am using the same password to login to plesk as well When I click on Connection Info, I see the following screen, which also has a password, which I can change by clicking on the edit icon, so if I set a password here, then do i use that one instead?: And then when I click manage access I get to set a new password I think number 2 and 3 and basically the same thing, but does it also change my primary password from number 1? Either of them?
  21. Alright. Thanks a lot, the site and portal works now. But please do guide me on getting the ftp connection. This is what I've tried so far: I am using the following details: Protocol: SFTP Host: tommy2.heliohost.org Port: 1373 and for username and password i tried the following: Tried the username and password I use to login to heliohost (the same ones that I use to login to plesk In Plesk, under Websites & Domains -> Connection Info -> Manage Access -> Password, here I set a new password, and then saved it, and tried that too. And it still doesn't work. Am I doing something wrong. And I don't wanna try different ones cause the server will block me again.
  22. Hello, I opened a new account yesterday. I signed in to the tommy server portal, and played around with it. I tried connecting to it via SFTP but it didn't. After so many trials I gave up. I tried the `sftp` command first, then tried filezilla, and I also tried connecting to it via the Nautilus file manager's network connection option. Nothing work. And then after a while the whole website stopped worked. I can't access the tommy portal and the site itself gets timed out without connecting.
×
×
  • Create New...