Back

Unable to build function

  • 1
  • Functions
sudorm-rf
23 Feb, 2023, 12:15

I am trying out a Hello World function which comes as a boiler plate with just a small change. I have added a simple lib folder which has Hello World printing function and calling it in index.py. Basically I am testing how to import lib. So instead of this dummy lib, I will be injecting library I built later.

I deployed the function using appwrite deploy function and deployment was successful. How ever, it is in the building stage since an hour now. I don't know what went wrong...

MariaDB is on AWS S3 is being used for storage everything else is running via docker-compose on local machine

TL;DR
User is unable to build a function on Appwrite version 1.2.1. They have encountered datetime format errors in the logs and suspect there may be underlying issues causing the build to fail. They are seeking assistance in checking the executor and builds worker for errors.
Meldiron
23 Feb, 2023, 12:17

Hey there 👋 Hmm, if there was something wrong with your code or build step, status should be failed with proper error message. Infinite building stage seems like internal error either with executor or builds worker. Can we check those?

If you could check logs and let me know if there are any errors in there, it would be amazing: docker compose logs appwrite-worker-builds

sudorm-rf
23 Feb, 2023, 12:26

here

sudorm-rf
23 Feb, 2023, 12:26
sudorm-rf
23 Feb, 2023, 12:28

Found this log suspicious has failed PDOException: SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: '\xE2\x94\x81\xE2\x94\x81...' for column appwrite._3_builds.stdout at row 1 in /usr/src/code/src/Appwrite/Extend/PDOStatement.php:88

Meldiron
23 Feb, 2023, 12:28

Amazing, thanks 😇 I can see some datetime issues. What version of Appwrite are you running? Have you ran another version previously?

sudorm-rf
23 Feb, 2023, 12:34

I am running appwrite 1.2.1 docker container

Meldiron
23 Feb, 2023, 12:37

Thanks for checking 🙏

Could you please share your function folder with me? It would let me try to reproduce the same error on my end.

Error is mentioning datetime format but that should not be the case for 1.2.1. I am suspecting that error message might be miss-leading, and a real error is something else. Like non-UTF8 character in log, or too lengthy log.

sudorm-rf
23 Feb, 2023, 12:37

ok sure

sudorm-rf
23 Feb, 2023, 12:38

this is the entire code

Meldiron
23 Feb, 2023, 12:48

Thanks! 🤝 Build works fine on my end 🤔 Is 1.2.1 first Appwrite version that you are running?

sudorm-rf
23 Feb, 2023, 13:01

I tried again

sudorm-rf
23 Feb, 2023, 13:01
sudorm-rf
23 Feb, 2023, 13:01

same issue

Drake
23 Feb, 2023, 18:18

Anything in your executor logs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more