Comments (5)
Hi,
I will test your setup and come back to you soon...
from piglet.
I think both containers should be in one network. You only add the piglet container to your shyDockerServer Network. And the piglet db container will get an ip of the default docker network. So they cannot communicate to each other :)
from piglet.
I think both containers should be in one network. You only add the piglet container to your shyDockerServer Network. And the piglet db container will get an ip of the default docker network. So they cannot communicate to each other :)
Ah you're right! I don't know how that escaped my sights, I'll try when I get home and update the issue, thanks
from piglet.
It worked, but now I'm having another kind of problem, this happens when I try to create a new user:
################################# DEBUG ############################## 4
INFO: 127.0.0.1:55782 - "POST /user/register_user HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/webapp/api/routes/sendmail.py", line 61, in mail
s = SMTP(host, int(port))
ValueError: invalid literal for int() with base 10: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/fastapi/applications.py", line 289, in __call__
await super().__call__(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/applications.py", line 122, in __call__
await self.middleware_stack(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/middleware/errors.py", line 184, in __call__
raise exc
File "/usr/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in __call__
await self.app(scope, receive, _send)
File "/usr/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/usr/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/usr/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
raise e
File "/usr/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/usr/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/usr/lib/python3.10/site-packages/fastapi/routing.py", line 273, in app
raw_response = await run_endpoint_function(
File "/usr/lib/python3.10/site-packages/fastapi/routing.py", line 190, in run_endpoint_function
return await dependant.call(**values)
File "/webapp/api/routes/user.py", line 72, in register_user
mail(payload)
File "/webapp/api/routes/sendmail.py", line 69, in mail
except SMTPResponseException as e:
NameError: name 'SMTPResponseException' is not defined
And these are the logs for the DB:
2023-08-22 12:31:24 3 [Warning] Aborted connection 3 to db: 'unconnected' user: 'unauthenticated' host:
'172.22.0.3' (This connection closed normally without authentication)
2023-08-22 12:31:35 9 [Warning] Aborted connection 9 to db: 'piglet' user: 'piglet' host: '' (Got an error reading communication packets)
2023-08-22 12:32:31 10 [Warning] Aborted connection 10 to db: 'piglet' user: 'piglet' host: '' (Got an error reading communication packets)
2023-08-22 12:34:09 16 [Warning] Aborted connection 16 to db: 'piglet' user: 'piglet' host: '' (Got an error reading communication packets)
Any ideas on what I might be doing wrong? The passwords are the same. If this is for another issue, I'll open it and close this :)
from piglet.
Ou yes this is another issue. Please create a new one. The app is trying to send a "Email-Verify-Mail" but it can't without config. I have to update the code. But the user was created right?
from piglet.
Related Issues (13)
- Site is flashing at reload, when darkmode is enabled
- Navbar pops up for a second when mini menue is active
- separate port for api and dashboard? HOT 2
- Access denied on database unable to login as admin HOT 12
- Quicken Import / PDF import / Online banking import
- API Class in Flask HOT 1
- If mail host not configured, dont try to send mails HOT 1
- Login with admin user not working HOT 4
- Implement SQLite3 as database
- Budget sharing over registered user not only per mail
- CSV Import
- Scheduled Transactions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piglet.